Open a user-delegated agent DM channel
Open a user-delegated agent DM channel
Creates or reuses a human-to-agent DM channel and channel-linked session for the authenticated OAuth user. If content is supplied and createOnly is not true, the first message is posted as that user.
Authentication
AuthorizationBearer
Tenant/app API key or OAuth/JWT bearer token.
Headers
X-CES-Workspace-ID
Optional Workspace runtime selector header. If supplied with workspaceId, both values must match.
Query parameters
workspaceId
Optional Workspace runtime selector for preview or validation calls. If supplied with X-CES-Workspace-ID, both values must match.
Request
This endpoint expects an object.
agentId
content
Optional initial user message.
createOnly
When true, open the DM channel without posting content.
messageId
Optional caller-provided idempotency/message id.
attachments
pageContext
Response
DM channel created or resolved
channelId
sessionId
created
messageId
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error