Skip to main content
POST
Publish Agent Version

Headers

x-anyreach-org
string | null

Organization ID for user PATs (pat_ prefix tokens)

Path Parameters

id
string
required
version
integer
required

Body

application/json

Request schema for agent publishing.

phone_numbers
string[] | null

Optional list of phone numbers to deploy to

unassign_phone_numbers
string[] | null

Optional list of phone numbers to unassign from this agent

direction
enum<string>
default:inbound

Deployment direction: inbound, outbound, or both

Available options:
inbound,
outbound,
both

Response

Successful Response

phone_number
string
required
organization_id
string
required
trunk_id
string
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
external_id
string
required
created_by
string | null
modified_by
string | null
inbound_agent_version_id
string | null
outbound_agent_version_id
string | null
managed_account_id
string | null
outbound_shareable
boolean
default:false