SnozeDevelopers
API referenceAuth

Resolve the Zero sync identity for the current session

Returns the caller's Clerk user id as `protocolUserId` alongside the internal Snoze user UUID, which the Zero sync client needs to address rows it owns. Requires a Clerk session with a synced Snoze profile; the internal user record is resolved on demand, so a session whose profile cannot be resolved fails.

GET
/v1/auth/zero-identity
AuthorizationBearer <token>

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

In: header

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/auth/zero-identity"
{  "data": {    "protocolUserId": "string",    "internalUserId": "2852c4fe-0d69-43cc-ae1e-e4c7738bf00c"  }}