Deactivate a license device
Secret and trusted tokens require licenses update permission; limited tokens are refused. Core verifies license ownership and mode. Supports generated/imported issued keys, including expired and revoked keys; setup restriction does not block maintenance. Frees at most one slot without changing purchased seats, expiry, money or refunds. Requires a trimmed reason, expected generation and one stable Idempotency-Key. The body is limited to 16 KiB; duplicate JSON fields are refused. Core saves an unknown audit intent before Apollo. Success is returned only after completion and durable audit confirmation. A lost reply or failed final read remains unknown. Preserve the exact reviewed body and key for explicit replay after review; no background replay occurs. Same-key/body replay returns stored completion or resumes the same operation. Changed values conflict. The original actor and request id are retained. generation_conflict requires refresh and a newly reviewed request with a new key.
AuthorizationBearer <token>A secret, trusted or limited token. See Authentication.
license_id*stringThe issued license id.
^[A-Za-z0-9_.:-]+$1 <= length <= 128instance_id*stringThe device instance id.
^[A-Za-z0-9_.:-]+$1 <= length <= 128Idempotency-Key*stringOne stable printable ASCII key, scoped to account, mode and license. Preserve it while the outcome is unknown.
^[\x20-\x7e]+$1 <= length <= 128application/json- body
reason*stringTrimmed reason, 1 to 1000 characters after trimming. Control characters other than tab, newline and carriage return are refused.
^[^\x00-\x08\x0b\x0c\x0e-\x1f\x7f]*$1 <= length <= 1000expected_generation*integer1 <= value <= 9007199254740991The confirmed current data.
application/json- response
object*stringoperation_id*string^[A-Za-z0-9_.:-]+$1 <= length <= 128account_id*stringtest*booleanlicense_id*string^[A-Za-z0-9_.:-]+$1 <= length <= 128instance_id*string^[A-Za-z0-9_.:-]+$1 <= length <= 128expected_generation*integer1 <= value <= 9007199254740991reason*stringactor_type*stringactor_id*stringrequest_id*stringdate_created*stringdate-timedate_modified*stringdate-timeoutcome*stringUnknown requires explicit reconciliation or replay. Opening or refreshing never replays deactivation.
"unknown""succeeded""generation_conflict"error_code*nullnull"generation_conflict"result*Populated only for a confirmed succeeded outcome.
curl -X POST 'https://api.comecero.com/api/v1/licenses/string/instances/string/deactivate' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{ "reason": "Lost device", "expected_generation": 1}'{ "object": "license_support_action", "operation_id": "lsa_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "account_id": "AB1234", "test": true, "license_id": "lic_1", "instance_id": "ins_0123456789abcdef0123456789abcdef", "expected_generation": 1, "reason": "Lost device", "actor_type": "secret", "actor_id": "user_1", "request_id": "request_1", "date_created": "2026-12-01T01:00:00Z", "date_modified": "2026-12-01T01:00:00Z", "outcome": "succeeded", "error_code": null, "result": { "result": "deactivated", "instance": { "instance_id": "ins_0123456789abcdef0123456789abcdef", "name": "Laptop", "status": "deactivated", "activated_at": "2026-12-01T00:00:00.000Z", "deactivated_at": "2026-12-01T01:00:00.000Z" }, "license": { "license_id": "lic_1", "test": true, "generation": 1, "status": "active", "activation_limit": 3, "activations": 0, "expires_at": null } }}List license devices GET
Secret and trusted tokens require licenses read permission; limited tokens are refused. Core resolves ownership and mode from the token. Only generated/imported keys with activation state are supported, including expired and revoked keys. Setup restriction does not block issued-key maintenance. No key material, fingerprints or raw metadata are returned. Returns current-generation active and deactivated devices in instance-id order. Counts and pages are live observations. An empty page can have next_cursor; continue until null. Restart pagination to refresh. A failed Apollo read is an error, never an empty list. The device cursor cannot be used for history.
List license support actions GET
Secret and trusted tokens require licenses read permission; limited tokens are refused. Core resolves ownership and mode from the token. Only generated/imported keys with activation state are supported, including expired and revoked keys. Setup restriction does not block issued-key maintenance. No key material, fingerprints or raw metadata are returned. Reads only the core audit journal, newest intent first. History includes unknown and generation-conflict outcomes. It may finish a pending history link, but never calls Apollo or deactivates a device. Failed journal reads are errors. The history cursor is tied to account, mode and license and cannot be used for devices.