List the stored documents the key can read, newest first.
| Field | Type | Description |
|---|---|---|
type | "EMPLOYMENT_CONTRACT" | "LEASE_AGREEMENT" | "PURCHASE_AGREEMENT" | "NDA" | "TERMS_OF_SERVICE" | "EMAIL" | … | Only documents of this kind |
status | "PENDING" | "PROCESSING" | "ANALYZED" | "FAILED" | Only documents in this processing state |
query | string | Only documents whose name contains this text |
includeArchived | boolean | Also list archived documents (left out by default) |
limit | integer | |
cursor | string | Pass the nextCursor of the previous page to get the next one |
curl "https://attorly.ai/api/v1/documents?limit=20" \
-H "Authorization: Bearer $ATTORLY_API_KEY"