curl --request POST \
--url https://api.statisfy.com/v1/workbench/actions/{action_id}/execute \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"item_ids": [
"<string>"
],
"note": "<string>",
"updated_at": "<string>"
}
'import requests
url = "https://api.statisfy.com/v1/workbench/actions/{action_id}/execute"
payload = {
"item_ids": ["<string>"],
"note": "<string>",
"updated_at": "<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({item_ids: ['<string>'], note: '<string>', updated_at: '<string>'})
};
fetch('https://api.statisfy.com/v1/workbench/actions/{action_id}/execute', 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/workbench/actions/{action_id}/execute",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'item_ids' => [
'<string>'
],
'note' => '<string>',
'updated_at' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.statisfy.com/v1/workbench/actions/{action_id}/execute"
payload := strings.NewReader("{\n \"item_ids\": [\n \"<string>\"\n ],\n \"note\": \"<string>\",\n \"updated_at\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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/workbench/actions/{action_id}/execute")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"item_ids\": [\n \"<string>\"\n ],\n \"note\": \"<string>\",\n \"updated_at\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/workbench/actions/{action_id}/execute")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"item_ids\": [\n \"<string>\"\n ],\n \"note\": \"<string>\",\n \"updated_at\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"action": {
"id": "<string>",
"payload": {},
"priority": 123,
"status": "<string>",
"title": "<string>",
"type": "<string>",
"account_id": "<string>",
"account_name": "<string>",
"agent": {
"id": "<string>",
"name": "<string>"
},
"assignee": {
"id": "<string>",
"name": "<string>"
},
"conversation_id": "<string>",
"created_at": "<string>",
"description": "<string>",
"dismiss_reason": "<string>",
"dismissed_at": "<string>",
"executed_at": "<string>",
"execution_result": {},
"last_activity_at": "<string>",
"meeting_start": "<string>",
"meeting_title": "<string>",
"original_payload": {},
"resolution": "<string>",
"resolved_by": {
"id": "<string>",
"name": "<string>"
},
"source": "<string>",
"source_id": "<string>",
"updated_at": "<string>"
},
"conversation_status": {
"status": "<string>",
"previous": "<string>",
"previous_status_id": 123,
"status_id": 123
},
"message": "<string>",
"success": true
}Approve an action (carry it out)
Approves an open action and carries it out, as the app’s Approve does: an email, slack, teams, portal, in_app_sdk or ticket_reply action is SENT to the customer (an email from the person’s connected mailbox, or the support address the thread uses); an escalation is resolved; a canvas (meeting prep) is marked done; a tool_approval runs its tool calls (item_ids for some of them). Other types (task, ticket) can’t be carried out here, as in the app (501): dismiss them when done. A reply on a conversation needs updated_at, the version you read (422 without it, 409 when it changed). A reply then has its conversation’s status decided, as the app does after a send (conversation_status); it stays null, with the reply sent, when the key reads no conversations, or a book role may not change that conversation. Carrying out one already carried out returns it as it is. 502 when the send failed (nothing was marked done). Done as the key’s person, as they would in the app: only a person’s key may (403 for any other), on an action GET opens for them (else a 404). The app’s refusals come back as they are: 409 for an action already carried out or dismissed, or one a teammate holds. Over MCP: first show the person what will go out (GET the action: its payload), act only on their explicit go-ahead, and pass the updated_at from that same read: a 409 means it changed since they saw it, so read it again and ask again.
curl --request POST \
--url https://api.statisfy.com/v1/workbench/actions/{action_id}/execute \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"item_ids": [
"<string>"
],
"note": "<string>",
"updated_at": "<string>"
}
'import requests
url = "https://api.statisfy.com/v1/workbench/actions/{action_id}/execute"
payload = {
"item_ids": ["<string>"],
"note": "<string>",
"updated_at": "<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({item_ids: ['<string>'], note: '<string>', updated_at: '<string>'})
};
fetch('https://api.statisfy.com/v1/workbench/actions/{action_id}/execute', 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/workbench/actions/{action_id}/execute",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'item_ids' => [
'<string>'
],
'note' => '<string>',
'updated_at' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.statisfy.com/v1/workbench/actions/{action_id}/execute"
payload := strings.NewReader("{\n \"item_ids\": [\n \"<string>\"\n ],\n \"note\": \"<string>\",\n \"updated_at\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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/workbench/actions/{action_id}/execute")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"item_ids\": [\n \"<string>\"\n ],\n \"note\": \"<string>\",\n \"updated_at\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/workbench/actions/{action_id}/execute")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"item_ids\": [\n \"<string>\"\n ],\n \"note\": \"<string>\",\n \"updated_at\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"action": {
"id": "<string>",
"payload": {},
"priority": 123,
"status": "<string>",
"title": "<string>",
"type": "<string>",
"account_id": "<string>",
"account_name": "<string>",
"agent": {
"id": "<string>",
"name": "<string>"
},
"assignee": {
"id": "<string>",
"name": "<string>"
},
"conversation_id": "<string>",
"created_at": "<string>",
"description": "<string>",
"dismiss_reason": "<string>",
"dismissed_at": "<string>",
"executed_at": "<string>",
"execution_result": {},
"last_activity_at": "<string>",
"meeting_start": "<string>",
"meeting_title": "<string>",
"original_payload": {},
"resolution": "<string>",
"resolved_by": {
"id": "<string>",
"name": "<string>"
},
"source": "<string>",
"source_id": "<string>",
"updated_at": "<string>"
},
"conversation_status": {
"status": "<string>",
"previous": "<string>",
"previous_status_id": 123,
"status_id": 123
},
"message": "<string>",
"success": true
}Authorizations
An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.
Path Parameters
Body
Response
Successful Response
Was this page helpful?