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, and a file whose content is not a supported image, PDF, MP4 or WebM is refused whatever it is labelled.
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
Send the API key as a Bearer token. Each operation states whether a publishable key is enough or a secret key is required. A scoped publishable key has Verification flow access, the fixed set flow.run, flow.config.read and verifications.status.read; a scoped secret key reaches what its scopes allow.
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.