Skip to main content
POST
cURL
Current
File Upload
Current version
File uploads accept documents as multipart form data and return per-file results. Use them when you want Pangram to extract text from files and create dashboard-backed AI detection results.

POST /

Upload one or more files for AI detection.
This endpoint must receive multipart/form-data with a form field named files. Requests without that field return 422 Unprocessable Entity with Field required for body.files.

Request

Send the request as multipart/form-data. When using cURL, do not set the Content-Type header yourself. The -F flags add the multipart boundary automatically.

Response

Returns a JSON array with one result object per uploaded file.

Example

cURL
To upload multiple files, repeat the files form field:
cURL
Example Response
To print only the dashboard link:

Errors

Authorizations

x-api-key
string
header
required

Body

multipart/form-data
files
file[]
required

Files to analyze. Send this form field once per uploaded file.

Whether to create and return a public dashboard link for each uploaded file.

Response

Per-file upload results.

Public dashboard URL for the uploaded file.