Skip to main content
GET
https://api.stablepay.global
/
v2
/
users
/
{userId}
/
kyc
/
document
curl -X GET "https://api.stablepay.global/v2/users/{userId}/kyc/document" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "success": true,
  "data": {
    "documentId": "doc_abc123def456",
    "documentType": "passport",
    "fileName": "passport_scan.pdf",
    "fileSize": 2048576,
    "verified": false,
    "verifiedAt": null,
    "uploadedAt": "2024-01-15T10:35:00.000Z",
    "viewUrl": "https://stablepay-kyc-documents.s3.ap-south-1.amazonaws.com/..."
  }
}

Overview

Retrieve information about the user’s uploaded KYC document, including a temporary URL to view the document.

Response

success
boolean
Whether the request was successful
data
object
Document data (null if no document uploaded)
curl -X GET "https://api.stablepay.global/v2/users/{userId}/kyc/document" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "success": true,
  "data": {
    "documentId": "doc_abc123def456",
    "documentType": "passport",
    "fileName": "passport_scan.pdf",
    "fileSize": 2048576,
    "verified": false,
    "verifiedAt": null,
    "uploadedAt": "2024-01-15T10:35:00.000Z",
    "viewUrl": "https://stablepay-kyc-documents.s3.ap-south-1.amazonaws.com/..."
  }
}