{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/2x/json-schema/2x-apikey-response-schema.json",
  "title": "APIKeyResponse",
  "description": "Response model for API key.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/2x-api-keys-api-openapi.yml#/components/schemas/APIKeyResponse",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "customer_id": {
      "type": "string",
      "title": "Customer Id"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "scope": {
      "type": "string",
      "title": "Scope"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "expires_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expires At"
    },
    "last_used_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Used At"
    },
    "api_key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Api Key"
    }
  },
  "type": "object",
  "required": [
    "id",
    "customer_id",
    "name",
    "description",
    "scope",
    "status",
    "created_at",
    "expires_at",
    "last_used_at"
  ]
}