Response Format
Understand the standard response structure returned by all Deepvue APIs, including success responses, error responses, and common fields.
Overview
All Deepvue APIs return JSON responses with a consistent structure. Understanding this format helps you parse responses reliably across all endpoints.
Success response
Every successful API response includes these standard fields:
{
"code": 200,
"timestamp": 1738040933033,
"transaction_id": "ece94d5e2749482faa10184962e9e34a",
"data": {
// Endpoint-specific response data
}
}
HTTP status code mirrored in the response body. Always 200 for successful requests.
Unix timestamp (in milliseconds) indicating when the response was generated.
Unique identifier for this API call. Use this for debugging, support requests, and audit trails.
The verification result or resource data. Structure varies by endpoint — refer to the specific API reference for field details.
Error response
Error responses return a detail field with a human-readable message:
{
"detail": "Not authenticated"
}
Human-readable error message describing what went wrong. See Error Handling for all error codes and messages.
Error responses do not include code, timestamp, or transaction_id fields. Use the HTTP status code from the response header to determine the error type.
Example responses by category
{
"code": 200,
"timestamp": 1738040933033,
"transaction_id": "ece94d5e2749482faa10184962e9e34a",
"data": {
"@entity": "pan",
"pan": "AAAPT0002F",
"full_name": "RATAN NAVAL TATA",
"status": "VALID",
"category": "Individual",
"name_information": {
"pan_name_cleaned": "Ratan Naval Tata"
}
}
}
Parsing best practices
- Always check
codefirst — Verify the responsecodeis200before accessing thedatafield. - Store
transaction_id— Log this value for every request. It's required when contacting support and useful for audit trails. - Handle missing fields gracefully — Not all fields are guaranteed in every response. Some fields may be
nullor absent depending on the data source. - Use
timestampfor ordering — When processing multiple responses, use thetimestampfield to determine the order of events. - Don't hardcode field names — The
dataobject structure varies by endpoint. Parse responses based on the specific API you're calling.
Last updated 1 day ago