Skip to main content
GET
/
admins
List Admins & Moderators or Get Details
curl --request GET \
  --url https://schoolmaker.co/api/v1/admins \
  --header 'Authorization: Bearer <token>'
{
  "users": [
    {
      "id": "<string>",
      "email": "<string>",
      "first_name": "<string>",
      "last_name": "<string>",
      "role": "<string>",
      "is_active": true,
      "is_banned": true,
      "time_zone": "<string>",
      "last_seen_at": "2023-11-07T05:31:56Z",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "is_school_owner": true
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

id
string

If provided, returns the admin/moderator with this ID instead of a list.

email
string

If provided (and id not given), returns the admin/moderator with this email instead of a list.

Response

200 - application/json

List of admins & moderators (when no id/email) or a single admin/moderator (when id/email provided).

  • Option 1
  • Option 2
users
object[]