---
title: "Create Role"
method: POST
path: "/api/admin/roles"
tags: ["admin-roles"]
---

# Create Role

`POST /api/admin/roles`

## Request

- Base URL: `https://api.tintin-x.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tintin-x.com/api/admin/roles`
- Auth: HTTP bearer

Create a new role.

## Request body

- CreateRoleRequest
  - `slug` string, required
  - `label` string, required
  - `icon` string
  - `description` string, nullable
  - `is_predefined` boolean
  - `is_active` boolean
  - `display_order` integer, nullable
  - `recommended_services` string[], nullable
  - `onboarding_message` string, nullable
  - `archetype` string, nullable

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tintin-x/apis/tintin-api.md) · [All operations](https://skmtc.dev/tintin-x/apis/tintin-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tintin-x/apis/tintin-api/revisions/8839a8d0a66c?raw)
