curl --request GET \
--url https://api.example.com/v1/deals/{id}/documents{
"data": {
"documents": [
{
"id": "<string>",
"name": "<string>",
"mime_type": "<string>",
"size_bytes": 123,
"folder": "<string>",
"tags": [
{}
],
"role": "<string>",
"linked_at": "<string>",
"created_at": "<string>"
}
]
},
"meta": {}
}Return every document linked to the specified deal
curl --request GET \
--url https://api.example.com/v1/deals/{id}/documents{
"data": {
"documents": [
{
"id": "<string>",
"name": "<string>",
"mime_type": "<string>",
"size_bytes": 123,
"folder": "<string>",
"tags": [
{}
],
"role": "<string>",
"linked_at": "<string>",
"created_at": "<string>"
}
]
},
"meta": {}
}Authorization: Bearer wbk_your_api_key_here
Show properties
page, per_page, total.X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, and X-Request-ID.
curl "https://data.leadlex.com/functions/v1/api-gateway/v1/deals/deal_01HY1/documents" \
-H "Authorization: Bearer wbk_your_api_key_here"
{
"data": {
"documents": [
{
"id": "doc_02HY2",
"name": "Acme-SPA-draft-v3.pdf",
"mime_type": "application/pdf",
"size_bytes": 512400,
"folder": "/clients/acme/spa",
"tags": ["spa", "draft"],
"role": "draft",
"linked_at": "2026-04-16T13:00:00Z",
"created_at": "2026-04-16T13:00:00Z"
}
]
},
"meta": { "page": 1, "per_page": 25, "total": 3 }
}
| Status | Code | Description |
|---|---|---|
| 401 | invalid_key | Invalid or expired API key |
| 403 | insufficient_permissions | Missing read:documents permission |
| 404 | not_found | Deal not found |
| 429 | rate_limited | Rate limit exceeded |