Three lines



[API] Upload Document

Privileged and Confidential This endpoint design has been confidentially shared with you. It is still under development and is subject to change without notice. Please do not share this document or API endpoint details with anyone who is not authorized to have access. For more information read about scopes.

Uploads a new document for a pre-created vehicle.



HTTP Method


Access Method

Client Credentials

Required scopes


Example Request
curl -i -X POST "" \
-H "Authorization: Bearer <TOKEN>" -H "Content-Type: application/json" \
-d '{
    "type_id": "<type_id>"

Request Path Parameters
Name Type Description
vehicle_id string Vehicle ID which was returned in the create vehicle response.

Request Body Fields
Name Type Description
document_type string Global type of the document.
Possible values- [VehicleInsurance, VehicleInspection, VehicleRegistration, TEST_REQUIRED_DOCUMENT(for testing in Sandbox environment)]
document_expiry_date (optional) string Formatted date (YYYY-MM-DD) when the document will expire
content Byte Array Base64 Encoded file content
content_type string Content type of the file.
Possible values- [‘bmp’, ‘jpg’, ‘jpeg’, ‘png’, ‘pdf’, ‘doc’, ‘docx’]
type_id (optional) string Global type id of the document.
Identify the document to upload when multiple documents share the same document_type

Example Response
Status-code: 204 No Content

Endpoint Specific Errors
Http Status Code Code
400 bad_request
401 unauthorized
403 forbidden (client does not have permission to upload a document for the given vehicle)
404 resource_not_found (vehicle not found)
429 rate_limited
500 internal_server_error
503 service_unavailable


© 2023 Uber Technologies Inc.