You are viewing an older version. Click here to view the latest

Server
www.example.com
Server Variables

X-Yoti-Auth-Token header containing the client_session_token value obtained via the Session creation endpoint.

Fields
KeyIn
X-Yoti-Auth-TokenHeader

Get all the supported documents

Get all the supported documents

Auth
GET /supported-documents
Copy
Responses application/json
200

OK

SupportedDocumentsobject
supported_countriesarray[object]
codestring
supported_documentsarray[object]
typestring
Response
Copy

Create a new session

Create a new session

Auth
Headers
X-Yoti-SDKstring

'X-Yoti-SDK' contains the language the SDK is written in

X-Yoti-SDK-Versionstring

'X-Yoti-SDK-Version' contains the version of the SDK being used

Query String
sdkIdstring
noncestring
timestampstring
Request Body application/json
POST /sessions
Responses application/json
201

Session created

CreateSessionResponseBodyobject

Create Session Response Body

client_session_token_ttlint32

remaining time the user has to complete the session

client_session_tokenuuid

client token to be used for auth of any calls made by client for this session

session_iduuid
400

Payload validation error or malformed request

401

Unauthorised request (wrong key or signature)

403

Unauthorised request (app is disabled or has no associated organisation_id)

404

The application for provided sdk id does not exist

503

The service is unavailable

Response
Copy

Retrieve the entire Session

Retrieve the entire Session

Auth
Path Params
sessionIdstring
Query String
sdkIdstring
timestampstring
noncestring
GET /sessions/{sessionId}
Copy
Responses application/json
200

OK

400

Invalid payload or request missing headers or query params

401

Unauthorised request (wrong key or signature)

404

Session or App not found

Response
Copy

Delete the session and everything associated with it

Delete the session and everything associated with it

Auth
Path Params
sessionIdstring
Query String
sdkIdstring
DELETE /sessions/{sessionId}
Copy
Responses application/json
204

Session deleted

No response body
400

Invalid payload or request missing headers or query params

401

Unauthorised request (wrong key or signature)

404

App not found

409

The checks are not finished

Response
Copy

Retrieve media content

Retrieves a specific media

Auth
Headers
X-Yoti-Device-Metastring

X-Yoti-Device-Meta header containing a base64 encoded JSON with DeviceMetadata (as per the schema)

Path Params
sessionIdstring
mediaIdstring
Query String
sdkIdstring
noncestring
timestampstring
GET /sessions/{sessionId}/media/{mediaId}/content
Copy
Responses application/json
200

OK. Response body depends on Content-Type of the media

No response body
204

OK. Regulations prevent us from returning the media content

400

Bad Request

401

Unauthorised request (wrong key or signature)

404

Session, Media or App not found

Response
Copy

Delete media content

Deletes a specific media content

Auth
Headers
X-Yoti-Device-Metastring

X-Yoti-Device-Meta header containing a base64 encoded JSON with DeviceMetadata (as per the schema)

Path Params
sessionIdstring
mediaIdstring
Query String
sdkIdstring
noncestring
timestampstring
DELETE /sessions/{sessionId}/media/{mediaId}/content
Copy
Responses application/json
204

No content

No response body
400

Bad Request

401

Unauthorised request (wrong key or signature)

404

Session, Media or App not found

409

Session is locked (session in progress before triggering checks) or Resource is locked (session in progress with checks triggered)

Response
Copy

Upload FaceCapture image

Provides image media for FaceCapture resource. This endpoint supports image/jpq & image/png Content-Type values.

Please note that the binary content part of the request payload MUST specify the filename parameter in the Content-Disposition e.g.

Content-Disposition: form-data; name="binary-content"; filename="example.png"

Auth
Headers
X-Yoti-Device-Metastring

X-Yoti-Device-Meta header containing a base64 encoded JSON with DeviceMetadata (as per the schema)

Path Params
sessionIdstring
resourceIdstring
Form Data
binary-contentfile
PUT /sessions/{sessionId}/resources/face-capture/{resourceId}/image
Copy
Responses application/json
200

OK, image updated

No response body
400

Bad Request

401

Unauthorised request (wrong or missing token)

403

Forbidden

404

Session, Resource or Task id not found

409

Token is expired or resource is locked

415

Unsupported content type

422

Unprocessable Media

503

The service is unavailable

Response
Copy

Trigger checks

Trigger checks

Auth
Headers
X-Yoti-Device-Metastring

X-Yoti-Device-Meta header containing a base64 encoded JSON with DeviceMetadata (as per the schema)

Path Params
sessionIdstring
DELETE /sessions/{sessionId}/client-session-token
Copy
Responses application/json
204

Success (the client session token is deleted)

No response body
400

Bad Request (missing header value)

401

Unauthorised request (wrong or missing token)

403

Forbidden

404

Session Not Found

409

Token expired or incomplete resources

503

The service is unavailable

Response
Copy