{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/converly-io/json-schema/converly-io-signup-request-schema.json",
  "title": "SignupRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/converly-io-signup-api-openapi.yml#/components/schemas/SignupRequest",
  "type": "object",
  "properties": {
    "auth_user_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "BetterAuth user id from POST /api/auth/sign-up/email."
    },
    "attribution": {
      "type": "object",
      "additionalProperties": {},
      "description": "Arbitrary attribution blob; stored on the account + mirrored to Stripe customer metadata."
    },
    "mint_initial_api_key": {
      "type": "boolean",
      "default": false,
      "description": "If true, mints an sk_live_* API key and returns the plaintext once in `api_key.plaintext`."
    },
    "initial_api_key_name": {
      "type": "string",
      "maxLength": 255,
      "description": "Human-readable label for the minted key (ignored if mint_initial_api_key is false)."
    },
    "initial_api_key_permissions": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Permission slugs for the minted key. Defaults to the standard full-access key bundle (DEFAULT_API_KEY_PERMISSIONS)."
    }
  },
  "required": [
    "auth_user_id"
  ]
}