Skip to content

List the times staff entered this team

GET
/api/team/staff-access/
curl --request GET \
--url http://localhost:8000/api/team/staff-access/ \
--header 'Authorization: Bearer <token>'

Every entry of a staff member (a platform admin) into the active team, newest first: who, when and the reason they gave, which the switch requires (#2749). Staff never become members, so they are not on the roster; this is where their visits show. Paginated with the standard { results, count, next, previous } envelope (limit / offset, default 50, max 200).

Auth: the team’s owner (staff can read it too). A member gets 403.

limit
integer

Number of results to return per page.

offset
integer

The initial index from which to return the results.

Media typeapplication/json
object
count
required
integer
next
string format: uri
nullable
previous
string format: uri
nullable
results
required
Array<object>

One time staff (a platform admin) entered this team (#2749): who, when and the reason they gave. The staff member’s email stays in our own record; the owner sees the name.

object
id
required

Entry UUID.

string format: uuid
staff_name
required

The staff member’s display name, or empty when the account has none (never the email).

string
reason
required

Why they entered, in their own words.

string
created_at
required

When they entered.

string format: date-time

Examples

ExampleAStaffEntry

A staff entry

{
"count": 123,
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100",
"results": [
{
"id": "6f0d1c2b-3a49-4e8f-9b1a-2c3d4e5f6a7b",
"staff_name": "Alex Morgan",
"reason": "Support ticket 4812: the coach's upload is stuck in processing.",
"created_at": "2026-11-02T09:14:00Z"
}
]
}
Media typeapplication/json
object
detail
required

Human-readable message, or a stable machine code for the cases a client branches on. The standard envelope for 400 (validation — a field-keyed object may appear instead), 401 (missing / invalid credentials), 403 (authenticated but not permitted), and 404 (absent — cross-team records are collapsed to 404 so the API never leaks the existence of another team’s data).

string

Example generated

{
"detail": "example"
}
Media typeapplication/json
object
detail
required

Human-readable message, or a stable machine code for the cases a client branches on. The standard envelope for 400 (validation — a field-keyed object may appear instead), 401 (missing / invalid credentials), 403 (authenticated but not permitted), and 404 (absent — cross-team records are collapsed to 404 so the API never leaks the existence of another team’s data).

string

Example generated

{
"detail": "example"
}