Skip to content

What a waiting grant could be for

POST
/auth/zoho/connect/options
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.

Media typeapplication/json
object
nonce
required
string
>= 1 characters <= 200 characters
Examplegenerated
{
"nonce": "example"
}

What Zoho reported, per host, or that the organisation has to be named.

Media typeapplication/json
object
options
required
Array<object>
object
host
required
string
Allowed values: standard sandbox developer
companyName
required
string | null
externalId
required
string
environment
required

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.

string | null
Allowed values: production sandbox developer
ask
required

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.

string
Allowed values: host organisation
example
required

With organisation: what a CRM address looks like in the grant’s own data centre, for the page to show beside the field.

string
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.

Media typeapplication/json

The error envelope every non-2xx answer uses.

object
error
required

Human-readable explanation.

string
code

Machine-readable reason. Absent on a few legacy 400s.

string
key
additional properties
Examplegenerated
{
"error": "example",
"code": "example"
}

No choice waits under that nonce: it expired, or was made (code: CHOICE_GONE).

Media typeapplication/json

The error envelope every non-2xx answer uses.

object
error
required

Human-readable explanation.

string
code

Machine-readable reason. Absent on a few legacy 400s.

string
key
additional properties
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.

Media typeapplication/json
object
error
required
string
code
required
string
Allowed value: MAINTENANCE
Example
{
"code": "MAINTENANCE"
}
Retry-After
integer

Seconds until asking again is worth it (300 while the switch is on).

Report a problem with this page

sloose.com