Upload driver document

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Upload a document to a specific driver record. Supports multipart/form-data. Each request must contain exactly one file.

  • Max file size: 25 MB
  • Allowed MIME types: application/pdf, image/jpeg, image/png, image/gif
  • Allowed Document Types: License, DriverLicense, DriverSheet, Drug Test, Medical (suggested rename: Medical Card), Operating Authority, Completed W9 Tax Form (W9 Form), Other Documents

Parameters

ParameterInTypeRequiredDescription
driverIdpathstringYesUnique identifier of the driver
versionpathstringYesAPI version (e.g., 1.0)

Request Body

multipart/form-data

ParameterTypeRequiredDescription
FilebinaryYesThe file to upload (PDF, JPEG, PNG). Max size 25 MB.
FileNamestringNoOptional custom filename (if omitted, filename is taken from multipart part)
DocumentTypestringYesThe type of document. Must match one of the allowed document types.

Example Request (cURL)

curl -X POST "{{host}}/api/p/v1/drivers/{driverId}/document" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: multipart/form-data" \
  -F "File=@Driver_License.pdf" \
  -F "DocumentType=License"

Response Body

NameTypeDescription
idstringUnique identifier of the uploaded document
AttachmentPathstringFile name/path assigned on upload + timestamp suffix (1757343192)
AttachmentTypestringType of document (matches DocumentType)
AttachmentSizeintegerSize of the file in bytes
UploadedAtstringUTC timestamp when the file was uploaded
ParentIdstringIdentifier of the parent entity (e.g., driverId, loadNumber, tripId)
ParentTypestringEntity type the document is attached to (e.g., Driver, Load, Trip, Trailer)

Example Response

200 OK

{
  "id": "4b5c38bd-005e-4903-a4ee-45ca5e86411a",
  "AttachmentPath": "DriverLicense-1757343192.pdf",
  "AttachmentType": "License",
  "AttachmentSize": 5245329,
  "UploadedAt": "2025-09-09T08:26:03.194Z",
  "ParentId": "DR12345",
  "ParentType": "Driver"
}

On the right side, you can see examples of different error codes by clicking Example and selecting the response code.


Rate Limits

All endpoints are subject to rate limits to protect the API from traffic spikes.
For detailed information, see the Rate Limits section.


Try It Out

This page is interactive, allowing you to try a request by specifying the API version and driverId in the URL path.

As you fill out the parameters, the cURL command on the right side of the page will be automatically updated. Alternatively, you can directly edit the cURL command.

⚠️ Don’t forget: make sure to authorize yourself before trying a request.

Path Params
string
required
string
required
Defaults to 1.0
Body Params
file
required
string | null
string
required
length ≥ 1
Headers
string
enum
Defaults to application/json
Allowed:
Responses

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json