Response Structure

Response Structure

What the JSON response includes and how to read it.

Essentials

Response Structure

Las rutas suelen responder con un JSON que incluye ok, status, datos y metadatos útiles para depuración.

Typical response

{ "ok": true, "status": 200, "data": [], "meta": { "latency_ms": 42 } }

Fields

ok
Indicates success or failure.
status
The HTTP status code.
data
The payload returned by the endpoint.
meta
Useful metadata such as latency.

Example payload anatomy

ok
Boolean flag for success.
status
Raw HTTP status code for the response.
data
Array or object with the returned resource.
meta
Timing, paging, or tracing data.

Related links