Skip to main content
GET
/
api
/
v1
/
roles
List Roles
curl --request GET \
  --url https://api.member.dev/api/v1/roles \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "attributes": {
        "name": "<string>",
        "slug": "<string>",
        "is_system": false,
        "team_id": "<string>"
      },
      "id": "<string>",
      "type": "<string>",
      "links": {
        "self": "<string>"
      },
      "meta": {},
      "relationships": {}
    }
  ],
  "included": [
    "<unknown>"
  ],
  "links": {
    "next": "<string>",
    "self": "<string>"
  },
  "meta": {}
}

Authorizations

Authorization
string
header
required

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

Query Parameters

page[after]
string | null

Cursor — ID of the last item on the previous page.

page[size]
integer
default:20
Required range: 1 <= x <= 100

Response

Successful Response

data
JsonApiResource[RoleAttributes] · object[]
required
included
any[] | null
meta
Meta · object