Upload a photo for a face comparison
Stores one photo and returns a mediaId to pass to the comparison. Uploading is optional, because the comparison also accepts photos inline. Use it to reuse one photo across several checks or to send bytes too large for base64. An upload that no comparison claims expires after 30 minutes.
Error codes
A missing or unknown key answers 401, where error is a short sentence rather than a code.
Requires a secret (sk_) key. A publishable key receives 403 secret_key_required.
Authentication
AuthorizationBearer
Send the API key as a Bearer token. Each operation states whether a publishable key is enough or a secret key is required.
Request
This endpoint expects a multipart form containing a file.
file
The photo, as image/jpeg, image/png or image/webp, up to 25 MB.
Response
The photo was stored.
mediaId
The id to pass as mediaAId or mediaBId on a comparison.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error