BizKitHub
DocsAPI ReferenceApi Key/bff/api-key/set-active
postApi KeyAdmin BFF

/bff/api-key/set-active

Toggles the is_active flag of an API key. A deactivated key rejects new requests but remains stored, so it can be reactivated later. Use this to temporarily pause an integration without discarding the credential. Deleted keys (isDeleted: true) cannot be toggled — generate a new key instead.

API KeypostBffApi-keySet-active

Parameters

2 body

2 total
Body · 2
idstringRequired

External identifier (UUID) of the API key.

activebooleanRequired

True to reactivate, false to deactivate. Deleted keys cannot be toggled.

Request

POST /bff/api-key/set-active

post
curl -X POST "https://api.bizkithub.com/bff/api-key/set-active" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "active": false
}'

Response

Active flag updated successfully.

{
  "success": true
}

All response codes

1 status code documented

Need an API key?

All BizKitHub API endpoints require authentication via API key.

Get API Key