{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nopaque-co-uk/json-schema/nopaque-co-uk-create-api-key-response-schema.json",
  "title": "CreateApiKeyResponse",
  "description": "Response from `POST /workspaces/{workspaceId}/api-keys`. **This is the ONE AND ONLY\nTIME the raw secret (`rawKey`) is returned by the platform.** Store it securely\nimmediately — subsequent reads (`GET /workspaces/{workspaceId}/api-keys`) return\nONLY the prefix and metadata. The platform stores a SHA-256 hash and cannot\nrecover lost keys; lost keys must be revoked and reissued.\n\nThe `rawKey` format is `nq_<64-hex-chars>` (67 chars total). Use it as the\n`x-api-key` request header value when calling the api-key gateway\n(`https://api.nopaque.co.uk`).\n",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nopaque-co-uk-api-keys-api-openapi.yml#/components/schemas/CreateApiKeyResponse",
  "type": "object",
  "required": [
    "id",
    "keyPrefix",
    "label",
    "createdAt",
    "rawKey"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "keyPrefix": {
      "type": "string"
    },
    "label": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "rawKey": {
      "type": "string",
      "description": "THE FULL SECRET. Returned ONLY on creation. Store immediately and never again.\nUse as the `x-api-key` header on api-key gateway requests.\n"
    }
  }
}