SnozeDevelopers
API referenceAi

Revoke a standing approval for an operation

Deletes the standing "always allow" policy for one operation so the agent asks about it again, and returns the policies that remain. Requires a workspace member with the `ai:write` permission, because starting to ask again is a workspace setting rather than a chat action. Naturally idempotent: revoking an operation that has no standing policy leaves the list unchanged.

DELETE
/v1/workspaces/{workspaceId}/ai/approval-policies/{operation}

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

Path Parameters

workspaceId*string
operation*string

Response Body

Success

application/json
  1. response
data*array<string>
Example Request
curl -X DELETE 'https://api.snoze.dev/v1/workspaces/string/ai/approval-policies/string'
Example Response
{  "data": [    "string"  ]}