Skip to main content
Every response from the Struct API is wrapped in a standard envelope. This structure is consistent across all endpoints, regardless of the data being returned.

Envelope Structure

The pagination field is optional and only appears on list endpoints.

Fields

success

A boolean indicating whether the request was processed successfully.

data

The response payload. Its type depends on the endpoint; it can be a single object or an array.

message

A human-readable status message. Typically null on success. On errors, this contains a description of what went wrong.

info

Metadata about the request execution. Present on most successful responses.

pagination

Included on list endpoints that support cursor-based pagination.

Pagination

List endpoints return paginated results. To iterate through all pages, pass the pagination_key from the previous response as a query parameter in your next request. Some endpoints also accept an offset parameter for deep-linkable server-rendered pages. See Pagination for the full walkthrough and when to use each strategy.

Error Responses

When a request fails, the envelope still applies. The success field will be false and message will describe the error.
Last modified on May 31, 2026