Gravv
/Docs
Search docs or ask a question⌘K
DocsAgent
ChangelogTry sandbox
KYC List KYC documents

List KYC documents

Lists the documents stored for a customer, with their details and which sides have an image. Use a document's `id` to download its image.

GEThttps://api.gravv.xyz/v1/customers/{customer_id}/kyc/documentsTry it
Api-Key

Lists the documents stored for a customer, with their details and which sides have an image. Use a document's id to download its image.

The response includes each document number in plain text. Treat it as personal data. A customer with no documents gets a 404, not an empty list.

Path parameters

NameDescription
customer_id:stringRequired
UUID of the customer

Response

Returns 200 OK. Stored documents

NameDescription
data:objectRequired
Show 3 child attributesobject
error:nullRequired

Errors

StatusMeaning
200Stored documents
400Invalid customer ID
404Customer not found, or no documents stored
500The documents could not be read
Was this page helpful? Yes No
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl --request GET \
--url 'https://api.gravv.xyz/v1/customers/42ad0adb-e134-4345-b4be-98e5021b0da8/kyc/documents' \
--header 'Api-Key: <api-key>'
Responseapplication/json
200400404500OK
{
"data": {
"customer_id": "42ad0adb-e134-4345-b4be-98e5021b0da8",
"documents": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"IDType": "PASSPORT",
"IDSubType": "FRONT_SIDE",
"IDNumber": "A12345678",
"IssuingCountry": "NGA",
"IssuedDate": "2020-01-01",
"ExpiryDate": "2030-01-01",
"has_front_image": true,
"has_back_image": false,
"OriginalFilename": "passport_front.jpg"
}
],
"count": 1
},
"error": null
}