{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/busymate-dev/json-schema/busymate-dev-post-start-request-schema.json",
  "title": "PostStartRequest",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/busymate-dev-federation-openapi-generated.yml#/components/schemas/PostStartRequest",
  "type": "object",
  "properties": {
    "client_id": {
      "type": "string"
    },
    "code_challenge": {
      "type": "string"
    },
    "code_challenge_method": {
      "type": "string",
      "description": "must be \"S256\""
    },
    "target": {
      "type": "string",
      "description": "e.g., \"ios\""
    },
    "directus_token": {
      "type": "string",
      "description": "user's backend access token"
    },
    "payload": {
      "type": "object",
      "description": "for hmac mode, contains sub, email, iat, jti"
    },
    "signature": {
      "type": "string",
      "description": "base64url HMAC-SHA256 over canonical payload"
    }
  },
  "required": [
    "client_id",
    "code_challenge",
    "code_challenge_method",
    "target"
  ]
}