---
title: "Send a verification code to a new sign-in email"
method: POST
path: "/auth/email-change"
tags: ["Auth"]
---

# Send a verification code to a new sign-in email

`POST /auth/email-change`

## Request

- Base URL: `https://app.openpo.st/api/v1`
- URL: `https://app.openpo.st/api/v1/auth/email-change`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `openpost_session`

## Request body

- BeginEmailChangeInputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `new_email` string, email, required: New sign-in email address
  - `reauth_grant` string, required: One-time grant for identity.email.change

## Response `201`

Created

- EmailChangeSummary
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `expires_at` string, date-time, required: Challenge expiration time
  - `id` string, required: Email-change challenge ID
  - `new_email` string, required: Address awaiting confirmation
  - `sent_at` string, date-time: When the latest code was sent

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `409`: Conflict
- `422`: Unprocessable Entity
- `429`: Too Many Requests
- `500`: Internal Server Error
- `503`: Service Unavailable

---

[API](https://skmtc.dev/openpo/apis/openpost-api.md) · [All operations](https://skmtc.dev/openpo/apis/openpost-api/llms.txt) · [OpenAPI document](https://skmtc.dev/openpo/apis/openpost-api/revisions/67d3964458a7?raw)
