Hand a conversation back to its AI
curl --request POST \
--url https://api.statisfy.com/v1/conversations/{conversation_id}/hand_back \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.statisfy.com/v1/conversations/{conversation_id}/hand_back"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.statisfy.com/v1/conversations/{conversation_id}/hand_back', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.statisfy.com/v1/conversations/{conversation_id}/hand_back",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.statisfy.com/v1/conversations/{conversation_id}/hand_back"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.statisfy.com/v1/conversations/{conversation_id}/hand_back")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/conversations/{conversation_id}/hand_back")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"activity_id": "<string>",
"ai": {
"participated": true,
"closed_by": "ai_judged",
"resolution": "resolved"
},
"created_at": "<string>",
"id": "<string>",
"updated_at": "<string>",
"account_id": "<string>",
"agent": {
"id": "<string>",
"name": "<string>"
},
"assignee": {
"id": "<string>",
"name": "<string>",
"type": "user"
},
"channel": "portal",
"close_reason": "answered",
"closed_at": "<string>",
"customer_told_at": "<string>",
"draft": {
"id": "<string>",
"title": "<string>",
"type": "<string>",
"agent_id": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
},
"engineering_issue": {
"key": "<string>",
"state": "open",
"synced_at": "<string>",
"title": "<string>",
"tracker": "linear",
"url": "<string>"
},
"first_reply_at": "<string>",
"held": false,
"kind": "customer_success",
"last_message_at": "<string>",
"loop_in": {
"has_draft": true,
"open": true,
"sent": true,
"title": "<string>",
"finished_by": "<string>",
"sent_as_worker": true
},
"outcome": "knowledge",
"priority": "normal",
"reopen_count": 0,
"reply_due": {
"due_at": "<string>",
"at_risk_at": "<string>",
"clock": "first_response"
},
"started_by": "customer",
"status": "<string>",
"status_group": "not_started",
"status_id": 123,
"subject": "<string>",
"tags": [
{
"id": 123,
"name": "<string>",
"color_hex": "<string>"
}
],
"taken_over": {
"by": {
"id": "<string>",
"name": "<string>"
},
"at": "<string>"
},
"tool_approval": {
"id": "<string>",
"title": "<string>",
"type": "<string>",
"agent_id": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}
}conversations
Hand a conversation back to its AI
Hands a taken-over conversation back to its AI, as the app’s Hand back does: it answers the next customer message again, and the conversation has no assignee unless the customer is waiting (NEEDS RESPONSE), when its assignee keeps it. One nobody took over is returned as it is. Made as the key’s person, as they would in the app: only a person’s key may (403 for any other). 404 for a conversation the workspace doesn’t read, as GET answers.
POST
/
v1
/
conversations
/
{conversation_id}
/
hand_back
Hand a conversation back to its AI
curl --request POST \
--url https://api.statisfy.com/v1/conversations/{conversation_id}/hand_back \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.statisfy.com/v1/conversations/{conversation_id}/hand_back"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.statisfy.com/v1/conversations/{conversation_id}/hand_back', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.statisfy.com/v1/conversations/{conversation_id}/hand_back",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.statisfy.com/v1/conversations/{conversation_id}/hand_back"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.statisfy.com/v1/conversations/{conversation_id}/hand_back")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/conversations/{conversation_id}/hand_back")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"activity_id": "<string>",
"ai": {
"participated": true,
"closed_by": "ai_judged",
"resolution": "resolved"
},
"created_at": "<string>",
"id": "<string>",
"updated_at": "<string>",
"account_id": "<string>",
"agent": {
"id": "<string>",
"name": "<string>"
},
"assignee": {
"id": "<string>",
"name": "<string>",
"type": "user"
},
"channel": "portal",
"close_reason": "answered",
"closed_at": "<string>",
"customer_told_at": "<string>",
"draft": {
"id": "<string>",
"title": "<string>",
"type": "<string>",
"agent_id": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
},
"engineering_issue": {
"key": "<string>",
"state": "open",
"synced_at": "<string>",
"title": "<string>",
"tracker": "linear",
"url": "<string>"
},
"first_reply_at": "<string>",
"held": false,
"kind": "customer_success",
"last_message_at": "<string>",
"loop_in": {
"has_draft": true,
"open": true,
"sent": true,
"title": "<string>",
"finished_by": "<string>",
"sent_as_worker": true
},
"outcome": "knowledge",
"priority": "normal",
"reopen_count": 0,
"reply_due": {
"due_at": "<string>",
"at_risk_at": "<string>",
"clock": "first_response"
},
"started_by": "customer",
"status": "<string>",
"status_group": "not_started",
"status_id": 123,
"subject": "<string>",
"tags": [
{
"id": 123,
"name": "<string>",
"color_hex": "<string>"
}
],
"taken_over": {
"by": {
"id": "<string>",
"name": "<string>"
},
"at": "<string>"
},
"tool_approval": {
"id": "<string>",
"title": "<string>",
"type": "<string>",
"agent_id": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}
}Authorizations
An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.
Response
200 - application/json
Successful Response
Was this page helpful?