{ "opencollection": "1.0.0", "info": { "name": "CockroachDB Cloud APIKeys API", "version": "2024-09-16" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "APIKeys", "type": "folder" }, "items": [ { "info": { "name": "List API keys", "type": "http" }, "http": { "method": "GET", "url": "https://cockroachlabs.cloud/api/v1/api-keys", "params": [ { "name": "service_account_id", "value": "", "type": "query", "description": "Filter API keys by the associated service account ID." }, { "name": "pagination.page", "value": "", "type": "query", "description": "Page number for paginated results, starting from 1." }, { "name": "pagination.limit", "value": "", "type": "query", "description": "Maximum number of results to return per page." }, { "name": "pagination.as_of_time", "value": "", "type": "query", "description": "RFC3339 timestamp to return results as they were at a specific point in time (time-travel query)." }, { "name": "pagination.sort_order", "value": "", "type": "query", "description": "Sort direction for paginated results. Accepted values are ASC and DESC." } ] }, "docs": "Returns a list of API keys in the organization, optionally filtered by service account ID. Accessible to users with ORG_ADMIN or CLUSTER_ADMIN roles." }, { "info": { "name": "Create an API key", "type": "http" }, "http": { "method": "POST", "url": "https://cockroachlabs.cloud/api/v1/api-keys", "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new API key associated with a service account. Requires ORG_ADMIN role. The secret is only returned in the response to this create request and cannot be retrieved again." }, { "info": { "name": "Get an API key", "type": "http" }, "http": { "method": "GET", "url": "https://cockroachlabs.cloud/api/v1/api-keys/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "Unique identifier of the resource." } ] }, "docs": "Retrieves details of a specific API key by ID. Accessible to users with ORG_ADMIN or CLUSTER_ADMIN roles." }, { "info": { "name": "Update an API key", "type": "http" }, "http": { "method": "PATCH", "url": "https://cockroachlabs.cloud/api/v1/api-keys/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "Unique identifier of the resource." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates the metadata of an existing API key. Requires ORG_ADMIN role." }, { "info": { "name": "Delete an API key", "type": "http" }, "http": { "method": "DELETE", "url": "https://cockroachlabs.cloud/api/v1/api-keys/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "Unique identifier of the resource." } ] }, "docs": "Permanently deletes an API key by ID, revoking all access using that key. Requires ORG_ADMIN role." } ] } ], "bundled": true }