Documents on a lead
Everything attached, and everything refused with the reason it was refused.
AuthorizationBearer <token>
An access token from POST /oauth/token. Valid for one hour. Preferred, because a leaked request log then exposes an hour rather than a permanent credential.
In: header
Path Parameters
id*string
The lead id returned by POST /leads.
Format
uuidResponse Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
Shell
curl -X GET "https://sandbox.capvant.com/leads/497f6eca-6276-4993-bfeb-53cbbbba6f08/documents"JSON
{ "documents": [ { "id": "string", "document_type": "bank_statements", "filename": "string", "byte_size": 0, "state": "accepted", "reason": "string", "received_at": "string" } ], "accepted_types": [ {} ]}