External service error (502)
A third-party service the operation depends on failed or didn't answer.
Status: 502 Bad Gateway · type: https://api.sparkle.ai/errors/bad-gateway
When it happens
The operation depends on a service outside the API, and that service failed or didn't answer in time.
How to fix it
Try again after a few seconds, with growing intervals between attempts; the failure is usually short-lived. On POST and PUT, send the same Idempotency-Key again. If it persists, contact support with the response's request_id.
Example
{
"type": "https://api.sparkle.ai/errors/bad-gateway",
"title": "External Service Error",
"status": 502,
"detail": "upstream service error",
"instance": "/public/v1/webhooks",
"code": "bad_gateway.service_unavailable",
"request_id": "req_abc123",
"timestamp": "2026-02-15T12:00:00Z",
"documentation_url": "https://docs.sparkle.ai/docs/api/errors/bad-gateway"
}