{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bynn-com/json-schema/bynn-com-post-face-collections-token-enroll-schema.json",
  "title": "postFaceCollectionsTokenEnroll",
  "description": "Enroll a face into a collection",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bynn-com-face-enrollment-api-openapi.yml#/components/schemas/postFaceCollectionsTokenEnroll",
  "type": "object",
  "properties": {
    "image_url": {
      "type": "string",
      "description": "URL of the image containing a face"
    },
    "base64_image": {
      "type": "string",
      "description": "Base64 strict encoded image data (max 20MB decoded)"
    },
    "file": {
      "type": "string",
      "format": "binary",
      "description": "Image file upload (multipart/form-data, max 20MB)"
    },
    "name": {
      "type": "string",
      "description": "Name or label for the enrolled face (max 255 characters)"
    },
    "external_id": {
      "type": "string",
      "description": "External reference ID for your system (max 255 characters)"
    },
    "metadata": {
      "type": "object",
      "description": "Additional metadata to store with the face (max 16KB)"
    }
  }
}