/clickup-pack:clickup-common-errorsfrom clickup-pack
Diagnoses and fixes ClickUp API v2 errors by HTTP status and error code. Covers 400, 401 (OAuth), 403, 404, and 429 responses with curl-based troubleshooting.
Ships in clickup-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Reference for ClickUp API v2 errors. All errors return JSON with err (message) and optionally ECODE (error code).
{
"err": "Space not found",
"ECODE": "ITEM_015"
}
| Situation | Response | Fix |
|---|---|---|
| Missing required field | {"err": "Task name required"} | Include name in request body |
| Invalid field value | {"err": "Invalid priority"} | Priority must be 1-4 or null |
| Malformed JSON | {"err": "Unexpected token"} | Validate JSON before sending |
| Invalid custom field value | {"err": "Invalid value for field"} | Match value to field type |
| ECODE | Cause | Solution |
|---|---|---|
| OAUTH_017 | Token malformed or missing | Include Authorization: <token> header |
| OAUTH_023 | Workspace not authorized for token | User must re-authorize workspace in OAuth flow |
| OAUTH_026 | Token revoked by user | Generate new personal token or re-authenticate |
| OAUTH_027 | Workspace not authorized | Re-authorize via OAuth, ensuring workspace scope |
| OAUTH_029-045 | Various workspace auth failures | Re-run OAuth flow for the specific workspace |
# Diagnose: verify your token works
curl -s -w "\nHTTP %{http_code}\n" \
https://api.clickup.com/api/v2/user \
-H "Authorization: $CLICKUP_API_TOKEN"
| Situation | Fix |
|---|---|
| No access to space/folder/list | Verify user has access to that part of the hierarchy |
| Insufficient role permissions | Need admin role for destructive operations |
| Guest access limitation | Guests have restricted API access |
# Common causes: wrong ID, deleted resource, wrong hierarchy level
# Verify the resource exists:
curl -s https://api.clickup.com/api/v2/task/TASK_ID \
-H "Authorization: $CLICKUP_API_TOKEN" | jq '.id, .name'
Rate limits vary by plan (per token, per minute):
# Check rate limit headers on any response
curl -s -D - https://api.clickup.com/api/v2/user \
-H "Authorization: $CLICKUP_API_TOKEN" 2>&1 | grep -i ratelimit
# Headers returned:
# X-RateLimit-Limit: 100
# X-RateLimit-Remaining: 95
# X-RateLimit-Reset: 1695000060 (Unix timestamp)
Check ClickUp Status Page first.
# Quick status check
curl -s https://status.clickup.com/api/v2/summary.json | \
jq '.status.description'
#!/bin/bash
echo "=== ClickUp API Diagnostics ==="
# 1. Auth check
echo -n "Auth: "
HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" \
https://api.clickup.com/api/v2/user \
-H "Authorization: $CLICKUP_API_TOKEN")
[ "$HTTP_CODE" = "200" ] && echo "OK" || echo "FAILED ($HTTP_CODE)"
# 2. Rate limit check
echo -n "Rate limit remaining: "
curl -s -D - https://api.clickup.com/api/v2/user \
-H "Authorization: $CLICKUP_API_TOKEN" 2>&1 | \
grep "X-RateLimit-Remaining" | awk '{print $2}'
# 3. Workspace access
echo "Workspaces:"
curl -s https://api.clickup.com/api/v2/team \
-H "Authorization: $CLICKUP_API_TOKEN" | jq -r '.teams[] | " \(.id): \(.name)"'
async function handleClickUpError(response: Response): Promise<never> {
const body = await response.json().catch(() => ({ err: 'Unknown' }));
switch (response.status) {
case 401:
throw new Error(`Auth failed (${body.ECODE}): Re-check token or re-authorize`);
case 429: {
const resetAt = response.headers.get('X-RateLimit-Reset');
const waitMs = resetAt ? (parseInt(resetAt) * 1000 - Date.now()) : 60000;
throw new Error(`Rate limited. Retry after ${Math.ceil(waitMs / 1000)}s`);
}
case 404:
throw new Error(`Resource not found: ${body.err}`);
default:
throw new Error(`ClickUp API ${response.status}: ${body.err}`);
}
}
For comprehensive debugging, see clickup-debug-bundle.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
24 skills in this plugin
/clickup-ci-integrationSet up CI/CD pipelines for ClickUp API integrations with GitHub Actions,
automated testing, and task status sync.
Trigger: "clickup CI", "clickup GitHub Actions", "clickup automated tests",
"CI clickup integration", "clickup pipeline", "clickup CI/CD".
/clickup-core-workflow-aManage ClickUp tasks via API v2: create, read, update, delete tasks with
assignees, priorities, due dates, subtasks, and statuses.
Trigger: "clickup task", "create clickup task", "update task status",
"manage clickup tasks", "clickup CRUD", "clickup task management".
/clickup-core-workflow-bManage ClickUp workspaces, spaces, folders, lists, and views via API v2.
Use when creating project structures, organizing spaces and lists,
or managing the ClickUp hierarchy programmatically.
Trigger: "clickup space", "clickup folder", "clickup list", "clickup views",
"create clickup space", "organize clickup workspace", "clickup hierarchy".
/clickup-cost-tuningOptimize ClickUp API usage costs through plan selection, request reduction,
caching, and usage monitoring.
Trigger: "clickup cost", "clickup billing", "reduce clickup usage",
"clickup pricing", "clickup plan comparison", "clickup API usage".
/clickup-data-handlingHandle ClickUp data exports, PII redaction, GDPR compliance, and
data retention for ClickUp API integrations.
Trigger: "clickup data", "clickup PII", "clickup GDPR", "clickup data retention",
"clickup privacy", "clickup CCPA", "clickup data export".
/clickup-debug-bundleCollect ClickUp API diagnostic information for troubleshooting and support.
Use when encountering persistent issues, preparing support tickets,
or collecting API connectivity and rate limit diagnostics.
Trigger: "clickup debug", "clickup diagnostics", "clickup support bundle",
"collect clickup logs", "clickup health check".
npx claudepluginhub flight505/skill-forge --plugin clickup-packOther plugins' skills for the same job