Capabilities
handoff.get
Read a handed-over conversation and the visitor's new messages.
Returns the handover and the conversation's messages. Webhooks carry no message text by default, so after handoff.message this is how your system reads what the visitor wrote.
Available to the operator's own systems. It does not act for a particular person.
Request
Send the capability name and its input to the site's invoke endpoint.
curl https://api.kivex.chat/v1/sites/$SITE/invoke \
-H "Authorization: Bearer $KIVEX_KEY" \
-H "Content-Type: application/json" \
-d '{"capability":"handoff.get","input":{"conversationId":"cnv_01J9Z5","after":"msg_0041"}}'Prop
Type
Response
The answer is an envelope: data in the shape below, and evidence with the source and time of every value that has an evidenceRef.
Prop
Type
Good to know
- An
afterthat is not a message of this conversation is refused withBAD_REQUESTrather than answered from the start.
Errors
This capability can answer with BAD_REQUEST, NOT_SUPPORTED, NOT_ALLOWED, RATE_LIMITED, UNKNOWN, SOURCE_UNAVAILABLE.
Example: catch up after a webhook
{
"conversationId": "cnv_01J9Z5",
"after": "msg_0041"
}