Record an Assistant home event
curl --request POST \
--url https://api.usenexio.com/conversations/instances/{instanceSlug}/home/events \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"end_user": "<string>",
"home_id": "<string>",
"conversation_id": "<string>",
"starts": [
{
"kind": "<string>",
"account_id": "<string>",
"recipe_id": "<string>"
}
]
}
'import requests
url = "https://api.usenexio.com/conversations/instances/{instanceSlug}/home/events"
payload = {
"end_user": "<string>",
"home_id": "<string>",
"conversation_id": "<string>",
"starts": [
{
"kind": "<string>",
"account_id": "<string>",
"recipe_id": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
end_user: '<string>',
home_id: '<string>',
conversation_id: '<string>',
starts: [{kind: '<string>', account_id: '<string>', recipe_id: '<string>'}]
})
};
fetch('https://api.usenexio.com/conversations/instances/{instanceSlug}/home/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"recorded": true
}{
"recorded": true
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}Conversations
Record an Assistant home event
Records that a home was shown (its level and starts) or that a start on it was taken. Idempotent on the home, the event and the start’s kind and account: a repeat answers 200 with recorded false. Refused under any impersonated session. Requires conversations:use. An organization key is refused with 403 legacy_key_person_route.
POST
/
conversations
/
instances
/
{instanceSlug}
/
home
/
events
Record an Assistant home event
curl --request POST \
--url https://api.usenexio.com/conversations/instances/{instanceSlug}/home/events \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"end_user": "<string>",
"home_id": "<string>",
"conversation_id": "<string>",
"starts": [
{
"kind": "<string>",
"account_id": "<string>",
"recipe_id": "<string>"
}
]
}
'import requests
url = "https://api.usenexio.com/conversations/instances/{instanceSlug}/home/events"
payload = {
"end_user": "<string>",
"home_id": "<string>",
"conversation_id": "<string>",
"starts": [
{
"kind": "<string>",
"account_id": "<string>",
"recipe_id": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
end_user: '<string>',
home_id: '<string>',
conversation_id: '<string>',
starts: [{kind: '<string>', account_id: '<string>', recipe_id: '<string>'}]
})
};
fetch('https://api.usenexio.com/conversations/instances/{instanceSlug}/home/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"recorded": true
}{
"recorded": true
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}Body
application/json