Take a conversation over from its AI
curl --request POST \
--url https://api.statisfy.com/v1/conversations/{conversation_id}/take_over \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.statisfy.com/v1/conversations/{conversation_id}/take_over"
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}/take_over', 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}/take_over",
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}/take_over"
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}/take_over")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/conversations/{conversation_id}/take_over")
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
Take a conversation over from its AI
The key’s person takes the conversation over from the AI that answers it, as the app’s Take over does: the AI stays out of it (no replies, no drafts) until someone hands it back, and the person becomes its assignee. Drafts already on it stay. 409 when no AI answers it or someone else took it over; 422 when it can’t be assigned to the person. Returns the conversation, with taken_over. 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}
/
take_over
Take a conversation over from its AI
curl --request POST \
--url https://api.statisfy.com/v1/conversations/{conversation_id}/take_over \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.statisfy.com/v1/conversations/{conversation_id}/take_over"
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}/take_over', 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}/take_over",
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}/take_over"
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}/take_over")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/conversations/{conversation_id}/take_over")
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?