Authenticate API v2 requests
Send an API key and Clan ID securely and understand authentication failures.
Last updatedEvery public API v2 endpoint requires two headers:
Authorization: Bearer YOUR_API_KEY
X-Clan-Id: COMMUNITY_IDYOUR_API_KEY is the one-time cl_live_… secret. COMMUNITY_ID is the Clan ID shown separately on the API settings page. A key is bound to one community; pairing it with another Clan ID does not grant cross-community access.
Roblox Creator OAuth authorizes Clan Labs to perform community operations separately from these headers. Continue sending your cl_live_ key and X-Clan-Id; do not send a Roblox OAuth token to the public API. If a Roblox-backed operation requires reconnection, the Super Owner must restore it in Settings → Roblox Cloud.
Request requirements
For authentication to pass, all of these must be true:
- The URL uses
https://api.clanlabs.co/v2/.... - Both headers are present and correctly formatted.
- The API master switch is enabled for the community.
- The individual key exists and is enabled.
- The key has the endpoint’s required scope.
- The community has an active subscription with API access and the endpoint’s feature.