{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pricklymails-com/json-schema/pricklymails-com-register-request-schema.json",
  "title": "RegisterRequest",
  "description": "Request body for `POST /api/auth/register`.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pricklymails-com-auth-api-openapi.yml#/components/schemas/RegisterRequest",
  "type": "object",
  "required": [
    "email",
    "password"
  ],
  "properties": {
    "email": {
      "type": "string",
      "description": "The email address for the new account."
    },
    "locale": {
      "type": [
        "string",
        "null"
      ],
      "description": "The language of the page the user signs up on (`\"en\"` or `\"fr\"`), which every email to the account then uses.\nEnglish when absent."
    },
    "password": {
      "type": "string",
      "description": "The password for the new account: 12 to 128 characters with an uppercase letter, a digit, and a special\ncharacter."
    },
    "preview_token": {
      "type": [
        "string",
        "null"
      ],
      "description": "The `preview_token` that `POST /api/auth/signup-preview` returned for this same address: its result stands in\nfor the check registration would otherwise run again. Ignored when unknown, expired, or issued for another\naddress."
    }
  }
}