Vitrina API
Reference

Vehicle attachments

Documents and files hanging off one unit.

Documents and files hanging off one unit.

MethodPathWhat it does
GET/vehicle-attachmentsList registry documents for a vehicle
POST/vehicle-attachmentsUpload a registry document for a vehicle (multipart/form-data)
DELETE/vehicle-attachments/{id}Remove a vehicle attachment
GET/vehicle-attachments/{id}/contentDownload the stored bytes of one attachment

GET /vehicle-attachments

List registry documents for a vehicle

vehicle_id is required; there is no tenant-wide list.

ParameterInTypeRequiredConstraints
vehicle_idqueryuuidyes
kindquerypadron \cedula \contrato \
curl https://api.vitrinadev.com/api/v1/vehicle-attachments \
  -H "Authorization: Bearer $VITRINA_KEY"

Answers: 200 · 400 · 401 · 403 · 404 · 409 · 429

POST /vehicle-attachments

Upload a registry document for a vehicle (multipart/form-data)

Capped at the configured max size; the file part is required.

curl -X POST https://api.vitrinadev.com/api/v1/vehicle-attachments \
  -H "Authorization: Bearer $VITRINA_KEY" \
  -H "Content-Type: application/json" \
  -d '{ … }'

Answers: 201 · 400 · 401 · 403 · 404 · 409 · 429

DELETE /vehicle-attachments/{id}

Remove a vehicle attachment

Erases the storage object first, then the row.

ParameterInTypeRequiredConstraints
idpathuuidyes
curl -X DELETE https://api.vitrinadev.com/api/v1/vehicle-attachments/<id> \
  -H "Authorization: Bearer $VITRINA_KEY"

Answers: 204 · 400 · 401 · 403 · 404 · 409 · 429

GET /vehicle-attachments/{id}/content

Download the stored bytes of one attachment

Streams the raw file (not a JSON envelope) with Cache-Control: private, no-store and a locked-down CSP. Audited on every read.

ParameterInTypeRequiredConstraints
idpathuuidyes
curl https://api.vitrinadev.com/api/v1/vehicle-attachments/<id>/content \
  -H "Authorization: Bearer $VITRINA_KEY"

Answers: 200 · 400 · 401 · 403 · 404 · 409 · 429

On this page