Getting StartedCommon Patterns

Common Patterns

Both API surfaces share the same response envelope and core vocabulary.

Response envelope

Successful responses:

Success
{
  "success": true,
  "requestId": "req_123",
  "traceId": "trace_456",
  "timestamp": "2026-04-07T10:00:00.000Z",
  "data": {}
}

Error responses:

Error
{
  "success": false,
  "requestId": "req_123",
  "traceId": "trace_456",
  "timestamp": "2026-04-07T10:00:00.000Z",
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Request payload is invalid",
    "details": []
  }
}

Envelope fields

FieldDescription
requestIdRequest correlation ID for support or logs
traceIdDistributed tracing identifier when present
timestampServer timestamp for the response
dataSuccessful payload
error.codeMachine-readable failure code
error.detailsStructured validation or protocol details