---
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`

Submits the email code requested during X account connection.

## 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 requires new credentials or account verification. Cooldowns include `retryAfterMs` and `Retry-After`. Codes are `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`.

## Changes

- **2026-08-19** `73cd0a1d989c` — 144 warning
  - added the new `closed` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `429`
  - added the new `closed` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #2: StructuredError]/code` response property for the response status `429`
  - added the new `closed` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `400`
  - added the new `closed` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `401`
  - …140 more
- **2026-08-12** `d5855df0e349` — 48 warning
  - added the new `coverage_cursor_gone` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `429`
  - added the new `coverage_cursor_gone` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #2: StructuredError]/code` response property for the response status `429`
  - added the new `coverage_cursor_gone` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `400`
  - added the new `coverage_cursor_gone` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `401`
  - …44 more

[Change history](https://skmtc.dev/xquik-dev/apis/xquik-api-3/changes/x/account-connection-challenges/:id/submit/post.md)

---

[API](https://skmtc.dev/xquik-dev/apis/xquik-api-3.md) · [All operations](https://skmtc.dev/xquik-dev/apis/xquik-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xquik-dev/xquik-api-3/revisions/3e010a962d32/schema)
