Skip to main content
Networks fail and workflows retry. request_id makes that safe: the same id with the same body always returns the same approval.

request_id vs correlation_id

How retries work

  • Same request_id, same body → 200 with the existing approval and "idempotent": true. No second approval, and it doesn’t count toward your plan again. status is the existing approval’s, so it may already be answered.
  • Same request_id, different body → 409 idempotency_conflict with existing_approval_id. The comparison covers question, context_markdown, notification_summary, options, the merged timeout, and callback (URL and headers).
  • Same request_id and body, different correlation_id → still the existing approval. correlation_id is a label, not part of the question, so it isn’t compared; the approval keeps the correlation_id it was created with.
  • No request_id → every call creates a new approval. A blind retry after a timeout can ask twice.
If you retry without a request_id, a create that succeeded but whose response you never got becomes a duplicate. Always send one when anything might retry.

Choosing a request_id

Make it deterministic from what you’re asking about, so a retry computes the same id:
  • deploy-${commit_sha}-production
  • refund-${order_id}
  • ${workflow_run_id}-${step}-${attempt_item}
Don’t reuse an id for a genuinely new question. If the same action needs approving again later (say, a re-deploy), add something that changes, such as a timestamp or run number. Integrations do this for you:
  • n8n defaults to {execution id}-{node}-r{run}-i{item}, unique per approval and stable across n8n retries of the same node run, and sets correlation_id to the execution id.
  • CLI --request-id; MCP and Zapier have a request_id field.

Retrying errors

Reading a result (GET …/result) is always safe to repeat.