All error codes

idempotency_in_progress

HTTP 409Retryable

A request with the same `Idempotency-Key` is already in flight. Retry shortly.

How to resolve

  • A request with the same `Idempotency-Key` is already being processed.
  • Wait a few seconds and retry — the in-progress lock expires in 300 seconds.

Example response

JSON

{
  "object": "error",
  "code": "idempotency_in_progress",
  "message": "A request with the same `Idempotency-Key` is already in flight. Retry shortly.",
  "request_id": "req_example123",
  "docs_url": "https://docs.statxt.com/api/errors/idempotency_in_progress"
}

SDK handling

TypeScript

import { StatxtClient, StatxtApiError } from "@statxt/sdk"

const client = new StatxtClient({ apiKey: process.env.STATXT_API_KEY! })

try {
  await client.messages.send({ ... })
} catch (err) {
  if (err instanceof StatxtApiError && err.code === "idempotency_in_progress") {
    // A request with the same `Idempotency-Key` is already in flight. Retry shortly.
    console.error(err.requestId) // include in support tickets
  }
}

Public reference: /docs/errors/idempotency_in_progress