What a waiting grant could be for
const url = 'https://api.sloose.com/auth/zoho/connect/options';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"nonce":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.sloose.com/auth/zoho/connect/options \ --header 'Content-Type: application/json' \ --data '{ "nonce": "example" }'The organisations Zoho answered for, when two of its hosts did and the person has to say which they chose on Zoho’s screen — for the app’s page that asks (/connect/choose). nonce is the one the connect callback handed that page; it is read here and not spent, and the answer goes to POST /auth/zoho/connect/choose.
You never call this directly.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Examplegenerated
{ "nonce": "example"}Responses
Section titled “Responses”What Zoho reported, per host, or that the organisation has to be named.
object
object
What that host’s own GET /org said the organisation is (type), or null where it said none of these (#2113). A button is named by it, never by the host alone: a sandbox answers on the standard host too.
host: two of Zoho’s hosts answered, and options are what each reported. organisation: Zoho did not say which organisation the grant is for — its hosts answered for the person’s default organisation instead — so the page asks for the CRM’s address (address on the choose route), and options is empty.
With organisation: what a CRM address looks like in the grant’s own data centre, for the page to show beside the field.
Example
{ "options": [ { "host": "standard", "environment": "production" } ], "ask": "host"}The request — its body or its query — did not match the schema. issues carries the Zod issue list.
The error envelope every non-2xx answer uses.
object
Human-readable explanation.
Machine-readable reason. Absent on a few legacy 400s.
Examplegenerated
{ "error": "example", "code": "example"}No choice waits under that nonce: it expired, or was made (code: CHOICE_GONE).
The error envelope every non-2xx answer uses.
object
Human-readable explanation.
Machine-readable reason. Absent on a few legacy 400s.
Examplegenerated
{ "error": "example", "code": "example"}The restore switch is on (code: MAINTENANCE): every route but /health and /robots.txt is refused before anything is read, except the operator’s own POST /staff/people/{id}/delete with the ADMIN_TOKEN. Sloose is down for maintenance. Please try again in a few minutes.
object
Example
{ "code": "MAINTENANCE"}Headers
Section titled “Headers”Seconds until asking again is worth it (300 while the switch is on).