Bot templates
List the run's bot's touches
With a bot’s run login: the same touches with receipts and linkage facts, for the playbooks whose read permission the run holds, so the bot can compute and report its own results. Reference-only: ids, statuses, times and amounts, never a name or address.
GET
/
api
/
company
/
v2026-10
/
bot-runs
/
current
/
touches
List the run's bot's touches
curl --request GET \
--url https://api.fluid.app/api/company/v2026-10/bot-runs/current/touches \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fluid.app/api/company/v2026-10/bot-runs/current/touches"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fluid.app/api/company/v2026-10/bot-runs/current/touches', 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.fluid.app/api/company/v2026-10/bot-runs/current/touches",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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.fluid.app/api/company/v2026-10/bot-runs/current/touches"
req, _ := http.NewRequest("GET", 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.get("https://api.fluid.app/api/company/v2026-10/bot-runs/current/touches")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/company/v2026-10/bot-runs/current/touches")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"touches": [
{
"id": "0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a90",
"bot_id": "0192f3c4-5a6b-7c8d-9e0f-1a2b3c4d5e6f",
"playbook_key": "declined_subscription",
"subject_type": "Commerce::Subscription",
"subject_id": "481",
"episode_key": "481:1761091200",
"arm": "treatment",
"status": "sent",
"refusal_reason": null,
"lever": "update_payment",
"channel": "email",
"message_type": "we_bot_subscription_save",
"slots": {},
"run_id": "0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a95",
"approval_id": null,
"delivery_state": "sent",
"provider_message_id": "0100019a-ses",
"comms_event_id": null,
"click_count": null,
"template_version_id": "0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a92",
"assigned_at": "2026-10-22T15:32:08Z",
"scheduled_for": null,
"requested_at": "2026-10-22T15:32:08Z",
"sent_at": "2026-10-22T15:32:08Z",
"delivered_at": "2026-10-22T15:32:08Z",
"first_opened_at": null,
"bounced_at": null,
"complained_at": null,
"first_clicked_at": null,
"window_ends_at": "2026-11-05T15:32:08Z",
"links": [
{
"kind": "subscription_recovered",
"order_id": 9012,
"ordered_at": "2026-10-22T15:32:08Z",
"amount_in_base_cents": 4999,
"financial_status": "paid"
}
]
}
],
"status": 200,
"meta": {
"request_uuid": "7e2c9b41-3f8a-4d15-b6e0-9a4c21d7f583",
"timestamp": "2026-10-22T15:32:08Z",
"pagination": {
"cursor": null,
"limit": 25,
"prev_cursor": null,
"next_cursor": null
}
}
}{
"message": "Invalid credentials."
}{
"message": "Only a running bot can call this"
}{
"error": {
"message": "Not found",
"details": {}
},
"status": 404,
"meta": {
"request_uuid": "7e2c9b41-3f8a-4d15-b6e0-9a4c21d7f583",
"timestamp": "2026-10-22T15:32:08Z"
}
}{
"error": {
"message": "Invalid parameters",
"details": {}
},
"status": 422,
"meta": {
"request_uuid": "7e2c9b41-3f8a-4d15-b6e0-9a4c21d7f583",
"timestamp": "2026-10-22T15:32:08Z"
}
}Authorizations
A bot's run login, minted for one run.
Query Parameters
Only this playbook.
Only this arm.
Available options:
treatment, holdout Only this status.
Assigned at or after this time (ISO 8601); defaults to 30 days ago.
Assigned before this time (ISO 8601); defaults to now.
Touches per page, 1 to 100. Defaults to 25.
Required range:
1 <= x <= 100A cursor from meta.pagination.
⌘I
List the run's bot's touches
curl --request GET \
--url https://api.fluid.app/api/company/v2026-10/bot-runs/current/touches \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fluid.app/api/company/v2026-10/bot-runs/current/touches"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fluid.app/api/company/v2026-10/bot-runs/current/touches', 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.fluid.app/api/company/v2026-10/bot-runs/current/touches",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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.fluid.app/api/company/v2026-10/bot-runs/current/touches"
req, _ := http.NewRequest("GET", 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.get("https://api.fluid.app/api/company/v2026-10/bot-runs/current/touches")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/company/v2026-10/bot-runs/current/touches")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"touches": [
{
"id": "0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a90",
"bot_id": "0192f3c4-5a6b-7c8d-9e0f-1a2b3c4d5e6f",
"playbook_key": "declined_subscription",
"subject_type": "Commerce::Subscription",
"subject_id": "481",
"episode_key": "481:1761091200",
"arm": "treatment",
"status": "sent",
"refusal_reason": null,
"lever": "update_payment",
"channel": "email",
"message_type": "we_bot_subscription_save",
"slots": {},
"run_id": "0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a95",
"approval_id": null,
"delivery_state": "sent",
"provider_message_id": "0100019a-ses",
"comms_event_id": null,
"click_count": null,
"template_version_id": "0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a92",
"assigned_at": "2026-10-22T15:32:08Z",
"scheduled_for": null,
"requested_at": "2026-10-22T15:32:08Z",
"sent_at": "2026-10-22T15:32:08Z",
"delivered_at": "2026-10-22T15:32:08Z",
"first_opened_at": null,
"bounced_at": null,
"complained_at": null,
"first_clicked_at": null,
"window_ends_at": "2026-11-05T15:32:08Z",
"links": [
{
"kind": "subscription_recovered",
"order_id": 9012,
"ordered_at": "2026-10-22T15:32:08Z",
"amount_in_base_cents": 4999,
"financial_status": "paid"
}
]
}
],
"status": 200,
"meta": {
"request_uuid": "7e2c9b41-3f8a-4d15-b6e0-9a4c21d7f583",
"timestamp": "2026-10-22T15:32:08Z",
"pagination": {
"cursor": null,
"limit": 25,
"prev_cursor": null,
"next_cursor": null
}
}
}{
"message": "Invalid credentials."
}{
"message": "Only a running bot can call this"
}{
"error": {
"message": "Not found",
"details": {}
},
"status": 404,
"meta": {
"request_uuid": "7e2c9b41-3f8a-4d15-b6e0-9a4c21d7f583",
"timestamp": "2026-10-22T15:32:08Z"
}
}{
"error": {
"message": "Invalid parameters",
"details": {}
},
"status": 422,
"meta": {
"request_uuid": "7e2c9b41-3f8a-4d15-b6e0-9a4c21d7f583",
"timestamp": "2026-10-22T15:32:08Z"
}
}