{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/compeller-ai/json-schema/compeller-ai-agent-signup-response-schema.json",
  "title": "AgentSignupResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/compeller-ai-openapi.yml#/components/schemas/AgentSignupResponse",
  "type": "object",
  "required": [
    "access_token",
    "apiToken",
    "tokenType",
    "header",
    "alternateHeader",
    "user",
    "signup"
  ],
  "properties": {
    "access_token": {
      "type": "string",
      "description": "Bearer token usable on `/api/v1/*` and `/api/mcp`. Same value as `apiToken`."
    },
    "apiToken": {
      "type": "string",
      "description": "Alias of `access_token` for parity with POST /api/v1/auth/token."
    },
    "tokenType": {
      "type": "string",
      "enum": [
        "Bearer"
      ]
    },
    "header": {
      "type": "string"
    },
    "alternateHeader": {
      "type": "string"
    },
    "user": {
      "type": "object",
      "required": [
        "id",
        "email",
        "accountId"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64"
        },
        "email": {
          "type": "string",
          "format": "email"
        },
        "displayName": {
          "type": "string"
        },
        "accountId": {
          "type": "integer",
          "format": "int64"
        },
        "accountStatus": {
          "type": "string"
        },
        "apiEligible": {
          "type": "boolean"
        }
      }
    },
    "signup": {
      "type": "object",
      "required": [
        "verification",
        "account_status"
      ],
      "properties": {
        "verification": {
          "type": "string",
          "enum": [
            "deferred"
          ],
          "description": "Email verification is not required for token issuance in this slice."
        },
        "terms_accepted": {
          "type": "boolean"
        },
        "account_status": {
          "type": "string"
        },
        "agent_installation_id": {
          "type": [
            "string",
            "null"
          ],
          "description": "Echo of the X-Agent-Installation-Id header (or body fallback) when one was supplied."
        },
        "guidance": {
          "type": "string",
          "description": "Plain-language reminder to persist the token and not call signup repeatedly."
        }
      }
    }
  }
}