Skip to main content

Response Format

All TechLadder API endpoints return a consistent JSON response envelope.

Success Response

{
"status_code": 200,
"message": "Descriptive success message",
"error": null,
"data": {
// Response payload — varies per endpoint
}
}
FieldTypeDescription
status_codeintegerHTTP status code
messagestringHuman-readable description of the result
errornullAlways null on success
dataobjectThe response payload (endpoint-specific)

Error Response

{
"status_code": 400,
"message": "Invalid request body",
"error": {
"code": "VALIDATION_ERROR",
"details": [
"phone_number: Must be at least 10 digits",
"agent_name: This field is required"
]
},
"data": null
}
FieldTypeDescription
status_codeintegerHTTP status code
messagestringHuman-readable error summary
error.codestringMachine-readable error code
error.detailsstring[]List of specific error messages
datanullAlways null on error

Pagination

List endpoints return paginated results:

{
"status_code": 200,
"message": "Call batches fetched successfully",
"error": null,
"data": {
"items": [...],
"total": 142,
"page": 1,
"limit": 50,
"has_more": true
}
}

Pagination Parameters

ParameterTypeDefaultDescription
pageinteger1Page number (1-indexed)
limitinteger50Items per page (max: 100)

Timestamps

All timestamps are in ISO 8601 format in UTC:

2026-05-14T10:30:00Z

IDs

Resources use prefixed IDs for easy identification:

ResourcePrefixExample
Schedule/Batchsched_sched_7bac6f2a
Agentagt-agt-57949b14
Callcall_call_a1b2c3d4
Webhook Endpointwh_wh_e5f6g7h8
Webhook Eventevt_evt_i9j0k1l2