Upload media
Uploads a single capture file (document image, selfie, or video) and returns a mediaId. You then reference these IDs in POST /verify. Number-only verifications (e.g. BVN) don’t require any upload.
Authentication: Authorization: Bearer pk_… (required).
Content type: multipart/form-data.
Production note: like verify, this endpoint requires an approved business for pk_live_ keys.
Form fields
Allowed type values
document_front, document_back, selfie, document_front_video, document_back_video, liveness_video, proof_of_address, business_document, address_photo, auth_reference
auth_reference is the reference face photo for a biometric-authentication session: upload it here, then pass its mediaId as faceReferenceMediaId on POST /api/kyc/sessions. It is never sent by an applicant mid-flow.
Allowed MIME types
image/jpeg, image/png, image/webp, video/webm, video/mp4. Proof-of-address and business documents also accept application/pdf.
Limits
Maximum file size is 25 MB. Uploaded files are held with a short TTL and are only retained permanently once referenced by a verification. Orphaned uploads are discarded automatically.
Request
Response 200 OK
Pass the returned IDs to verify under mediaIds, keyed by capture slot:
Errors
See Errors for the complete reference.