List a trip's document folders
GET/v1/trips/{tripId}/document-folders
Lists a trip's document folders by name, each with how many documents it holds, in one page. Documents name their folder in folderId.
Permissions: documents:read · Kind: read · Cost: 1 unit
Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
tripId |
uuid | yes |
Query parameters
None.
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
object |
"list" | yes | |
data |
object[] | yes | |
data[].object |
"document_folder" | yes | |
data[].id |
uuid | yes | |
data[].tripId |
uuid | yes | |
data[].name |
string | yes | |
data[].documentCount |
integer | yes | Ready documents filed in it. ≥ 0 |
data[].createdAt |
string | yes | |
nextCursor |
string | null | yes |
Errors
Errors are problem details. Besides the refusals described above, any call like this one can return:
invalid_request— Invalid requestunauthorized— Missing or invalid API keyinsufficient_scope— Missing permissionrate_limited— Rate limit reachednot_found— Not found