v1

latestOpenAPI 3.1.02026-07-2617501.1 MB

Fetch a specific document using its ID

get/v1/documents/{id}

Path parameters

idinteger required

Specify the ID of the document that you want to fetch.

Response

200

Example response

{
  "document": {
    "id": 1151,
    "category": "bill of lading",
    "public_url": "/url/to/the/document",
    "notes": "notes taken for bill of lading",
    "ref_no": "ref no for doc",
    "doc_date": "2020-04-21",
    "doc_time": "2020-04-21T02:00:00Z",
    "uploader": {
      "id": 10621,
      "first_name": "Nova",
      "last_name": "Effertz",
      "email": "6fe7feabfc08@keeptruckin.com",
      "role": "dispatcher"
    },
    "created_at": "2020-04-21T14:41:51Z",
    "updated_at": "2020-04-21T14:41:51.219599Z"
  }
}