{
  "info": {
    "name": "Axis Unified Inbox API — Roles & Permissions",
    "description": "# Axis Unified Inbox API\n\nRoles & Permissions — 5 endpoints, generated from the Laravel route table on Tue, 04 Aug 2026 12:47:23 GMT.\n\n## Getting started\n\n1. Set the `baseUrl` collection variable if you are not using the default.\n2. Run **Authentication → `POST /user/login`** with your email and password.\n   A test script stores the returned JWT into `{{access_token}}` automatically.\n3. Every other request inherits that bearer token — just hit Send.\n\nRequests using an API key instead read `{{api_key}}` or `{{engage_key}}`; set those\nvariables if you need them.\n\n## Variables\n\n| Variable | Purpose |\n| --- | --- |\n| `baseUrl` | API host, e.g. `https://api.axis.im` |\n| `access_token` | JWT bearer token (auto-filled by the login request) |\n| `api_key` | Value for the `X-API-KEY` header |\n| `engage_key` | Value for the `X-Axis-Admin-API-Key` header |",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_exporter_id": "axis-api-docs"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{access_token}}",
        "type": "string"
      }
    ]
  },
  "item": [
    {
      "name": "GET /roles",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/roles",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "roles"
          ]
        },
        "description": "**Authentication:** Optional JWT\n**Required permissions:** `viewAny` on `Spatie.Role`\n**Handler:** `Spatie\\RolesController@index`\n**Route name:** `roles.index`"
      },
      "response": []
    },
    {
      "name": "POST /roles",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/roles",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "roles"
          ]
        },
        "description": "**Authentication:** Optional JWT\n**Required permissions:** `create` on `Spatie.Role`\n**Handler:** `Spatie\\RolesController@store`\n**Route name:** `roles.store`\n\n> This endpoint accepts a body, but no `FormRequest` class backs it — validation happens\n> inline in the controller, so the fields could not be derived automatically. An empty JSON\n> body is provided as a starting point.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      },
      "response": []
    },
    {
      "name": "DELETE /roles/{role}",
      "request": {
        "method": "DELETE",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/roles/:role",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "roles",
            ":role"
          ],
          "variable": [
            {
              "key": "role",
              "value": "",
              "description": "role identifier"
            }
          ]
        },
        "description": "**Authentication:** Optional JWT\n**Required permissions:** `delete` on `role`\n**Handler:** `Spatie\\RolesController@destroy`\n**Route name:** `roles.destroy`"
      },
      "response": []
    },
    {
      "name": "GET /roles/{role}",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/roles/:role",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "roles",
            ":role"
          ],
          "variable": [
            {
              "key": "role",
              "value": "",
              "description": "role identifier"
            }
          ]
        },
        "description": "**Authentication:** Optional JWT\n**Required permissions:** `view` on `role`\n**Handler:** `Spatie\\RolesController@show`\n**Route name:** `roles.show`"
      },
      "response": []
    },
    {
      "name": "PUT /roles/{role}",
      "request": {
        "method": "PUT",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/roles/:role",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "roles",
            ":role"
          ],
          "variable": [
            {
              "key": "role",
              "value": "",
              "description": "role identifier"
            }
          ]
        },
        "description": "**Authentication:** Optional JWT\n**Required permissions:** `update` on `role`\n**Handler:** `Spatie\\RolesController@update`\n**Route name:** `roles.update`\n\n> This endpoint accepts a body, but no `FormRequest` class backs it — validation happens\n> inline in the controller, so the fields could not be derived automatically. An empty JSON\n> body is provided as a starting point.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      },
      "response": []
    }
  ],
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.axis.im",
      "type": "string"
    },
    {
      "key": "access_token",
      "value": "",
      "type": "string"
    },
    {
      "key": "api_key",
      "value": "",
      "type": "string"
    },
    {
      "key": "engage_key",
      "value": "",
      "type": "string"
    }
  ]
}