BizKitHub
DocsAPI ReferenceAccount/bff/account/logout-session
postAccountAdmin BFF

/bff/account/logout-session

Revokes the given shop__contact_login_identity row (scoped to the authenticated user — cannot address another user's row). Human sessions cascade to any AI-agent credentials provisioned from them; AI-agent rows die alone. Idempotent — revoked: false when the row was already inactive.

AccountpostBffAccountLogout-session

Parameters

JSON body

Request body

application/json
idnumberRequired

Internal id of the shop__contact_login_identity row to revoke (as returned by /active-sessions).

Response schema

1 status code documented

200Success
revokedbooleanRequired

True when the row was active and is now revoked; false when nothing changed.

agentsRevokedCountnumberRequired

Number of AI-agent rows revoked as a kill-chain side effect (0 for AI-agent rows themselves or when no children existed).

Response example

application/json
{
  "revoked": false,
  "agentsRevokedCount": 0
}

Request example

POST /bff/account/logout-session

post
curl -X POST "https://api.bizkithub.com/bff/account/logout-session" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "id": 0
}'

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key