cURL
curl --request GET \ --url https://api.hierarch.io/v1/role/query/{company_slug}/ \ --header 'token: <api-key>'
{ "loop": [ { "id": 123, "name": "<string>", "description": "<string>" } ], "current_page": "<string>", "max_page": "<string>", "start_count": "<string>", "end_count": "<string>", "max_count": "<string>" }
Retrieves roles array
API token provided to your company
Search term, blank by default
Page number, 1 by default
Data order - newest / oldest
This is your company url
OK Response
Show child attributes
Role ID
Role name
Role description
Current data page
Maximum number of pages
Starting data count
Ending data count
Maximum number of data
Was this page helpful?