Skip to main content
POST
Upload a file

Authorizations

Authorization
string
header
required

Your API key, ps_live_… or ps_test_….

Body

application/json
file
file

The file, when you send multipart/form-data.

filename
string

File name with its extension, when you send JSON.

Example:

"terms-2026.pdf"

content
string

The file encoded in base64, when you send JSON.

content_type
string

Media type. Guessed from the extension when omitted.

Example:

"application/pdf"

Response

200 - application/json

The response is of type string.