Skip to main content

List Documents

The identity documents on a customer's verification record, whether each upload was confirmed, and the size limits that apply, so you can check a file before presigning it.

Takes a workspace-scoped API key or a dashboard session. An account-scoped key is refused with 401.

New in v3: v2 has no equivalent.

Authorization:

Every request is signed with your API key: a short-lived JWT, signed with your private key, sent in one header on /v3/* and /api/v2/* alike.

Headers:
Authorization: APIKey {SIGNED_JWT}

How to build and sign the JWT: Authentication.

Endpoint

GET

/v3/customers/{customer_id}/kyc/documents

Path parameters​

ParameterTypeDescription
customer_idstring (cst_…)Required. The customer.

Response Sample​

{
"documents": [
{
"document_id": "doc_01k8x4nbk0ec68vk3954qmbskr",
"slot": "face",
"state": "ready",
"size_bytes": 412311,
"content_type": "image/jpeg",
"file_name": "selfie.jpg"
},
{
"document_id": "doc_01k8x4q660fmpa2fzyf5wwq7m6",
"slot": "document-front",
"state": "pending",
"size_bytes": 524288,
"content_type": "image/png",
"file_name": "passport-front.png"
}
],
"remaining_bytes": 6403433,
"max_document_bytes": 3145728
}

Answers 204 No Content, with no body, when the customer has no record yet.

Response Schema​

FieldTypeDescription
documentsarrayThe record's documents, one per slot at most.
documents[].document_idstring (doc_…)The document.
documents[].slotstringface, document-front or document-back.
documents[].statestringpending: presigned, upload not confirmed. ready: completed.
documents[].size_bytesintegerThe size declared at presign while pending; the real size once ready.
documents[].content_typestringapplication/pdf, image/jpeg or image/png.
documents[].file_namestringThe uploader's file name. Absent when none was given, and on documents uploaded through v2.
remaining_bytesintegerWhat is left of the record's budget. Pending documents count against it.
max_document_bytesintegerThe per-file limit.

Errors​

StatusmessageWhen
400failed to parse requestcustomer_id is not a cst_… TypeID.
401unauthorizedMissing or invalid signature, or the caller is an account-scoped key or a customer session.
403forbiddenA dashboard member whose role does not allow this. A workspace-scoped key always may.

Support and Resources​

If you need assistance or have any questions, our support team is here to help. You can contact our support team at support@blockwyre.com.

Stay Updated​

Stay up-to-date with the latest news, updates, and features from BlockWyre by following us on social media:

We are excited to have you on board and look forward to seeing how you leverage BlockWyre's powerful tools to enhance your financial operations. Happy integrating!