# Create an administrator

`POST https://api.cademi.com.br/api/v3/administrators`

Operation ID: `administrators.create` · API v3

Creates an administrator in the current account.

By default, the new administrator receives an access email. Set `send_credentials` to `false` to skip it.

You can assign granular permissions and product access in the same request with `permissions` and `product_ids`, which also requires the `administrators.manage_permissions` permission. When either field is supplied, the administrator receives only the permissions listed in `permissions` instead of the role's default permissions. If any part of the request is rejected, no administrator is created.

The API cannot create administrators with the `root` or `master_admin` role, and creating an administrator with the `admin` role requires the `administrators.manage_permissions` permission. Every permission granted in `permissions` must be part of the selected role's default permissions. Requests that exceed these limits return `delegation_limit_exceeded`.

Required permissions: `administrators.create`.

## Request body

Content type: `application/json`, required.

| Field | Type | Required | Description |
|---|---|---|---|
| `email` | string (email) | yes |  |
| `name` | string | yes |  |
| `permissions` | object | no |  |
| `product_ids` | array of string | no |  |
| `role` | string | yes |  |
| `send_credentials` | boolean | no |  |

## Responses

### 201

Returns the newly created administrator.

Body: `data`: Administrator.

Fields of Administrator:

| Field | Type | Required | Description |
|---|---|---|---|
| `created_at` | string (date-time) | yes |  |
| `deleted` | boolean | yes |  |
| `email` | string (email) | yes |  |
| `id` | string | yes |  |
| `last_login_at` | string or null (date-time) | yes |  |
| `name` | string | yes |  |
| `object` | string, one of `administrator` | yes |  |
| `product_ids` | array of string | yes |  |
| `revision` | string | yes |  |
| `role` | string, one of `root`, `admin`, `product_admin`, `master_admin`, `support`, `designer` | yes |  |
| `status` | string, one of `active`, `inactive` | yes |  |
| `two_factor_enabled` | boolean | yes |  |
| `updated_at` | string (date-time) | yes |  |

### 401

The credential is missing, malformed, expired, or revoked.

Body: Error.

### 403

The current credentials do not have the permission required by this operation.

Body: Error.

### 409

An administrator with this email address already exists in the account.

Body: Error.

### 422

The request body or query parameters failed validation.

Body: ValidationFailed.

Full schema: https://cademi.dev/openapi/v3.json
