Role List
This API is used to get a list of roles
get
Authorizations
AuthorizationstringRequired
Type 'Bearer ' followed by your JWT token. Example: "Bearer eyJhbGciOi..."
Query parameters
pagestringOptional
Page
limitstringOptional
Limit
searchstringOptional
Search
sortBy[]string[]Optional
Order By
sortDesc[]string[]Optional
Order Type
Responses
200
Successful Response
application/json
codeintegerOptionalExample:
200messagestringOptionalExample:
Successget/core/user/organization/role
GET /core/user/organization/role HTTP/1.1
Host: ai.cloudeka.id/
Authorization: YOUR_API_KEY
Accept: */*
200
Successful Response
{
"code": 200,
"data": {
"organization_roles": [
{
"created_at": "text",
"deleted_at": "text",
"description": "text",
"id": 1,
"is_default": true,
"name": "text",
"organization_id": "text",
"privilages": [
{
"disable": true,
"editor": true,
"name": "text",
"viewer": true
}
],
"updated_at": "text"
}
],
"pagination": {
"count": 1,
"page": 1,
"totalpage": 1
}
},
"message": "Success"
}Last updated