> For the complete documentation index, see [llms.txt](https://k4k3ru.gitbook.io/k4k3ru-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://k4k3ru.gitbook.io/k4k3ru-docs/api/crm/request-sign-up-otp.md).

# Request a Sign-Up OTP by Email

Request a one-time password (OTP) to begin creating an email credential for a new K4K3RU account. The OTP is sent to the email address supplied in the request.

## Endpoint

| Property       | Value                                       |
| -------------- | ------------------------------------------- |
| URL            | `https://api.k4k3ru.com/`                   |
| HTTP method    | `POST`                                      |
| RPC method     | `AccountEmail.RequestCredentialCreationOTP` |
| Authentication | Not required                                |

## Request

### Request Body

This method uses the common [JSON-RPC request envelope](/k4k3ru-docs/api/json-rpc.md#request-envelope). Set `method` to `AccountEmail.RequestCredentialCreationOTP`.

### Params Fields

The request envelope's `params` object accepts:

| Field   | Type   | Required | Description                                  |
| ------- | ------ | -------- | -------------------------------------------- |
| `email` | string | Yes      | Email address that receives the sign-up OTP. |

### Example Request

```bash
curl --request POST 'https://api.k4k3ru.com/' \
  --header 'Content-Type: application/json' \
  --data '{
    "id": "1",
    "method": "AccountEmail.RequestCredentialCreationOTP",
    "params": {
      "email": "alex@example.com"
    }
  }'
```

## Response

### Response Body

Successful requests use the common [JSON-RPC success response envelope](/k4k3ru-docs/api/json-rpc.md#success-response-envelope). Failed requests use the common [JSON-RPC error response envelope](/k4k3ru-docs/api/json-rpc.md#error-response-envelope).

### Result Fields

| Field       | Type   | Description                                                                                   |
| ----------- | ------ | --------------------------------------------------------------------------------------------- |
| `purpose`   | string | Purpose assigned to the OTP. For this method, the value is `account.email.create_credential`. |
| `email`     | string | Email address supplied in the request.                                                        |
| `expiresAt` | string | Time at which the OTP expires, formatted as an RFC 3339 timestamp.                            |

### Errors

| Code                | When it occurs                                                                                           |
| ------------------- | -------------------------------------------------------------------------------------------------------- |
| `invalid_parameter` | The `params` object cannot be decoded into the expected request parameters.                              |
| `already_created`   | An active email credential already exists for the email address.                                         |
| `unexpected`        | The request cannot be completed because of an unexpected processing, storage, or email-delivery failure. |

### Example Success Response

```json
{
  "id": "1",
  "result": {
    "purpose": "account.email.create_credential",
    "email": "alex@example.com",
    "expiresAt": "2026-07-29T08:20:50Z"
  }
}
```

The `expiresAt` value shown above is an example. Use the value returned by the API for the actual expiration time.

### Example Error Response

```json
{
  "id": "1",
  "error": {
    "code": "already_created"
  }
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://k4k3ru.gitbook.io/k4k3ru-docs/api/crm/request-sign-up-otp.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
