Search Documentation

Search API endpoints, webhooks, tools, and guides

On this page6 sections
Is this helpful?
Quick Actions
Download OpenAPI.json
POST/api/roles/get-role-detailRolesPermission: roles.view

Get Role Detail

Fetches full role details including granted module/action permissions for editing.

Authentication: Requires Authorization: Bearer <ACCESS_TOKEN> (Supabase JWT, OAuth2 M2M token, or integration token).

Request

Provide the following fields in the request payload.

Body application/json
idstring (uuid)required

Target role UUID.

Responses

Select a status code to inspect schema.

OK — Role detail retrieved.application/json
successenum('true')

Success (true).

messagestring

Message.

dataobject | null

Response payload or null.

POST/api/roles/get-role-detail
curl -X POST "https://api.invoger.com/api/roles/get-role-detail" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{ "id": "r1a2b3c4-d5e6-7f8a-9b0c-1d2e3f4a5b6c" }'
Interactive playground

Response

application/json
{
  "success": true,
  "message": "Success",
  "data": {
    "id": "r1a2b3c4-d5e6-7f8a-9b0c-1d2e3f4a5b6c",
    "name": "Cashier",
    "permissions": [
      {
        "module": "invoice",
        "action": "create"
      },
      {
        "module": "invoice",
        "action": "view"
      }
    ]
  }
}