Skip to main content
DELETE
/
api
/
v2
/
vaults
/
{vault_id}
Delete a vault
curl --request DELETE \
  --url https://agp.eu.hcompany.ai/api/v2/vaults/{vault_id} \
  --header 'Authorization: Bearer <token>'
Deletes a vault config. Agents in your organization can no longer read credentials through it in future runs. Returns 204 No Content on success.

Path parameters

vault_id
string
required
The vault config’s id (UUID).

Examples

curl -X DELETE https://agp.eu.hcompany.ai/api/v2/vaults/f47ac10b-58cc-4372-a567-0e02b2c3d479 \
  -H "Authorization: Bearer $HAI_API_KEY"

Errors

StatusCause
404Vault not found or you don’t have access.