{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kryptos-io/json-schema/kryptos-io-post-token-exchange-response-schema.json",
  "title": "PostTokenExchangeResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/kryptos-io-kryptos-connect-openapi-generated.yml#/components/schemas/PostTokenExchangeResponse",
  "type": "object",
  "properties": {
    "access_token": {
      "type": "string",
      "description": "Long-lived access token valid for 15 years"
    },
    "grant_id": {
      "type": "string",
      "description": "Grant ID for revoking access later"
    },
    "token_type": {
      "type": "string",
      "description": "Token type, typically 'Bearer'"
    },
    "expires_in": {
      "type": "number",
      "description": "Token expiration in seconds (473,040,000 for 15 years)"
    },
    "scope": {
      "type": "string",
      "description": "Granted scopes"
    },
    "workspace_id": {
      "type": "string",
      "description": "Workspace ID associated with the access token"
    }
  }
}