/org/api_keysList API keys for the authenticated organization. API keys are masked.
Authorization
bearerAuth In: header
Query Parameters
Maximum number of results to return
value <= 10020Number of results to skip
0Case-insensitive substring match against API key name, creator, and project. API key identifiers and masked keys match by exact value or prefix.
Exact-match filter on API key name using the database collation. In production, matching is case- and accent-insensitive. Names are not required to be unique, so multiple keys may match. When status=all or include_deleted=true is set, soft-deleted keys with the same name may also match.
Field to sort API keys by.
"created_at"Value in
- "created_at"
- "name"
- "expires_at"
Sort direction for API keys.
"desc"Value in
- "asc"
- "desc"
Filter API keys by status. "active" returns keys that are not deleted (default; expired-but-not-deleted keys are still included), "deleted" returns only soft-deleted keys, "all" returns both.
"active"Value in
- "active"
- "deleted"
- "all"
Deprecated: use status=all instead. When true, include deleted (soft-deleted) API keys in the results for audit purposes.
falseResponse Body
application/json
application/json
application/json
curl -X GET "https://example.com/org/api_keys"[ { "id": "string", "name": "string", "created_at": "2019-08-24T14:15:22Z", "created_by": { "id": "string", "email": "user@example.com", "name": "string" }, "expires_at": "2019-08-24T14:15:22Z", "deleted_at": "2019-08-24T14:15:22Z", "project_id": "string", "project_name": "string", "masked_key": "string" }]{ "code": "string", "message": "string", "details": [ { "code": "string", "message": "string" } ], "inner_error": { "code": "string", "message": "string" }}{ "code": "string", "message": "string", "details": [ { "code": "string", "message": "string" } ], "inner_error": { "code": "string", "message": "string" }}