Upload a capture file
Stores one document image, selfie, video or supporting file and returns its mediaId, which you then reference when creating a verification. An unreferenced upload is discarded after 30 minutes.
Accepted content types are image/jpeg, image/png, image/webp, video/webm, video/mp4 and application/pdf. The file content decides the stored type, so a HEIC photo labelled as JPEG is converted for you.
A hosted verification session token is also accepted in place of an API key. An optional X-Myaza-Device-Id header (at most 64 characters) records which device made the capture.
This endpoint returns plain sentences in error rather than stable codes, apart from the authentication codes below.
Error codes
Accepts a publishable (pk_) or secret (sk_) key.
Authentication
Request
What the file is. Images are accepted for every type, videos for the video types, and PDF only for proof_of_address, business_document and supporting_document.
Response
The identifier to reference in mediaIds when creating a verification.