Skip to main content

# Manual operations

This section of the API allows operations on the applicant to bypass the web component and various checks. For example, to upload a photo database or manually register an applicant.

### Registration​

Manual registration of the applicant by photo. During registration, checks from the “Manual mode settings” section of the settings will be performed.

Endpoint: POST /publicapi/api/v2/private/Manual/Register

Request body:

    {
      "faceImageBase64": "string",
      "applicantId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    }

Request example:

    curl -X 'POST' \
      'https:/baf.ai/publicapi/api/v2/private/Manual/Register' \
      -H 'accept: application/json' \
      -H 'Content-Type: application/json-patch+json' \
      -d '{ "faceImageBase64": "string", "applicantId": "3fa85f64-5717-4562-b3fc-2c963f66afa6" }'

Response example:

Status Code | 200

Possible errors:

HTTP code | Message | Description | Error code
400 | Request is closed | Attempted registration by closed applicant | 120040
400 | Applicant is already registered | Attempted registration by registered applicant | 150001