---
title: "Confirm email"
method: POST
path: "/accounts/confirm-email"
tags: ["Account Management"]
---

# Confirm email

`POST /accounts/confirm-email`

Confirms a user's email address using a token or code
 - This process ensures that the person registering or using an email address actually has access to it. When a user registers a new account or adds a new email address to their profile, the system sends a confirmation email containing either a token (a long, randomly generated string) or a numerical code. This function processes the verification when the user clicks the confirmation link in the email or manually enters the provided code. It accepts either:
- a) A token parameter, which is included in the confirmation link
- b) A code parameter, which is a shorter numerical sequence that can be manually entered

## Request body

- union
  - object
    - `token` string, required — Email confirmation token
    - `code` string — Email confirmation code (alternative to token)
  - object
    - `token` string — Email confirmation token
    - `code` string, required — Email confirmation code (alternative to token)

## Response `200`

Email confirmed successfully

- object
  - `data` object, required
    - `account` string
    - `email` string, email
    - `account_id` string
    - `user_id` string

## Other responses

- `400` — Invalid token

---

[API](https://skmtc.net/quivaworks/apis/quiva-ai-gateway.md) · [All operations](https://skmtc.net/quivaworks/apis/quiva-ai-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/quivaworks/quiva-ai-gateway/revisions/771d118bd4d1/schema)
