Skip to main content
POST
/
document
/
upload
/
cURL
curl --request POST \
  --url https://api.example.com/document/upload/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form 'title=<string>'
{
  "title": "<string>",
  "file": "<string>",
  "user": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
file
file
required

PDF file to upload.

title
string

Optional. Defaults to the uploaded file name.

type
enum<string>

Optional document type.

Available options:
TOLL,
VIOLATION,
UNKNOWN

Response

Document created.

title
string
file
string

Storage path of the uploaded file.

user
integer
type
enum<string>
Available options:
TOLL,
VIOLATION,
UNKNOWN