Prompt
How do I support API customers when their integrations break?
Latest observation
Supporting API customers well is mostly about making failures faster to detect, easier to diagnose, and safer to recover from. The best approach is a mix of product design, documentation, observability, and support process.
1) Make errors actionable
Return errors that help customers fix the problem without guessing.
- Use clear, consistent error codes
- Include a short human-readable message
- Include a machine-readable
code - Include a request ID / correlation ID
- If possible, include field-level validation details
Example:
{
"error": {
"code": "invalid_api_key",
"message": "The provided API key is expired.",
"request_id": "req_12345"
}
}
2) Make troubleshooting easy
Give customers the tools to self-diagnose.
- API status page
- Service health incidents and timestamps
- Request logs or request history
- Webhook delivery logs with retry history
- Test/sandbox environment
- Example requests and responses
- Common failure guides in docs
3) Build support around request IDs
When something breaks, the first thing support should ask for is:
- request ID
- timestamp
- endpoint
- environment (prod/sandbox)
- customer account/tenant
- relevant payload, redacted if needed
- exact error message
- recent changes on their side
If every request has a unique ID, you can trace problems quickly.
4) Distinguish between your bug and their bug
Create a quick triage flow:
- Auth issue: bad key, expired token, missing scope
- Rate limit: too many requests, burst behavior
- Payload issue: invalid fields, wrong format
- Integration issue: webhook URL down, retries failing, client timeout
- Platform issue: outage, partial degradation, downstream dependency
- Customer-side issue: their code, network, firewall, DNS, proxies
This helps support respond consistently and fast.
5) Document failure modes, not just happy paths
Docs should explicitly cover:
- rate limits
- pagination quirks
- idempotency
- retries and backoff
- webhook signatures and verification
- token expiration/refresh
- versioning and deprecations
- known limitations
- timeout recommendations
A lot of “broken integrations” are actually expected behavior that wasn’t documented clearly.
6) Help customers recover safely
Integrations often fail because of retries, duplicates, and partial writes.
- Support idempotency keys for write operations
- Make retries safe
- Return enough context to deduplicate
- Provide replay tools for webhooks/events
- Design APIs to be backward compatible where possible
7) Communicate proactively
Don’t wait for tickets if you can detect an issue.
- Send incident notifications
- Publish postmortems for meaningful outages
- Announce breaking changes early
- Deprecate with long runway
- Warn customers about unusual error spikes if you see them
8) Give support and engineering good internal tools
Your team needs visibility into customer integrations.
- searchable logs by request ID, account, endpoint
- webhook delivery dashboards
- auth/token issue diagnostics
- feature flags and rollout status
- per-customer usage and error trends
9) Create a playbook for support
A good support response usually follows this order:
- Confirm impact and urgency
- Collect request IDs and timestamps
- Check status page / internal logs
- Identify error class
- Suggest a workaround if available
- Escalate with full context if needed
- Follow up with root cause and prevention steps
10) Measure support quality
Track:
- time to first response
- time to resolution
- % issues solved by docs/self-serve
- top recurring integration failures
- % incidents caused by breaking changes
- customer-reported vs system-detected issues
This tells you where to improve the API itself, not just the support process.
A practical rule of thumb
If a customer says “the integration broke,” your support team should be able to answer these within minutes:
- What broke?
- Since when?
- Is it widespread or isolated?
- Is it their code, their config, or your service?
- What should they do right now?
- How do they avoid it next time?
If you want, I can also give you:
- a support triage checklist,
- a customer-facing incident response template, or
- a best-practices guide for API error design.