GET
/
documents
curl --request GET \
  --url https://api.sandbox.goteal.co/documents \
  --header 'X-API-KEY: <api-key>'
{
  "pagination": {
    "offset": 75,
    "limit": 25,
    "count": 14,
    "total_count": 89
  },
  "documents": [
    {
      "document_id": "95a0e70b-fe02-4f47-aef9-2efff279df71",
      "file_name": "payslip1.pdf",
      "type": "Payslip",
      "upload_time": "2019-05-17T00:00:00.000Z",
      "file_contents": "/documents/a9249254-ab10-4a2d-b709-eda95f5ecd59"
    }
  ]
}

Authorizations

X-API-KEY
string
headerrequired

Query Parameters

user_id
string
required

ID of the user to get documents for

offset
integer
default: 0

The offset to start at

limit
integer
default: 50

The number of items to return

Response

200 - application/json
pagination
object
documents
object[]