List Company Documents
On this page
GraphQL endpoint: /company
Lists the calling company's documents, most-recent first, cursor-paginated. Supports filtering by status (defaults to accepted), folder, file name search, and tags. Pass paginationInfo.nextCursor back as cursor for the next page.
Query
query ($search: String, $limit: Int, $cursor: String) {
companyDocuments(search: $search, limit: $limit, cursor: $cursor) {
paginationInfo {
limit
nextCursor
}
records {
id
fileName
}
}
}
Variables
{}
Response
{
"data": {
"companyDocuments": {
"paginationInfo": {
"limit": 20,
"nextCursor": null
},
"records": [
{
"fileName": "document-1.pdf",
"id": "00000000-0000-4000-8000-000000000001"
},
{
"fileName": "document-2.pdf",
"id": "00000000-0000-4000-8000-000000000002"
},
{
"fileName": "document-3.pdf",
"id": "00000000-0000-4000-8000-000000000003"
}
]
}
}
}