---
title: "Submit X account email verification code"
method: POST
path: "/x/account-connection-challenges/{id}/submit"
tags: ["X Accounts"]
---

# Submit X account email verification code

`POST /x/account-connection-challenges/{id}/submit`

## Path parameters

- `id` string, required

## Request body

- object
  - `email_code` string, required — Code sent to the account email.

## Response `201`

X account connected

- SanitizedXAccount — Sanitized X account summary returned by connect and reauth.
  - `id` string, required
  - `xUserId` string, required
  - `xUsername` string, required
  - `status` 'active', required
  - `health` 'healthy' | 'locked' | 'needsReauth' | 'recovering' | 'suspended' | 'temporaryIssue', required
  - `createdAt` string, date-time, required

## Other responses

- `202` — Email verification code required
- `400` — Invalid input
- `401` — Unauthenticated
- `404` — Not found
- `409` — Verification challenge is no longer active
- `410` — Verification code expired
- `422` — Login could not continue because credentials or account verification require user action. When a cooldown applies, the response includes `retryAfterMs` and a `Retry-After` header in seconds. Returns error code `login_failed` or `passkey_required`.
- `429` — Xquik tier rate limit exceeded. The response includes a `Retry-After` header with the number of seconds to wait before retrying.
- `503` — The X connection service is temporarily unavailable. Retry after a short delay. Returns error code `service_unavailable`.

---

[API](https://skmtc.net/xquik-dev/apis/xquik-api.md) · [All operations](https://skmtc.net/xquik-dev/apis/xquik-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/xquik-dev/xquik-api/versions/d0ee2927ac71/schema)
