Complete your Discord account link
Completes an authorized linking session using its state and the original browser-held verifier, returning the linked Discord account. Requires the same signed-in Snoze user that started the unexpired session. Rejects mismatched browser proof and accounts already linked to another identity. Repeating a completed request can only return its original link.
apiKeyAuthorizationBearer <snoze_sk_…>Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.
application/json- body
state*stringverifier*stringSuccess
application/json- response
data*curl -X POST 'https://api.snoze.dev/v1/me/discord/link/complete' \ -H 'Content-Type: application/json' \ -d '{ "state": "string", "verifier": "string"}'{ "data": { "discordUserId": "string", "username": "string" }}Start linking your Discord account
Creates a linking session valid for 15 minutes and returns its state and Discord authorization URL. Send a lowercase hexadecimal SHA-256 challenge for a random browser-held verifier, retain the verifier in that browser, and open the returned URL. After Discord authorization returns to Snoze, complete the link with the same signed-in user, state, and verifier.
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, and a caller without the service key is rejected before Clerk or payload decoding runs.