Conflict (409)
The operation contradicts the resource's current state or a value that must be unique.
Status: 409 Conflict · type: https://api.sparkle.ai/errors/conflict
When it happens
- A resource with the same unique value already exists.
- The resource is in a state that doesn't allow the operation.
- The same
Idempotency-Keywas sent again while the first request with it was still running (conflict.idempotency_key).
How to fix it
Read the resource again and decide from its current state: use the one that already exists instead of creating another, or change its state before retrying. The same request without changes gets the same error. For conflict.idempotency_key, wait for the first request to finish and send it again with the same key: you get the first request's response.
Example
{
"type": "https://api.sparkle.ai/errors/conflict",
"title": "Resource Conflict",
"status": 409,
"detail": "a request with this idempotency key is already in progress",
"instance": "/public/v1/webhooks",
"code": "conflict.idempotency_key",
"request_id": "req_abc123",
"timestamp": "2026-02-15T12:00:00Z",
"documentation_url": "https://docs.sparkle.ai/docs/api/errors/conflict"
}