intercom-common-errors
Diagnose and fix Intercom API errors by HTTP status code and error type. Use when encountering Intercom errors, debugging failed API requests, or troubleshooting integration issues. Trigger with phrases like "intercom error", "fix intercom", "intercom not working", "debug intercom", "intercom 401", "intercom 429".
Best use case
intercom-common-errors is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Diagnose and fix Intercom API errors by HTTP status code and error type. Use when encountering Intercom errors, debugging failed API requests, or troubleshooting integration issues. Trigger with phrases like "intercom error", "fix intercom", "intercom not working", "debug intercom", "intercom 401", "intercom 429".
Teams using intercom-common-errors should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/intercom-common-errors/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How intercom-common-errors Compares
| Feature / Agent | intercom-common-errors | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Diagnose and fix Intercom API errors by HTTP status code and error type. Use when encountering Intercom errors, debugging failed API requests, or troubleshooting integration issues. Trigger with phrases like "intercom error", "fix intercom", "intercom not working", "debug intercom", "intercom 401", "intercom 429".
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
ChatGPT vs Claude for Agent Skills
Compare ChatGPT and Claude for AI agent skills across coding, writing, research, and reusable workflow execution.
SKILL.md Source
# Intercom Common Errors
## Overview
Quick reference for Intercom API errors by HTTP status code, with real error response shapes and proven solutions.
## Intercom Error Response Shape
All Intercom errors return this structure:
```json
{
"type": "error.list",
"request_id": "req_abc123",
"errors": [
{
"code": "unauthorized",
"message": "Access Token Invalid"
}
]
}
```
## Error Reference
### 401 Unauthorized
```json
{
"type": "error.list",
"errors": [{ "code": "unauthorized", "message": "Access Token Invalid" }]
}
```
**Causes:**
- Access token is expired, revoked, or malformed
- Using a test token against production (or vice versa)
- Token was regenerated in Developer Hub but not updated in app
**Fix:**
```bash
# Verify token works
curl -s https://api.intercom.io/me \
-H "Authorization: Bearer $INTERCOM_ACCESS_TOKEN" \
-H "Accept: application/json" | jq '.type'
# Should return "admin"
# If invalid, regenerate at:
# app.intercom.com > Settings > Developer Hub > Your App > Authentication
```
---
### 403 Forbidden
```json
{
"type": "error.list",
"errors": [{ "code": "forbidden", "message": "You do not have permission to access this resource" }]
}
```
**Causes:**
- OAuth app missing required scope
- Trying to access a resource in another workspace
- Admin permissions insufficient
**Fix:** Add the required OAuth scope in Developer Hub > OAuth Scopes.
---
### 404 Not Found
```json
{
"type": "error.list",
"errors": [{ "code": "not_found", "message": "User Not Found" }]
}
```
**Causes:**
- Contact, conversation, or article ID is invalid
- Resource was deleted
- Using `user_id` where `contact_id` is expected (or vice versa)
**Fix:**
```typescript
// Always check existence before operating
try {
const contact = await client.contacts.find({ contactId: id });
} catch (err) {
if (err instanceof IntercomError && err.statusCode === 404) {
console.log(`Contact ${id} not found, skipping`);
}
}
```
---
### 409 Conflict
```json
{
"type": "error.list",
"errors": [{ "code": "conflict", "message": "A contact matching those details already exists with id=abc123" }]
}
```
**Causes:**
- Creating a contact with a duplicate `external_id` or `email`
- Race condition in concurrent contact creation
**Fix:**
```typescript
// Search first, create if not found
async function findOrCreateContact(email: string, externalId: string) {
const existing = await client.contacts.search({
query: { field: "email", operator: "=", value: email },
});
if (existing.data.length > 0) {
return existing.data[0];
}
return client.contacts.create({
role: "user",
email,
externalId,
});
}
```
---
### 422 Unprocessable Entity
```json
{
"type": "error.list",
"errors": [{ "code": "parameter_invalid", "message": "email is not a valid email address" }]
}
```
**Causes:**
- Invalid field value (bad email format, wrong type)
- Missing required field
- Custom attribute name exceeds 190 characters
**Fix:** Validate inputs before sending. Check the `errors` array for specifics.
---
### 429 Rate Limit Exceeded
```json
{
"type": "error.list",
"errors": [{ "code": "rate_limit_exceeded", "message": "Rate limit exceeded" }]
}
```
**Response headers:**
```
X-RateLimit-Limit: 10000
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 1711100060
```
**Limits:** 10,000 req/min per app, 25,000 req/min per workspace.
**Fix:**
```typescript
import { IntercomError } from "intercom-client";
async function withBackoff<T>(fn: () => Promise<T>, maxRetries = 3): Promise<T> {
for (let attempt = 0; attempt <= maxRetries; attempt++) {
try {
return await fn();
} catch (err) {
if (err instanceof IntercomError && err.statusCode === 429) {
if (attempt === maxRetries) throw err;
const resetAt = err.headers?.["x-ratelimit-reset"];
const waitMs = resetAt
? (parseInt(resetAt) * 1000) - Date.now() + 1000
: 1000 * Math.pow(2, attempt);
console.log(`Rate limited, waiting ${waitMs}ms`);
await new Promise(r => setTimeout(r, Math.max(waitMs, 1000)));
} else {
throw err;
}
}
}
throw new Error("Unreachable");
}
```
---
### 500/502/503 Server Errors
**Causes:** Intercom-side issue, not your fault.
**Fix:**
```bash
# 1. Check Intercom status
curl -s https://status.intercom.com/api/v2/summary.json | jq '.status'
# 2. Retry with backoff (same pattern as 429)
# 3. If persistent, contact Intercom support with request_id
```
## Quick Diagnostic Script
```bash
#!/bin/bash
TOKEN="${INTERCOM_ACCESS_TOKEN}"
echo "=== Intercom API Diagnostics ==="
# Test auth
echo -n "Auth: "
STATUS=$(curl -s -o /dev/null -w "%{http_code}" \
-H "Authorization: Bearer $TOKEN" \
https://api.intercom.io/me)
echo "$STATUS $([ "$STATUS" = "200" ] && echo "OK" || echo "FAIL")"
# Check rate limits
echo -n "Rate limit remaining: "
curl -s -D - -o /dev/null \
-H "Authorization: Bearer $TOKEN" \
https://api.intercom.io/me 2>/dev/null | grep -i x-ratelimit-remaining
# Intercom status
echo -n "Intercom status: "
curl -s https://status.intercom.com/api/v2/status.json | jq -r '.status.description'
```
## Error Handling
| Error Code | HTTP | Retryable | Action |
|------------|------|-----------|--------|
| `unauthorized` | 401 | No | Regenerate token |
| `forbidden` | 403 | No | Add OAuth scope |
| `not_found` | 404 | No | Verify resource ID |
| `conflict` | 409 | No | Search before create |
| `parameter_invalid` | 422 | No | Fix input data |
| `rate_limit_exceeded` | 429 | Yes | Backoff and retry |
| `server_error` | 500+ | Yes | Retry, check status page |
## Resources
- [Error Codes](https://developers.intercom.com/docs/references/rest-api/errors/error-codes)
- [HTTP Responses](https://developers.intercom.com/docs/references/rest-api/errors/http-responses)
- [Rate Limiting](https://developers.intercom.com/docs/references/rest-api/errors/rate-limiting)
- [Intercom Status](https://status.intercom.com)
## Next Steps
For comprehensive debugging, see `intercom-debug-bundle`.Related Skills
workhuman-common-errors
Workhuman common errors for employee recognition and rewards API. Use when integrating Workhuman Social Recognition, or building recognition workflows with HRIS systems. Trigger: "workhuman common errors".
wispr-common-errors
Wispr Flow common errors for voice-to-text API integration. Use when integrating Wispr Flow dictation, WebSocket streaming, or building voice-powered applications. Trigger: "wispr common errors".
windsurf-common-errors
Diagnose and fix common Windsurf IDE and Cascade errors. Use when Cascade stops working, Supercomplete fails, indexing hangs, or encountering Windsurf-specific issues. Trigger with phrases like "windsurf error", "fix windsurf", "windsurf not working", "cascade broken", "windsurf slow".
webflow-common-errors
Diagnose and fix Webflow Data API v2 errors — 400, 401, 403, 404, 409, 429, 500. Use when encountering Webflow API errors, debugging failed requests, or troubleshooting integration issues. Trigger with phrases like "webflow error", "fix webflow", "webflow not working", "debug webflow", "webflow 429", "webflow 401".
vercel-common-errors
Diagnose and fix common Vercel deployment and function errors. Use when encountering Vercel errors, debugging failed deployments, or troubleshooting serverless function issues. Trigger with phrases like "vercel error", "fix vercel", "vercel not working", "debug vercel", "vercel 500", "vercel build failed".
veeva-common-errors
Veeva Vault common errors for REST API and clinical operations. Use when working with Veeva Vault document management and CRM. Trigger: "veeva common errors".
vastai-common-errors
Diagnose and fix Vast.ai common errors and exceptions. Use when encountering Vast.ai errors, debugging failed instances, or troubleshooting GPU rental issues. Trigger with phrases like "vastai error", "fix vastai", "vastai not working", "debug vastai", "vastai instance failed".
twinmind-common-errors
Diagnose and fix TwinMind common errors and exceptions. Use when encountering transcription errors, debugging failed requests, or troubleshooting integration issues. Trigger with phrases like "twinmind error", "fix twinmind", "twinmind not working", "debug twinmind", "transcription failed".
together-common-errors
Together AI common errors for inference, fine-tuning, and model deployment. Use when working with Together AI's OpenAI-compatible API. Trigger: "together common errors".
techsmith-common-errors
TechSmith common errors for Snagit COM API and Camtasia automation. Use when working with TechSmith screen capture and video editing automation. Trigger: "techsmith common errors".
supabase-common-errors
Diagnose and fix Supabase errors across PostgREST, PostgreSQL, Auth, Storage, and Realtime. Use when encountering error codes like PGRST301, 42501, 23505, or auth failures. Use when debugging failed queries, RLS policy violations, or HTTP 4xx/5xx responses. Trigger with "supabase error", "fix supabase", "PGRST", "supabase 403", "RLS not working", "supabase auth error", "unique constraint", "foreign key violation".
stackblitz-common-errors
Fix WebContainer and StackBlitz errors: COOP/COEP, SharedArrayBuffer, boot failures. Use when WebContainers fail to boot, embeds don't load, or processes crash inside WebContainers. Trigger: "stackblitz error", "webcontainer error", "SharedArrayBuffer not defined".