Perform a handover.
| URL |
Requires Auth |
HTTP Method |
| /api/apps/public/{{app-id}}/incoming |
yes |
POST |
Headers
| Argument | Example | Required | Description |
|---|
X-User-Id | myuser-name | Required | The authenticated user ID. |
X-Auth-Token | myauth-token | Required | Auth token. |
| Argument | Example | Required | Description |
|---|
app-id | 646b8e7d-f1e1-419e-9478-10d0f5bc74d9 | Required | App id |
| Argument | Example | Required | Description |
|---|
action | handover | Required | App id |
sessionId | | Required | Session Id is the same session of Rasa |
| actionData | {
"targetDepartment": "SalesDepartment"
}
| | |
curl "http://localhost:3000/api/apps/public/646b8e7d-f1e1-419e-9478-10d0f5bc74d9/incoming" \
-X POST \
-H "Content-Type: application/json"
-d " {
"action": "close-chat",
"sessionId": "2Sfq8wXw4fYPMf6r4"
}"
{
"msg": "Perform Handover request handled successfullyy",
}
Any of the following errors can occur on the endpoint.
- Authorization: Requires an authentication token for the request to be made.
{% tabs %}
{% tab title="Authorization" %}
{
"status": "error",
"message": "You must be logged in to do this."
}
{% endtab %}
{% endtabs %}
| Version |
Description |
| 5.0.0 |
Added |