Skip to main content
POST
files.upload

Authorizations

x-api-key
string
header
required

API key prefixed with sk_. Obtain from the Receiptor AI dashboard.

Body

application/json
fileName
string
required

Original file name including extension

Minimum string length: 1
mimeType
enum<string>
required

MIME type of the file

Available options:
image/jpeg,
image/png,
image/gif,
image/webp,
image/bmp,
image/tiff,
application/pdf
base64Data
string
required

Base64-encoded file content

Minimum string length: 1

Response

Successful response

success
boolean
Example:

true

code
integer
Example:

200

data
object