{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aimeat-io/json-schema/aimeat-io-magic-link-request-schema.json",
  "title": "MagicLinkRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aimeat-io-ghii-web-api-openapi.yml#/components/schemas/MagicLinkRequest",
  "type": "object",
  "required": [
    "email"
  ],
  "properties": {
    "email": {
      "type": "string",
      "format": "email",
      "description": "Email address to send magic link to"
    },
    "redirect": {
      "type": "string",
      "maxLength": 2048,
      "description": "Where the link returns the person after it signs them in: a path\nof this node (`/v1/profile?tab=agents`), or an absolute address\non one of this node's own published app origins\n(`https://my-app.apps.aimeat.io/?view=week`), with the node's\nscheme and port. Any other value is left out of the link, and the\nlink then lands on the front page. The answer is the same either\nway.\n"
    },
    "lang": {
      "type": "string",
      "enum": [
        "en",
        "fi",
        "es"
      ],
      "description": "The language of the page the link was asked from. The mail is\nwritten in it; without it, or with a language this node has no\nstrings for, the mail uses the account's own language.\n"
    }
  }
}