---
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 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-12** `d8082b3892a2` — 96 warning
  - added the new `invalid_complete_replies_request` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `429`
  - added the new `invalid_complete_replies_request` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #2: StructuredError]/code` response property for the response status `429`
  - added the new `invalid_complete_replies_request` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `400`
  - added the new `invalid_complete_replies_request` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `401`
  - …92 more
- …earlier changes not shown

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

---

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