Skip to content

Your requests to join

GET
/auth/access-requests
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).

zohoOrgId

The CRM the tab is in: its zgid. Left out, every request the person made, from any CRM.

string
>= 1 characters
Example
7000000001

The CRM the tab is in: its zgid. Left out, every request the person made, from any CRM.

Your requests.

Media typeapplication/json
object
requests
required
Array<object>
object
id
required
string
orgId
required
string
orgName
required

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.

string
status
required

open until an administrator approves it, or it lapses (7 days); approved once the invitation is on its way.

string
Allowed values: open approved
requestedAt
required
string
expiresAt
required
string
joined
required

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.

boolean
Example
{
"requests": [
{
"status": "open"
}
]
}

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

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"
}

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.

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"
}

Too many requests (code: RATE_LIMITED, with retryAfterSeconds).

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