curl --request GET \
--url https://staging.api.us.aptlydone.com/auth/v1/user/roles \
--header 'Authorization: Bearer <token>'
{
"statusCode": 200,
"timestamp": "2025-06-25T06:16:48.664Z",
"message": "Success",
"data": [
{
"id": "340314db-0571-4a85-9296-8ccea2d5ff90",
"tenantId": "a2f84c63-2056-46c8-a975-5fc22efa5060",
"tenantRoleId": "a1729a44-15d6-4976-b3a5-c4dceff45835",
"roleName": "heartache harmful",
"autoProvisioned": true,
"createdOn": "2025-06-25T04:31:42.785Z",
"deletedOn": "2025-05-05T01:45:20.777Z",
"updatedOn": "2025-06-25T02:53:18.799Z"
}
]
}
curl --request GET \
--url https://staging.api.us.aptlydone.com/auth/v1/user/roles \
--header 'Authorization: Bearer <token>'
{
"statusCode": 200,
"timestamp": "2025-06-25T06:16:48.664Z",
"message": "Success",
"data": [
{
"id": "340314db-0571-4a85-9296-8ccea2d5ff90",
"tenantId": "a2f84c63-2056-46c8-a975-5fc22efa5060",
"tenantRoleId": "a1729a44-15d6-4976-b3a5-c4dceff45835",
"roleName": "heartache harmful",
"autoProvisioned": true,
"createdOn": "2025-06-25T04:31:42.785Z",
"deletedOn": "2025-05-05T01:45:20.777Z",
"updatedOn": "2025-06-25T02:53:18.799Z"
}
]
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
User roles retrieved successfully
The response is of type object
.