Skip to main content
PUT
Set a contact's policy
Sets the policy for one contact. Use allow to skip approvals, blocked to refuse, or ask to revoke a standing permission. Related guide: Slack integration. allow lets the agent message them without asking; blocked refuses; ask revokes a standing permission (the row survives).
Availability: Cloud · Community (self-hosted) · Enterprise (self-hosted)

Authorizations

Authorization
string
header
required

A workspace API key (oc_…) or organization API key (oc_org_…). Workspace-scoped endpoints called with an organization key also need X-Workspace-Id.

Path Parameters

agentId
string
required
contactId
string
required

Body

application/json
policy
enum<string>
required
Available options:
ask,
allow,
blocked

Response

The contact

A standing decision about who the agent may message on its own initiative.

id
string
kind
string
externalRef
string
displayName
string | null
policy
enum<string>
Available options:
ask,
allow,
blocked
updatedAt
string<date-time>