POST /v1/admin/org/{org_id}/reactivate
Manual admin-dashboard reactivation (master-key auth; admin-worker only).
What this is
Manual reactivation via the admin-dashboard. Sets organizations.active = 1 without minting a new key (the existing key is reactivated). For billing-driven reactivation that mints a new key, use POST /v1/admin/billing/org/{org_id}/rotate.
Phase 2.2.5 placeholder state: scoring-api returns 501 on auth-success until the admin-dashboard plan PR ships the full handler. Auth gate active.
Authentication
X-API-Key: $MASTER_ADMIN_KEY_ORG_REACTIVATE — admin-worker only.
Idempotency
Idempotency-Key required.
Rate limiting
- Layer 1: enforced.
- Layer 2: bypassed.
Request
curl -X POST https://api.cohesionauth.com/v1/admin/org/org_acme_2026_example/reactivate \
-H "X-API-Key: $MASTER_ADMIN_KEY_ORG_REACTIVATE" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: example-reactivate-key" \
-d '{
"confirm_org_id": "org_acme_2026_example",
"idempotency_key": "example-reactivate-key"
}'
Response (post-implementation)
{
"reactivated": true,
"org_id": "org_acme_2026_example",
"reactivated_at": "2026-05-03T03:30:00.000Z",
"request_id": "req_01H...",
"timestamp": "2026-05-03T03:30:00.000Z"
}
Errors
| Status | Meaning |
|---|---|
401 | Master-key missing or wrong scope |
422 | confirm_org_id mismatches URL path |
501 | Handler pending admin-dashboard plan PR |