Skip to main content
PUT
Set a contact's policy

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>