List an Organization's Client Keys
GET /api/0/organizations/{organization_id_or_slug}/project-keys/
Return a list of client keys (DSNs) for all projects in an organization.
This paginated endpoint lists client keys across all projects in an organization. Each key includes the project ID to identify which project it belongs to.
Query Parameters:
- team: Filter by team slug or ID to get keys only for that team's projects
- status: Filter by 'active' or 'inactive' to get keys with specific status
Path Parameters
organization_id_or_slug(string)REQUIREDThe ID or slug of the organization the resource belongs to.
Query Parameters:
cursor(string)A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.
team(string)Filter keys by team slug or ID. If provided, only keys for projects belonging to this team will be returned.
status(string)- choices:
- active
- inactive
Filter keys by status. Options are 'active' or 'inactive'.
activeinactive
Scopes
You need to authenticate via bearer auth token.
<auth_token> requires one of the following scopes:org:adminorg:readorg:write
Copied
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/project-keys/ \ -H 'Authorization: Bearer <auth_token>'
RESPONSESCHEMA
Copied[ { "id": "60120449b6b1d5e45f75561e6dabd80b", "name": "Liked Pegasus", "label": "Liked Pegasus", "public": "60120449b6b1d5e45f75561e6dabd80b", "secret": "189485c3b8ccf582bf5e12c530ef8858", "projectId": 4505281256090153, "isActive": true, "rateLimit": { "window": 7200, "count": 1000 }, "dsn": { "secret": "https://a785682ddda742d7a8a4088810e67701:bcd99b3790b3441c85ce4b1eaa854f66@o4504765715316736.ingest.sentry.io/4505281256090153", "public": "https://a785682ddda742d7a8a4088810e67791@o4504765715316736.ingest.sentry.io/4505281256090153", "csp": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/csp-report/?sentry_key=a785682ddda719b7a8a4011110d75598", "security": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/security/?sentry_key=a785682ddda719b7a8a4011110d75598", "minidump": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/minidump/?sentry_key=a785682ddda719b7a8a4011110d75598", "playstation": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/playstation/?sentry_key=a785682ddda719b7a8a4011110d75598", "integration": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/integration/", "otlp_traces": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/integration/otlp/v1/traces", "otlp_logs": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/integration/otlp/v1/logs", "nel": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/nel/?sentry_key=a785682ddda719b7a8a4011110d75598", "unreal": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/unreal/a785682ddda719b7a8a4011110d75598/", "cdn": "https://js.sentry-cdn.com/a785682ddda719b7a8a4011110d75598.min.js", "crons": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/crons/___MONITOR_SLUG___/a785682ddda719b7a8a4011110d75598/" }, "browserSdkVersion": "7.x", "browserSdk": { "choices": [ [ "latest", "latest" ], [ "7.x", "7.x" ] ] }, "dateCreated": "2023-06-21T19:50:26.036254Z", "dynamicSdkLoaderOptions": { "hasReplay": true, "hasPerformance": true, "hasDebug": true } }, { "id": "da8d69cb17e80677b76e08fde4656b93", "name": "Bold Oarfish", "label": "Bold Oarfish", "public": "da8d69cb17e80677b76e08fde4656b93", "secret": "5c241ebc42ccfbec281cbefbedc7ab96", "projectId": 4505281256090153, "isActive": true, "rateLimit": null, "dsn": { "secret": "https://a785682ddda742d7a8a4088810e67701:bcd99b3790b3441c85ce4b1eaa854f66@o4504765715316736.ingest.sentry.io/4505281256090153", "public": "https://a785682ddda742d7a8a4088810e67791@o4504765715316736.ingest.sentry.io/4505281256090153", "csp": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/csp-report/?sentry_key=a785682ddda719b7a8a4011110d75598", "security": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/security/?sentry_key=a785682ddda719b7a8a4011110d75598", "minidump": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/minidump/?sentry_key=a785682ddda719b7a8a4011110d75598", "playstation": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/playstation/?sentry_key=a785682ddda719b7a8a4011110d75598", "integration": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/integration/", "otlp_traces": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/integration/otlp/v1/traces", "otlp_logs": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/integration/otlp/v1/logs", "nel": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/nel/?sentry_key=a785682ddda719b7a8a4011110d75598", "unreal": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/unreal/a785682ddda719b7a8a4011110d75598/", "cdn": "https://js.sentry-cdn.com/a785682ddda719b7a8a4011110d75598.min.js", "crons": "https://o4504765715316736.ingest.sentry.io/api/4505281256090153/crons/___MONITOR_SLUG___/a785682ddda719b7a8a4011110d75598/" }, "browserSdkVersion": "7.x", "browserSdk": { "choices": [ [ "latest", "latest" ], [ "7.x", "7.x" ] ] }, "dateCreated": "2023-06-21T19:50:26.036254Z", "dynamicSdkLoaderOptions": { "hasReplay": true, "hasPerformance": true, "hasDebug": true } } ]
Was this helpful?