{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/cockroach-labs/main/json-schema/cockroach-labs-create-api-key-response-schema.json", "title": "CreateApiKeyResponse", "description": "Response from creating an API key. Contains the key secret which is only returned once and cannot be retrieved again.", "x-generated": "2026-10-04", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/cockroach-labs-api-keys-api-openapi.yml#/components/schemas/CreateApiKeyResponse", "type": "object", "properties": { "api_key": { "$ref": "#/$defs/ApiKey" }, "secret": { "type": "string", "description": "The secret value of the API key. Only returned on creation and not retrievable afterward." } }, "$defs": { "ApiKey": { "type": "object", "description": "Represents an API key used for authenticating requests to the CockroachDB Cloud API.", "properties": { "id": { "type": "string", "description": "Unique identifier of the API key." }, "name": { "type": "string", "description": "Human-readable name of the API key." }, "service_account_id": { "type": "string", "description": "Service account associated with this API key." }, "created_at": { "type": "string", "format": "date-time", "description": "Timestamp when the API key was created." } } } } }