GET
/
documents
/
{document_id}
curl --request GET \
  --url https://api.sandbox.goteal.co/documents/{document_id} \
  --header 'X-API-KEY: <api-key>'
{
  "document_id": "95a0e70b-fe02-4f47-aef9-2efff279df71",
  "file_name": "payslip1.pdf",
  "type": "Payslip",
  "upload_time": "2019-05-17T00:00:00.000Z",
  "file_contents": "JVBERi0xLjQKJdPr6eEKMSAwIG9iago8PC9UaXRsZSAoS..."
}

Authorizations

X-API-KEY
string
headerrequired

Path Parameters

document_id
string
required

The id of the file

Response

200 - application/json
document_id
string
required

A unique document identifier

file_name
string
required

Name of the file

type
string
required

The type of document

upload_time
string
required
file_contents
string
required

Base-64 encoded string containing file contents