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