---
title: "Register user email"
method: POST
path: "/api/accounts/register-email/"
tags: ["accounts"]
---

# Register user email

`POST /api/accounts/register-email/`

## Request

- Base URL: `https://docs.blindinsight.io` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.blindinsight.io/api/accounts/register-email/`
- Auth: one of:
  - API key in cookie `sessionid`
  - HTTP basic
  - HTTP bearer
- TypeScript: <https://skmtc.dev/blindinsight/apis/blind-insight-rest-api/docs/api/accounts/register-email/post.ts> (a function with typed inputs; its response is checked against the schema)

Register a new email address for the currently authenticated user. This is
useful if the user wants to change email addresses associated with
their account.

The new email must be verified before it is associated with the account.

The response will be a detail message indicating if the email was registered.

**On the command line:**

```bash
blind accounts register-email --data '{"email": "demo-example@example.com"}'
```

## Request body

- DefaultRegisterEmail: Default serializer used for e-mail registration (e-mail change).
  - `email` string, email, required

## Response `200`

- RegisteredEmail
  - `detail` string

## Other responses

- `400`

---

[API](https://skmtc.dev/blindinsight/apis/blind-insight-rest-api.md) - [All operations](https://skmtc.dev/blindinsight/apis/blind-insight-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/blindinsight/apis/blind-insight-rest-api/revisions/0ac902401cea?raw)
