curl --request POST \
--url https://api.studio.prisme.ai/v2/orgs/{orgSlug}/members/export \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.studio.prisme.ai/v2/orgs/{orgSlug}/members/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/v2/orgs/{orgSlug}/members/export"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)"<string>"{
"error": "AuthenticationError",
"message": "Unauthenticated"
}{
"error": "ForbiddenError",
"message": "Forbidden"
}Export Org Members as CSV
Streams the members list of an organization as a CSV file. The response is text/csv with Content-Disposition: attachment so the browser triggers a download. Memory usage is bounded — the server paginates OrgMembership and writes rows as it queries them. Same permission as listing (orgs:members:read). Pass status to export only members with that membership status (mirrors the list filter), and/or userIds to export a text-search selection; omit both to export every member.
curl --request POST \
--url https://api.studio.prisme.ai/v2/orgs/{orgSlug}/members/export \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.studio.prisme.ai/v2/orgs/{orgSlug}/members/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/v2/orgs/{orgSlug}/members/export"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)"<string>"{
"error": "AuthenticationError",
"message": "Unauthenticated"
}{
"error": "ForbiddenError",
"message": "Forbidden"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Only export members with this membership status (e.g. invited, active). Omit to export all members.
Comma-separated user ids to restrict the export to. Used to export a text-search selection: the search resolves names and emails through the contacts service, which OrgMembership does not hold, so the caller sends the ids it matched. Combines with status.
Response
CSV stream
The response is of type file.
Was this page helpful?