{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/donebear-com/json-schema/donebear-com-agent-signup-complete-schema.json",
  "title": "AgentSignupComplete",
  "description": "The signup is verified. Returned once with the raw key: store it now, because a later poll answers `consumed`.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/donebear-com-api-openapi.json#/components/schemas/AgentSignupComplete",
  "additionalProperties": false,
  "properties": {
    "apiKey": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string"
        },
        "key": {
          "description": "The raw `db_` API key. Send it as a bearer token.",
          "type": "string"
        },
        "prefix": {
          "type": "string"
        },
        "scopes": {
          "items": {
            "enum": [
              "read",
              "write"
            ],
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "id",
        "key",
        "prefix",
        "scopes"
      ],
      "type": "object"
    },
    "email": {
      "format": "email",
      "type": "string"
    },
    "mcp": {
      "additionalProperties": false,
      "description": "Paste-ready configuration for the hosted MCP server, authorized with the new key.",
      "properties": {
        "claude": {
          "description": "A `claude mcp add` command line.",
          "type": "string"
        },
        "cursor": {
          "description": "A Cursor `mcp.json` object.",
          "type": "object"
        },
        "headers": {
          "additionalProperties": false,
          "properties": {
            "Authorization": {
              "type": "string"
            }
          },
          "required": [
            "Authorization"
          ],
          "type": "object"
        },
        "url": {
          "format": "uri",
          "type": "string"
        }
      },
      "required": [
        "claude",
        "cursor",
        "headers",
        "url"
      ],
      "type": "object"
    },
    "ok": {
      "const": true,
      "type": "boolean"
    },
    "status": {
      "const": "complete",
      "type": "string"
    },
    "user": {
      "additionalProperties": false,
      "properties": {
        "email": {
          "format": "email",
          "type": "string"
        },
        "id": {
          "type": "string"
        }
      },
      "required": [
        "email",
        "id"
      ],
      "type": "object"
    },
    "workspace": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "urlKey": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "name",
        "urlKey"
      ],
      "type": "object"
    }
  },
  "required": [
    "apiKey",
    "email",
    "mcp",
    "ok",
    "status",
    "user",
    "workspace"
  ],
  "type": "object"
}