{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lettrove-com/json-schema/lettrove-com-token-request-schema.json",
  "title": "TokenRequest",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lettrove-com-openapi.json#/components/schemas/TokenRequest",
  "type": "object",
  "properties": {
    "user": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 256,
          "description": "Your own id for the person: whatever you chose, up to 256 characters. Never a name or an email."
        }
      },
      "required": [
        "id"
      ],
      "additionalProperties": false,
      "description": "The person the editor opens for."
    },
    "origin": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048,
      "description": "The site the editor opens on, exactly as a browser states it: scheme, host and port, no path. It must be one of the project's allowed sites; a test key also opens on localhost."
    },
    "ttl": {
      "description": "Seconds the token lasts, 60 to 900. Default 900.",
      "type": "integer",
      "minimum": 60,
      "maximum": 900
    }
  },
  "required": [
    "user",
    "origin"
  ],
  "additionalProperties": false
}