Skip to main content
Network retries happen (a request times out, a function re-runs), and a blind retry of a create makes a second agent, or spends a second chat credit. An Idempotency-Key makes a retry replay the first response instead.

Use it

Send any unique string on any POST under /v1; every one honours it (creates, publish and unpublish, knowledge adds, topic merges, asset uploads, the JSON chat turn):
Retry with the SAME key and the SAME body, and you get the first response back, unchanged, with:
No second agent is created, and no second credit is spent.

The rules

A key is scoped to your API key and kept for 24 hours. It is honoured in the JSON chat mode; a streamed (SSE) turn cannot be replayed, so the key is ignored there.