{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sealgate-ai/json-schema/sealgate-ai-cli-token-response-schema.json",
  "title": "CliTokenResponse",
  "description": "What sealgate-cli redeems for: an Org API account token, and no installation.",
  "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/CliTokenResponse",
  "properties": {
    "access_token": {
      "type": "string",
      "title": "Access Token",
      "description": "An Org API account token (sgt_acct_...)."
    },
    "token_type": {
      "type": "string",
      "const": "Bearer",
      "title": "Token Type",
      "default": "Bearer"
    },
    "expires_in": {
      "type": "integer",
      "title": "Expires In",
      "description": "Seconds until access_token expires."
    },
    "scope": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Scope"
    },
    "token_id": {
      "type": "string",
      "title": "Token Id",
      "description": "Its id on the API tokens page, where it revokes."
    },
    "user_id": {
      "type": "string",
      "title": "User Id"
    },
    "org_id": {
      "type": "string",
      "title": "Org Id"
    }
  },
  "type": "object",
  "required": [
    "access_token",
    "expires_in",
    "scope",
    "token_id",
    "user_id",
    "org_id"
  ]
}