Skip to content
Clan LabsDocs
API referenceWebsite Open dashboard
Get startedDashboardDiscord botRoblox & Open CloudTroubleshooting
Documentation
Overview
  • Introduction
  • What is Clan Labs?
  • Core concepts
  • Requirements
  • Plans and availability
  • Quick start
Getting Started
  • Create or sign in
  • Add the Discord bot
  • Start setup with /setup
  • Select a Discord server
  • Connect a Roblox community
  • Confirm ownership
  • Choose a subscription
  • Configure Open Cloud
  • Complete setup
  • Recommended next steps
Setup Guides
  • Discord bot permissions
  • Roblox community connection
  • Roblox Open Cloud
  • Verification
  • Group and rank binds
  • Community permissions
  • Experience
  • Quotas
  • Welcome messages
  • Audit-log delivery
  • Events
  • Subscriptions
  • API keys
  • Divisions
Feature Guides
  • Member management
  • Profiles
  • Linked Roblox accounts
  • Experience and quotas
  • Ranks and group binds
  • Warnings
  • Suspensions
  • Blacklists
  • Medals and qualifications
  • Events and attendance
  • Audit logs and rollback
  • Analytics
  • Community permissions
  • Discord commands and actions
  • Pending join reviews
  • Custom bot branding
  • Discord server transfers
  • Privacy and account controls
  • Subscriptions and billing
Troubleshooting
  • Troubleshooting overview
  • Discord server is missing
  • Roblox community not found
  • Ownership cannot be confirmed
  • Bot permissions are missing
  • Discord role does not update
  • Role is above the bot
  • Verification fails
  • Open Cloud errors
  • Rank change fails
  • Profile does not sync
  • Command is unavailable
  • Action is not permitted
  • Subscription access is missing
  • Temporary service problem
API referenceClan Labs websiteOpen dashboard Support
Overview
  • Introduction
  • What is Clan Labs?
  • Core concepts
  • Requirements
  • Plans and availability
  • Quick start
Getting Started
  • Create or sign in
  • Add the Discord bot
  • Start setup with /setup
  • Select a Discord server
  • Connect a Roblox community
  • Confirm ownership
  • Choose a subscription
  • Configure Open Cloud
  • Complete setup
  • Recommended next steps
Setup Guides
  • Discord bot permissions
  • Roblox community connection
  • Roblox Open Cloud
  • Verification
  • Group and rank binds
  • Community permissions
  • Experience
  • Quotas
  • Welcome messages
  • Audit-log delivery
  • Events
  • Subscriptions
  • API keys
  • Divisions
Feature Guides
  • Member management
  • Profiles
  • Linked Roblox accounts
  • Experience and quotas
  • Ranks and group binds
  • Warnings
  • Suspensions
  • Blacklists
  • Medals and qualifications
  • Events and attendance
  • Audit logs and rollback
  • Analytics
  • Community permissions
  • Discord commands and actions
  • Pending join reviews
  • Custom bot branding
  • Discord server transfers
  • Privacy and account controls
  • Subscriptions and billing
Troubleshooting
  • Troubleshooting overview
  • Discord server is missing
  • Roblox community not found
  • Ownership cannot be confirmed
  • Bot permissions are missing
  • Discord role does not update
  • Role is above the bot
  • Verification fails
  • Open Cloud errors
  • Rank change fails
  • Profile does not sync
  • Command is unavailable
  • Action is not permitted
  • Subscription access is missing
  • Temporary service problem
  1. Docs
  2. /
  3. Setup Guides
Setup Guides

Create and manage API keys

Enable API v2, create a permission-scoped Clan Labs key, store it safely, and rotate or revoke it.

Last updated 3 September 2026

What this does

A Clan Labs API key lets a server-side integration call public API v2 routes for one community. Each key has its own name, enabled state, and permission scopes.

Prerequisites

  • The community plan includes API access.
  • You meet the community’s Settings requirement.
  • A server-side secret manager is ready.
  • You know the smallest scopes the integration needs.

Setup steps

  1. Open Settings → API Keys.
  2. Turn on Enable the API for this community. This master switch controls every key.
  3. Reveal and copy the Clan ID; it is used in X-Clan-Id and is not the secret.
  4. Choose Create API Key.
  5. Enter a descriptive name of up to 64 characters, such as Production integration.
  6. Start with Read-only, or choose Member management, Full access, or a custom selection.
  7. Create the key. A community can hold up to 25.
  8. Copy the cl_live_… secret from the one-time modal and store it immediately.
  9. Acknowledge that it cannot be shown again, then close the modal.
  10. Test a read request before enabling write workflows.
ProAPI Rank Management

Granting members.ranks.write and using API rank-change endpoints requires Pro. Other assignable API v2 scopes follow their own plan feature checks.

Compare plans

Expected result

The key list shows the name, prefix, enabled state, creation date, and permission count. API v2 accepts it with Authorization: Bearer YOUR_API_KEY and X-Clan-Id: COMMUNITY_ID.

Verify that it works

Call GET /v2/members?limit=1 with a key that has members.read. Expect a 200 response containing data. Confirm the related audit record identifies the API key name, not the secret.

Common errors

  • missing_credentials — one or both authentication headers are absent.
  • invalid_api_key or another 401 — the key is malformed, unknown, or paired with the wrong Clan ID.
  • key_disabled or api_disabled — enable the key and community master switch.
  • insufficient_scope — add the exact required scope or use another key.
  • legacy_key_unsupported — rotate a migrated V2 key to issue a current cl_live_ key.
  • 403 feature or entitlement errors — the community plan, trial, or subscription state does not include the endpoint’s feature.

Security practices

  • Store keys only in server-side environment variables or a secret manager.
  • For Roblox server Script requests, store the key in the Creator Hub secrets store and read it with HttpService:GetSecret().
  • Never embed a key in client JavaScript, a Roblox LocalScript, experience source code, source control, screenshots, or support messages.
  • Use one key per integration and environment.
  • Rotate immediately after suspected exposure. The old secret stops working immediately, or within about a minute if cache invalidation cannot be reached.
  • Disable or delete unused keys; deletion cannot be undone.

Next, read API authentication and API keys and scopes.

PreviousSubscriptionsNext Divisions
On this page
  1. What this does
  2. Prerequisites
  3. Setup steps
  4. Expected result
  5. Verify that it works
  6. Common errors
  7. Security practices