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

Parameters: list_documents
NameTypeDescription
folder string string Folder name; leave out for the top level.

Request

cURL
curl https://cotlet.dev/api/v1/officient/documents \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("officient", "list_documents")
Node.js
const result = await cotlet.call('officient', 'list_documents');
CLI
cotlet call officient list_documents

Example response

JSON

{
  "folders": [
    "Payslips",
    "Identity card"
  ],
  "documents": [
    {
      "name": "House rules",
      "folder": ""
    }
  ],
  "required": [
    "Identity card"
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.