# Send an access email

`POST https://api.cademi.com.br/api/v3/users/{user_id}/access-emails`

Operation ID: `users.access_emails.create` · API v3

Generates a new password for the user and emails the access credentials. The user's previous password stops working.

An access email can be sent to the same user at most once every 10 minutes. Earlier attempts return `email_recently_sent`.

Required permissions: `users.send_access`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `user_id` | path | string | yes |  |

## Responses

### 202

The access email was queued for delivery.

Body: `data`: object.

Fields of object:

| Field | Type | Required | Description |
|---|---|---|---|
| `object` | string, one of `access_email` | no |  |
| `status` | string, one of `queued` | no |  |

### 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.

### 404

The user was not found or is not accessible with the current credentials.

Body: Error.

### 409

An access email was already sent to this user in the last 10 minutes.

Body: Error.

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