SnozeDevelopers
API referenceZero

Run a Zero query request

Executes a Zero protocol query batch against the server's registered queries on behalf of the authenticated user and returns the protocol response. Called by zero-cache rather than by integrations: the request must carry the Zero service key and a Clerk session with a synced profile, and a caller without the service key is rejected before Clerk or payload decoding runs.

POST
/v1/zero/query
AuthorizationBearer <token>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*unknown

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/zero/query"
null