---
title: "Confirm and apply a sign-in email change"
method: POST
path: "/auth/email-change/{id}/confirm"
tags: ["Auth"]
---

# Confirm and apply a sign-in email change

`POST /auth/email-change/{id}/confirm`

## Request

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

## Path parameters

- `id` string, required: Email-change challenge ID

## Request body

- ConfirmEmailChangeInputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `code` string, required: Six-digit code sent to the new address

## Response `200`

OK

- ConfirmEmailChangeOutputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `email` string, required: Confirmed sign-in email address
  - `revoked_sessions` integer, required: Other sessions revoked after the identity change

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `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)
