Deactivate a sub-account. Remaining balance is returned to the parent team and all API keys are revoked. Requires a parent project API key; sub-account API keys receive HTTP 403.
curl --request DELETE \
--url https://api.zavu.dev/v1/sub-accounts/{id} \
--header 'Authorization: Bearer <token>'{
"message": "Sub-account deactivated",
"keysRevoked": 123
}Documentation Index
Fetch the complete documentation index at: https://docs.zavu.dev/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Sub-account ID.
curl --request DELETE \
--url https://api.zavu.dev/v1/sub-accounts/{id} \
--header 'Authorization: Bearer <token>'{
"message": "Sub-account deactivated",
"keysRevoked": 123
}