---
title: "Submit the email verification code (free, SIWX)"
method: POST
path: "/api/x-accounts/confirm"
tags: ["Accounts"]
---

# Submit the email verification code (free, SIWX)

`POST /api/x-accounts/confirm`

## Request

- Base URL: `https://twitr.sh`
- URL: `https://twitr.sh/api/x-accounts/confirm`
- Auth: API key in header `SIGN-IN-WITH-X`

## Request body

- object
  - `challenge_id` string, required: From the connect response.
  - `code` string, required: The code emailed to the account.

## Response `200`

{handle, status: 'linked'} — the handle is now usable for x_write.

## Other responses

- `402`: Identity Required.

---

[API](https://skmtc.dev/twitr/apis/twitr-sh.md) · [All operations](https://skmtc.dev/twitr/apis/twitr-sh/llms.txt) · [OpenAPI document](https://skmtc.dev/twitr/apis/twitr-sh/revisions/f6390fcee344?raw)
