Skip to Content
CallMitraDocs
Errors

idempotency_request_in_progress

A request with this Idempotency-Key is still being processed.

HTTP statusTypeCode
409idempotency_erroridempotency_request_in_progress

What it means

An earlier request with the same key has not finished yet. Wait a moment and retry with the same key to receive its result.

How to handle it

Send a new Idempotency-Key for a different request body, or wait for the first request with this key to finish and retry.

Example response

{
  "detail": "A request with this Idempotency-Key is still being processed.",
  "error": {
    "type": "idempotency_error",
    "code": "idempotency_request_in_progress",
    "message": "A request with this Idempotency-Key is still being processed.",
    "param": null,
    "docUrl": "https://docs.callmitra.ai/errors/idempotency_request_in_progress",
    "requestId": "req_3f9c2a7d1b8e4c6a9f0e2d4b6a8c0e1f"
  }
}

Branch on error.code; it never changes once published. The message text can change. See Errors for the envelope.

Returned by

  • POST /api/v1/leads/dnc — Add numbers to do-not-call
  • POST /api/v1/tickets/{ticket_id}/activities — Add a note to a ticket
  • POST /api/v1/leads/bulk — Act on many leads
  • POST /api/v1/agents/ — Create an agent
  • POST /api/v1/calls/ — Place a call
  • POST /api/v1/campaigns/ — Create an empty campaign
  • POST /api/v1/campaigns/create-with-leads — Create a campaign with its leads
  • POST /api/v1/leads/ — Create a lead
  • POST /api/v1/leads/{lead_id}/notes — Add a note
  • POST /api/v1/tickets/ — Create a ticket
  • POST /api/v1/webhook-endpoints/ — Create a webhook endpoint
  • POST /api/v1/agents/import — Import an agent from another platform
  • POST /api/v1/whatsapp/messages — Send a WhatsApp message

On this page