Skip to main content
POST
/
uploads
Upload file
curl --request POST \
  --url https://api.anycheck.ai/uploads \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file_category=VERIFICATION_INPUT_FILE \
  --form 'files=<string>' \
  --form 'file_passwords[0]=password1' \
  --form 'file_passwords[1]=password2' \
  --form files.items='@example-file'
{
"object_id": "1503f16a-67a8-4976-9b1c-9446ec626a8d",
"file_category": "VERIFICATION_INPUT_FILE",
"files": [
{
"path": "uploads/selfie_123456.jpg",
"url": "https://api.anycheck.ai/files/123e4567-e89b-12d3-a456-426614174000",
"page_count": 1
}
]
}

Authorizations

Authorization
string
header
required

JWT token obtained from /auth/login endpoint.

Example:

Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

Body

multipart/form-data
file_category
enum<string>
required

Category of the uploaded files

Available options:
VERIFICATION_INPUT_FILE,
PROFILE_PICTURE
Example:

"VERIFICATION_INPUT_FILE"

files
file[]
required

Files to upload (supports images, PDFs, documents)

Minimum array length: 1
file_passwords
string[]

Optional passwords for protected files (e.g., password-protected PDFs). Array should match files array order.

Example:
["password1", "password2"]

Response

File uploaded successfully

object_id
string<uuid>
required

Unique object identifier for the uploaded file

Example:

"1503f16a-67a8-4976-9b1c-9446ec626a8d"

file_category
enum<string>
required

Category of the uploaded file

Available options:
VERIFICATION_INPUT_FILE,
PROFILE_PICTURE
Example:

"VERIFICATION_INPUT_FILE"

files
object[]
required

Array of uploaded file information