SnozeDevelopers
API referenceZero

Apply a Zero mutation batch

Runs a Zero protocol mutation batch through the server-side mutators, each mutation inside its own transaction, and returns the protocol response; `schema` and `appID` identify the client's Zero app and are required. Called by zero-cache rather than by integrations: the request must carry the Zero service key and a Clerk session with a synced profile.

POST
/v1/zero/mutate
AuthorizationBearer <token>

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

In: header

Query Parameters

schema*string
appID*string

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/mutate?schema=string&appID=string"
null