{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sealgate-ai/json-schema/sealgate-ai-device-token-response-schema.json",
  "title": "DeviceTokenResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sealgate-ai-device-auth-api-openapi.yml#/components/schemas/DeviceTokenResponse",
  "properties": {
    "access_token": {
      "type": "string",
      "title": "Access Token"
    },
    "token_type": {
      "type": "string",
      "const": "Bearer",
      "title": "Token Type",
      "default": "Bearer"
    },
    "client_installation_id": {
      "type": "string",
      "title": "Client Installation Id"
    },
    "device_id": {
      "type": "string",
      "title": "Device Id"
    },
    "scope": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Scope"
    },
    "user_id": {
      "type": "string",
      "title": "User Id"
    },
    "org_id": {
      "type": "string",
      "title": "Org Id"
    },
    "api_key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Api Key",
      "description": "The approving user's SealGate API key. Present only for clients that sign the human in on their behalf (desktop); always null for stdiod."
    }
  },
  "type": "object",
  "required": [
    "access_token",
    "client_installation_id",
    "device_id",
    "scope",
    "user_id",
    "org_id"
  ]
}