API Reference

Get inquiry documents

Retrieve short-lived document URLs for APPROVED or NEEDS_REVIEW inquiries.

Request

GET/api/v1/customer/inquiries/{inquiryId}/documents

Returns short-lived document URLs for an inquiry in APPROVED or NEEDS_REVIEW.

Headers and path

NameTypeRequiredDescription
X-Api-KeyheaderRequiredTenant-scoped key with a zk_live_ prefix and 32-character Base64URL secret.
X-Correlation-IdheaderOptionalOptional trace identifier. Zippy generates a UUID when omitted.
inquiryIduuidRequiredCanonical hyphenated UUID for an inquiry in APPROVED or NEEDS_REVIEW.

Validation and access

  • inquiryId must be a canonical hyphenated UUID; UUID version is not restricted.
  • The inquiry must belong to the API key's tenant.
  • Status must be APPROVED or NEEDS_REVIEW. Every other status, including COMPLETED, FAILED, and DECLINED, is rejected with INQUIRY_NOT_APPROVED.
  • Generated document URLs remain valid for five minutes.

Response

200 response

json
{
  "inquiryId": "96b1f81d-87cd-4a71-8bc4-e2718bcd6097",
  "status": "NEEDS_REVIEW",
  "urlExpiresAt": "2026-07-18T09:05:00.000Z",
  "documents": [
    {
      "type": "passport",
      "supportedPageTypes": ["frontPage"],
      "frontPage": "https://storage.example.com/kyc/passport.jpg?sv=...&sig=..."
    },
    {
      "type": "selfie",
      "frontPage": "https://storage.example.com/kyc/selfie.jpg?sv=...&sig=..."
    },
    {
      "type": "signature",
      "frontPage": "https://storage.example.com/kyc/signature.jpg?sv=...&sig=..."
    }
  ]
}

Response fields

NameTypeDescription
inquiryIduuidInquiry identifier.
statusAPPROVED | NEEDS_REVIEWInquiry status at retrieval time.
urlExpiresAtdate-timeExpiry shared by the returned temporary URLs.
documentsarrayNewest successful artifact for each eligible verification capability.
documents[].typeenumpassport, national_id, driving_license, selfie, or signature.
supportedPageTypesstring[]Available page names for document types that support pages.
frontPageURLTemporary URL for the front or primary artifact.
backPageURLTemporary URL for the back image; omitted when unavailable.

Document types

NameTypeDescription
passportdocumentsupportedPageTypes: ["frontPage"]
national_iddocumentsupportedPageTypes: ["frontPage", "backPage"]
driving_licensedocumentsupportedPageTypes: ["frontPage", "backPage"]
selfieimageNo supportedPageTypes field.
signatureimageNo supportedPageTypes field.

Types without a successful scanned artifact are omitted. The documents array can therefore be empty even for an eligible inquiry when no artifact URL can be generated.

Errors

NameTypeDescription
400Bad RequestinquiryId is not a canonical UUID.
401UnauthorizedMissing, invalid, expired, or revoked API key.
403ForbiddenDocuments are not available for this status (code: INQUIRY_NOT_APPROVED).
404Not FoundInquiry does not exist or is outside the key's tenant.
429Too Many RequestsRate limit exceeded. Retry after the Retry-After duration.