List Your Organizations
GET /api/0/organizations/
Return a list of organizations available to the authenticated session in a region. This is particularly useful for requests with a user bound context. For API key-based requests this will only return the organization that belongs to the key.
Query Parameters:
owner
(boolean)Specify
true
to restrict results to organizations in which you are an owner.cursor
(string)A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.
query
(string)Filters results by using query syntax.
Valid query fields include:
id
: The organization IDslug
: The organization slugstatus
: The organization's current status (one ofactive
,pending_deletion
, ordeletion_in_progress
)email
ormember_id
: Filter your organizations by the emails or organization member IDs of specific members includedplatform
: Filter your organizations to those with at least one project using this platformquery
: Filter your organizations by name, slug, and members that contain this substring
Example:
query=(slug:foo AND status:active) OR (email:[thing-one@example.com,thing-two@example.com] AND query:bar)
sortBy
(string)The field to sort results by, in descending order. If not specified the results are sorted by the date they were created.
Valid fields include:
members
: By number of membersprojects
: By number of projectsevents
: By number of events in the past 24 hours
Scopes
You need to authenticate via bearer auth token.
<auth_token>
requires one of the following scopes:org:admin
org:read
org:write
Copied
curl https://sentry.io/api/0/organizations/ \ -H 'Authorization: Bearer <auth_token>'
RESPONSESCHEMA
Copied[ { "avatar": { "avatarType": "letter_avatar", "avatarUuid": null }, "dateCreated": "2018-11-06T21:19:55.101Z", "features": [ "session-replay-video", "onboarding", "advanced-search", "monitor-seat-billing", "issue-platform" ], "hasAuthProvider": false, "id": "2", "isEarlyAdopter": false, "links": { "organizationUrl": "https://the-interstellar-jurisdiction.sentry.io", "regionUrl": "https://us.sentry.io" }, "name": "The Interstellar Jurisdiction", "require2FA": false, "slug": "the-interstellar-jurisdiction", "status": { "id": "active", "name": "active" } } ]