API v2 overview
Build server-side integrations against the supported Clan Labs API v2 surface.
Last updatedAPI v2 is the public integration surface for Clan Labs. It exposes 58 documented operations for members, ranks, medals, qualifications, blacklists, warnings, suspensions, events, applications, and asynchronous Roblox operations.
For form management, consent-based submissions, and response review, see Applications through the API.
Base URL: https://api.clanlabs.co
Every /v2 request requires a current API key and the community’s Clan ID. API access is a paid-plan feature; API-driven rank management specifically requires Pro.
Make your first request
Create a read-only key in Settings → API Keys, then call the member list from a trusted server:
curl --request GET \
--url 'https://api.clanlabs.co/v2/members?limit=1' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'X-Clan-Id: COMMUNITY_ID'For a Roblox experience, put YOUR_API_KEY in the Creator Hub secrets store as CLAN_LABS_API_KEY, enable HTTP requests, and run the request from a server Script.
Keep integration-owned API keys on a trusted server, and never hard-code them in browser JavaScript, a Roblox LocalScript, or experience source code. The documentation tester is an interactive exception: you enter your own key for a direct browser request. Web integrations should use a server-side secret manager. Roblox integrations should use the Creator Hub secrets store through HttpService:GetSecret().
Endpoint groups
Choose Test endpoint on any endpoint page to open the live tester in place of the request and response examples. Enter your API key and community Clan ID, fill in the route's inputs, and send a live request. Close tester restores the examples and keeps your edited inputs. The tester sends requests directly from your browser to the API and shows its status, response body, browser-accessible headers, and elapsed time. Credentials stay in memory while you browse the API reference; reloading or choosing Clear credentials clears them.
The tester uses your real community. Write requests can change data and are never retried automatically. Fetching one member can also create their profile and run AutoRank, which can change their Roblox rank. After a cancelled or timed-out request, check the current state before retrying a change.
Read profiles and manage progression, ranks, medals, qualifications, and suspensions.
Read guide ConfigurationRead community ranks, medals, and qualification definitions.
Read guide ModerationManage user or group blacklists and member warning records.
Read guide EventsCreate, announce, finish, cancel, and inspect events.
Read guideContract and conventions
- Successful JSON responses wrap the result in
dataand can includemetafor pagination. - Errors use
error.code,error.message, and optionalerror.details. - Input is validated against the documented path, query, and JSON schemas.
- Each endpoint declares its required permission and community feature. Roblox operation status and cancellation use the original operation's saved permission on the same enabled API key.
- Limits are configurable. Honor
Retry-Afterand reset details when a429response supplies them. - There is no global idempotency-key contract. Asynchronous Roblox operations require one; reconcile other uncertain writes before retrying.
The endpoint pages are generated from the maintained API v2 schema. Download the exact contract at OpenAPI JSON.
Roblox player identifiers
Routes with {userId} accept a global Roblox user ID, or a Roblox username when ?by=username is present. Prefer usernames for calls originating from a Roblox experience: Roblox can present scoped user identifiers for players new to that experience, while Player.Name remains the actual username.
Continue with Authentication and API keys and scopes.