| name | clickup-security-basics |
| description | Secure ClickUp API tokens, implement least-privilege access, and audit usage.
Use when securing API keys, rotating tokens, configuring per-environment
credentials, or auditing ClickUp API access patterns.
Trigger: "clickup security", "clickup secrets", "secure clickup token",
"clickup API key rotation", "clickup access audit".
|
| allowed-tools | Read, Write, Grep |
| version | 1.6.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","productivity","clickup"] |
| compatibility | Designed for Claude Code |
ClickUp Security Basics
Overview
Secure ClickUp API credentials and access patterns. ClickUp personal tokens never expire, making rotation discipline critical. OAuth tokens also do not expire but can be revoked.
Token Types and Risk
| Token Type | Prefix | Expires | Scope | Risk Level |
|---|
| Personal API Token | pk_ | Never | Full user access | High -- treat like password |
| OAuth Access Token | Varies | Never | Per-authorized workspace | Medium -- per-user |
| OAuth Client Secret | N/A | Never | App-level | Critical -- server-side only |
Secure Storage
CLICKUP_API_TOKEN=pk_12345678_ABCDEFGHIJKLMNOPQRSTUVWXYZ
.env
.env.local
.env.*.local
*.pem
if git diff --cached --diff-filter=ACM | grep -qE "pk_[a-zA-Z0-9_]{30,}"; then
echo "ERROR: ClickUp API token detected in staged files!"
echo "Remove the token and use environment variables instead."
exit 1
fi
Token Rotation Procedure
export CLICKUP_API_TOKEN="pk_NEW_TOKEN_HERE"
curl -sf https://api.clickup.com/api/v2/user \
-H "Authorization: $CLICKUP_API_TOKEN" | jq
gh secret CLICKUP_API_TOKEN --body