Versioning and migration
Target API v2, move migrated legacy keys safely, and avoid dependencies on retired surfaces.
Last updatedUse the /v2 URL prefix for every new Clan Labs integration:
https://v3.api.clanlabs.co/v2The configured hostname identifies the API service. /v2 identifies the public API contract. Keep both exactly as shown.
Compatibility expectations
Additive response fields can appear as the product evolves. Clients should read only fields they need, ignore unknown fields, and validate required values defensively. A new operation or optional property should not require a client migration.
There is no verified public sunset date for the legacy /users and /v1 compatibility routes. Their continued presence is not a reason to use them for new work. No formal future deprecation-notice window could be confirmed in the implementation, so this site does not invent one.
Migrate a legacy integration
-
Inventory the legacy method, path, headers, inputs, and fields your integration consumes.
-
Find the equivalent generated
/v2endpoint in this reference. -
In Settings → API Keys, rotate the migrated legacy key. Copy the new one-time
cl_live_secret. -
Replace the legacy
tokenandclanheaders with:Authorization: Bearer YOUR_API_KEY X-Clan-Id: COMMUNITY_ID -
Update code for the
datasuccess envelope and structurederrorobject. -
Add only the documented permission scopes.
-
Test reads in a non-production workflow, then test bounded writes against known targets.
-
Deploy, monitor error codes, and remove the old secret from every store.
A legacy key sent to /v2 returns 403 legacy_key_unsupported. Current keys are designed for API v2 and its audit model.
Prepare for future change
- Keep the base URL and key in deployment configuration.
- Generate or validate types from the maintained OpenAPI document.
- Pin behavioural tests to the fields your integration uses.
- Run schema drift checks when updating the source API repository.
- Do not parse Swagger HTML or depend on undocumented legacy responses.
For the documentation transition, read Swagger migration.