Skip to content
Dashboard
Theme
Theme

List the extra secrets of an organization-scoped key

GET /v1/organizations/{org}/api_keys/{key}/secrets: List the extra secrets of an organization-scoped key.

View Markdown

GET /v1/organizations/{org}/api_keys/{key}/secrets

Scope
api_keys:read
Auth
Secret key (sk_…)
Since
1.0
  • org string Required

  • key string Required

  • OhAuthCat-Version string

    Minor version; defaults to the environment’s pin.

Errors share one shape; see the error code catalogue.

curl -X GET \
"https://api.ohauthcat.com/v1/organizations/org_01J9Z3K5V7W8X9Y0Z1A2B3C4D5/api_keys/key_01J9Z3K5V7W8X9Y0Z1A2B3C4D5/secrets" \
-H "Authorization: Bearer $OHAUTHCAT_API_KEY"
Response 200
{
"object": "list",
"data": [
{
"id": "01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
"object": "api_key_secret",
"prefix": "sk_test",
"last_used_at": "2026-01-15T09:30:00Z",
"revoked_at": "2026-01-15T09:30:00Z",
"created_at": "2026-01-15T09:30:00Z"
}
]
}