Your requests to join
const url = 'https://api.sloose.com/auth/access-requests?zohoOrgId=7000000001';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.sloose.com/auth/access-requests?zohoOrgId=7000000001' \ --header 'Authorization: Bearer <token>'What the person asked of the organisations holding this CRM, newest first — open, or approved while the invitation waits — and whether they have joined since. A request is to an organisation, so one made from another CRM that organisation also holds is here too, once this session’s Zoho sign-in has proved THIS CRM (the frame route’s test); before that, only the requests made from this CRM. A CRM tab polls this while somebody waits in it, and asks the frame route again once joined is true.
Without zohoOrgId, every request the person made, from any CRM — the page for a person in no organisation lists them (#674). Each names an organisation the person was told of when they asked.
Session only, and limited (429 RATE_LIMITED).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”The CRM the tab is in: its zgid. Left out, every request the person made, from any CRM.
Example
7000000001The CRM the tab is in: its zgid. Left out, every request the person made, from any CRM.
Responses
Section titled “Responses”Your requests.
object
object
The organisation asked, as somebody outside it is shown its name: “a team” when the name could be read as Sloose, as an invitation does.
open until an administrator approves it, or it lapses (7 days); approved once the invitation is on its way.
Whether the person is a member of the organisation now — the invitation accepted — which is what a tab waiting on the request is waiting for.
Example
{ "requests": [ { "status": "open" } ]}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 bearer, or one that no longer resolves: a session that is unknown or expired (code: AUTH_REQUIRED), or an API token that was revoked or expired (TOKEN_REVOKED, TOKEN_EXPIRED), whose organisation is gone (ORG_NOT_FOUND) or whose member or user row is (MEMBERSHIP_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"}An API token was used (code: SESSION_REQUIRED), or a staff member’s view of an organisation asked with no zohoOrgId (code: STAFF_VIEW): every request the person made is theirs, not the organisation’s the view was opened on.
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"}Too many requests (code: RATE_LIMITED, with retryAfterSeconds).
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).