Skip to main content
POST
/
capabilities
/
files.upload
files.upload
curl --request POST \
  --url https://developer.api.receiptor.ai/v1/capabilities/files.upload \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "fileName": "<string>",
  "mimeType": "image/jpeg",
  "base64Data": "<string>"
}
'
{
  "success": true,
  "code": 200,
  "data": {
    "result": {}
  }
}

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