> ## Documentation Index
> Fetch the complete documentation index at: https://docs.voyantcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Confirm Email Verification

> Validate the code delivered by the email verification challenge.

## Method

`POST` `/v1/verify/email/confirm`

## Body Parameters

<ParamField name="email" type="string" required>Email address that received the verification code.</ParamField>
<ParamField name="code" type="string" required>Verification code (4–10 characters).</ParamField>

## Headers

<ParamField header="Authorization" type="string">Bearer token (e.g. <code>Authorization: Bearer YOUR\_API\_KEY</code>)</ParamField>
<ParamField header="content-type" type="string">`application/json`</ParamField>

## Request Example

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST https://api.voyantcloud.com/v1/verify/email/confirm \
    -H "Authorization: Bearer $VOYANT_API_KEY" \
    -H "content-type: application/json" \
    -d '{ "email": "ana@example.com", "code": "583912" }'
  ```

  ```javascript Node.js theme={null}
  await fetch("https://api.voyantcloud.com/v1/verify/email/confirm", {
    method: "POST",
    headers: {
      Authorization: `Bearer ${process.env.VOYANT_API_KEY}`,
      "content-type": "application/json",
    },
    body: JSON.stringify({ email: "ana@example.com", code: "583912" }),
  })
  ```

  ```python Python theme={null}
  import os, requests

  payload = {"email": "ana@example.com", "code": "583912"}
  resp = requests.post(
    "https://api.voyantcloud.com/v1/verify/email/confirm",
    headers={
      "Authorization": f"Bearer {os.environ['VOYANT_API_KEY']}",
      "content-type": "application/json",
    },
    json=payload,
  )
  result = resp.json()
  ```
</RequestExample>

## Response

<ResponseExample>
  ```json 200 OK theme={null}
  { "ok": true }
  ```
</ResponseExample>

<Tip>Pair this endpoint with <code>/v1/verify/email/start</code>. Implement code persistence and expiry logic in your email challenge workflow before relying on it for customer onboarding.</Tip>
