Retrieve team roles
GET {{url}}/api/1.0/roles
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
created_before | string | Retrieves team members with created_at < created_before. The default value is the current date and time at which you are calling the endpoint. |
Provided in ISO 8601 format. |
| limit
| number | | The maximum number of team members returned per page.
To get to the next page, make a new request and use the created_at date of the last team member returned in the previous response as the value for created_before. |
RESPONSES
status: OK
[{"id":"owner","name":"Owner","created_at":"2023-09-07T09:21:12.962303Z","updated_at":"2023-09-07T09:21:12.962303Z"},{"id":"member","name":"Member","created_at":"2023-09-07T09:21:12.962303Z","updated_at":"2023-09-07T09:21:12.962303Z"},{"id":"viewer","name":"Viewer","created_at":"2023-09-07T09:21:12.962303Z","updated_at":"2023-09-07T09:21:12.962303Z"},{"id":"a40b6121-350b-4d2e-9ba1-9dab61a18d46","name":"Example custom role","created_at":"2023-09-07T09:21:12.963143Z","updated_at":"2023-09-07T09:21:12.963143Z"}]