Capvant

Documents on a lead

get
https://sandbox.capvant.com/partner/v1/leads/{id}/documents
GET
/leads/{id}/documents

Everything attached, and everything refused with the reason it was refused.

Authorization

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.

Formatuuid

Response 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": [    {}  ]}