Skip to main content
PUT
Open your direct conversation with an agent
Returns your own direct thread with the agent. Each workspace member gets a separate thread, and the call is idempotent. See Coding agents for working with agents. Returns the caller’s private direct thread with the agent, creating it on first call. Idempotent: every call returns the same conversation. Each workspace member has their own direct thread. When a dashboard session opens a brand-new thread, the agent greets first; API-key callers get the conversation with no greeting, so a POST …/turns right after cannot collide with one.
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

Response

The direct conversation

id
string
agentId
string
source
string

Where the conversation was born: web, a channel provider (slack), cron, watch, or agent (an agent-to-agent pair).

externalRef
string | null

The provider-side thread reference for channel conversations.

direct
boolean

True for a person's private direct thread with the agent. Direct threads are visible only to their owner.

userId
string | null

The owner of a direct thread.

title
string | null
createdAt
string<date-time>
updatedAt
string<date-time>