v3
latestOpenAPI 3.0.02026-08-081996601.2 MBAgent Aliases
Submit input to alias-routed session
Submits an input event to a session originally created via this alias. The session's resolved agent processes the event.
post/v2/agent_aliases/{alias_key}/sessions/{session_key}/events
Path parameters
alias_keystring required
The unique key that identifies an alias. Alias keys are independent of agent keys. The same string can exist as both an alias key and an agent key in the same customer account. Calls to /v2/agent_aliases/{key}/... target the alias. Calls to /v2/agents/{key}/... target the agent.
Example:support
session_keystring required
A unique key that identifies an agent session.
Example:customer_support_chat
Headers
Request-Timeoutinteger
The platform makes a best effort to complete the request in the specified seconds, or it times out.
Request-Timeout-Millisinteger
The platform makes a best effort to complete the request in the specified milliseconds, or it times out.
Request body
Example request
{
"surface_description": {
"type": "slack",
"id": "con_slack_support"
},
"messages": [
{
"type": "text",
"content": "I need help with my widget installation"
}
],
"since": "start",
"entry_step": "triage"
}Response
Events produced during this turn.
Example response
{
"events": [
{
"id": "aev_user_001",
"session_key": "customer_support_chat",
"created_at": "2024-01-15T10:35:00Z",
"messages": [
{
"type": "text",
"content": "I need help with my widget installation"
}
]
}
],
"session_key": "customer_support_chat"
}