List documents
Changed onReturns paginated response with a list of document objects.
Request
- Base URLhttps://example.rossum.app
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Number of results per page
A value used for cursor-based pagination. Obtain this value from the next or previous URLs in a paginated response. Do not construct cursor values manually.
Object ID(s) filter
ID(s) of email object(s)
ID(s) of user(s) that created the object
Created before filter.
Created after filter.
Same as created_at_before.
Same as created_at_after.
Name of the document filter
Reason why the Document got filtered out on Email ingestion.
Attachment status filter
ID of parent document filter
Result ordering.
Response
OK
Example response
{
"results": [
{
"id": 314628,
"url": "https://example.rossum.app/api/v1/documents/314628",
"s3_name": "272c2f01ae84a4e19a421cb432e490bb",
"parent": "https://example.rossum.app/api/v1/documents/203517",
"email": "https://example.rossum.app/api/v1/emails/1234",
"annotations": [
"https://example.rossum.app/api/v1/annotations/314528"
],
"mime_type": "application/pdf",
"creator": "https://example.rossum.app/api/v1/users/1",
"created_at": "2020-05-21T12:34:56.789Z",
"arrived_at": "2020-05-21T12:34:56.789Z",
"original_file_name": "invoice.pdf",
"content": "https://example.rossum.app/api/v1/documents/314628/content",
"attachment_status": "processed",
"metadata": {
"some_key": "some_value"
}
}
]
}Changes
- warning
added the new
hook_convertedenum value to the//response property for the response status - info
added the new enum value
hook_convertedto thequeryrequest parameterattachment_status
- warning