AI control
Acquire AI locks in bulk
/v1/accounts/{account_id}/ai-locks/acquireMarks each fan as currently handled by an AI in the Fansquare CRM, in a single call. Same semantics as the single-fan endpoint applied to the whole batch: without ttl_seconds the locks never expire (released only by the batch release), with ttl_seconds the request acquires and refreshes them (send it again before expiry to keep the batch active). Only fans Fansquare has already synced for this account are locked; the others are listed in unknown_fan_ids and nothing is created for them.
write:ai_lockscurl -X POST 'https://api.fansquare.so/v1/accounts/c851d9d6-b90b-4958-aed2-2fdaa2fe21a3/ai-locks/acquire' \
-H "Authorization: Bearer $API_KEY" \
-H "Fansquare-Version: Amethyste" \
-H "Content-Type: application/json" \
-d '{
"fan_ids": [
"a6df8022-e509-4575-ad28-e29c2d1d42dc"
],
"ttl_seconds": 300
}'{
"acquired": 1,
"expires_at": "2026-10-12T21:19:00.000Z",
"unknown_fan_ids": [
"1e99acd1-2439-47d6-a91d-fd86be151fc0"
]
}Parameters
Headers
Fansquare-VersionstringrequiredAPI version to pin. Accepts the mineral name or the release date of a version.
Path
account_idstringrequiredMYM account id (
account.external_idin GET /v1/creators).min length 1
Body
application/json
fan_idsarray of stringsrequiredMYM fan ids. 1 to 500 per call; duplicates are ignored.
format uuidmin items 1max items 500ttl_secondsintegerOptional lock lifetime in seconds, applied to every fan in the batch. Omit it for locks that never expire (released only by the batch release). When set, send the request again before expiry to keep the locks active.
min 30max 86400
Response
OK, application/json
acquiredintegerrequiredNumber of distinct fans locked in this call (known fans only).
expires_atstring | nullrequiredWhen the locks of the batch expire (ISO 8601), or null when they never expire.
format date-timeunknown_fan_idsarray of stringsrequiredFan ids of the batch this account has no relation with yet: not locked, nothing created. Retry them once Fansquare has synced them.
curl -X POST 'https://api.fansquare.so/v1/accounts/c851d9d6-b90b-4958-aed2-2fdaa2fe21a3/ai-locks/acquire' \
-H "Authorization: Bearer $API_KEY" \
-H "Fansquare-Version: Amethyste" \
-H "Content-Type: application/json" \
-d '{
"fan_ids": [
"a6df8022-e509-4575-ad28-e29c2d1d42dc"
],
"ttl_seconds": 300
}'{
"acquired": 1,
"expires_at": "2026-10-12T21:19:00.000Z",
"unknown_fan_ids": [
"1e99acd1-2439-47d6-a91d-fd86be151fc0"
]
}