List my documents
List the folders and documents in your Documents section.
GET https://cotlet.dev/api/v1/officient/documents
read
Returns the folders and files your employer shared with you, plus the required documents you still have to submit. Contents are not downloaded, only listed.
Parameters
| Name | Type | Description |
|---|---|---|
| folder string | string | Folder name; leave out for the top level. |
Request
curl https://cotlet.dev/api/v1/officient/documents \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("officient", "list_documents") const result = await cotlet.call('officient', 'list_documents'); cotlet call officient list_documents Example response
{
"folders": [
"Payslips",
"Identity card"
],
"documents": [
{
"name": "House rules",
"folder": ""
}
],
"required": [
"Identity card"
]
}