Applicants

Create Applicant

The first step in the process is to create an applicant. An applicant will be a person whose face you want to search against. You can create multiple applicants, with each having one facial image added to it.

HTTP
Copy
HeadersValue
Content-Typeapplication/json
Acceptapplication/json

Request body

Adding a payload is optional in this request. But if you do opt to send a payload, you can directly add a face to the applicant upon creation of the applicant.

JSON
Copy

Response

The response generates an applicant id and will include the face if added in the request:

JSON
Copy

Add Face

Once an applicant has been created, you can then add a face of an individual to the applicant.

HTTP
Copy

Request body

When adding a face to the applicant, you can either use an image that you already possess of an individual, or you can use an image that Yoti captured of an individual in a previous Yoti identity verification session.

JSON
Copy

When using an image from a previous identity verification session, you need to supply the session id and media id that is linked to that image.

JSON
Copy

Response

You will receive a unique id for the face upon a successful request:

JSON
Copy

Error Responses

Error codeDescription
400Bad request - there was an error when validating the request payload
401Unauthorised - the request to the endpoint is not authorised for the API keys use
403Insufficient permission - the sdk id does not have permission to use this service
422Unprocessable entity - cannot handle the content of the payload
404Not found - applicant can't be found linked to the supplied id
503Service unavailable - Yoti services are temporarily unavailable
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard