Skip to content

Who is staff

GET
/staff/people
curl --request GET \
--url https://api.sloose.com/staff/people \
--header 'Authorization: Bearer <token>'

Backoffice route: a staff session, or ADMIN_TOKEN. Everyone whose account carries the staff role.

The staff.

Media typeapplication/json
object
people
required
Array<object>
object
id
required
string
email
required
string
name
required
string
createdAt
required
string
Examplegenerated
{
"people": [
{
"id": "example",
"email": "example",
"name": "example",
"createdAt": "example"
}
]
}

A bearer that is neither the token nor a live session (code: AUTH_REQUIRED).

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

A customer’s session, an API token, or no bearer at all — not staff, and not the ADMIN_TOKEN (code: ADMIN_REQUIRED).

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