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.
Authorization
apiKey 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" }}{ "_tag": "ApiNotFound", "error": "not_found", "message": "That item does not exist, or this key cannot see it.", "status": 404}{ "_tag": "ApiNotFound", "error": "not_found", "message": "That item does not exist, or this key cannot see it.", "status": 404}Read the authenticated actor for the current session
Returns the resolved actor for the current request, including the identity the rest of the API authorizes against. Requires a Clerk session with a synced Snoze profile; API keys are rejected.
Read the workspace subscription and entitlements
Returns the workspace's current subscription record together with the entitlements derived from it. Requires a Clerk session and the `billing:read` workspace permission; API keys cannot call it.