Bots
List bots
List your company’s bots. Callable by a company admin or rep whose role includes the messaging view permission. Company admins see every active bot, including archived ones; other callers see only unarchived response bots. Deleted bots are never listed.
Results are paginated by page number with page and per_page (default 20). The response is a two-element array: the pagination details, then the bots in items.
GET
/
api
/
v1
/
messaging
/
bots
List bots
curl --request GET \
--url https://api.fluid.app/api/v1/messaging/bots \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fluid.app/api/v1/messaging/bots"
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/v1/messaging/bots', 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/v1/messaging/bots",
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/v1/messaging/bots"
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/v1/messaging/bots")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/v1/messaging/bots")
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[
{
"pagination": {
"current": 1,
"previous": null,
"next": null,
"per_page": 20,
"pages": 1,
"count": 2
}
},
{
"items": [
{
"id": 3187,
"title": "Paper Order Helper",
"description": "Answers questions about paper stock and delivery times",
"type": "ResponseBot",
"image_url": "https://cdn.fluid.app/bots/3187/paper-order-helper.png",
"avatar_background_color": "1565C0",
"avatar_emoji": null,
"archived_at": null,
"recipient": {
"id": 48176,
"discarded_at": null,
"avatar_background": null,
"first_name": "Paper Order Helper",
"last_name": null,
"email": null,
"phone": null,
"blocked": false
},
"conversation": null,
"conversations": [],
"webhook_external_uri": "https://bots.piedpiper.com/fluid/dunder-mifflin/paper-orders",
"webhook_http_method": "post"
},
{
"id": 3204,
"title": "Sales Wins",
"description": "Posts closed deals from the CRM into the sales channel",
"type": "BroadcastBot",
"image_url": "https://cdn.fluid.app/bots/3204/sales-wins.png",
"avatar_background_color": "2E7D32",
"avatar_emoji": null,
"archived_at": null,
"recipient": {
"id": 48190,
"discarded_at": null,
"avatar_background": null,
"first_name": "Sales Wins",
"last_name": null,
"email": null,
"phone": null,
"blocked": false
},
"conversation": null,
"conversations": [
{
"id": 90457,
"name": "Scranton Sales Wins",
"description": "Closed deals and shout-outs from the Scranton branch",
"avatar_url": null,
"webhook_url": "https://www.fluid.app/inbounds/bots/Hq4sW2mZ8kRtY7vN3pLbX9cE/48190/Tz6KfP1dQ8wVn3JxR5sYb2Lm",
"removed_at": null
}
],
"webhook_external_uri": null,
"webhook_http_method": null
}
]
}
]{
"message": "<string>"
}Authorizations
Bearer token authentication
Query Parameters
Filter bots by type (e.g. ResponseBot, BroadcastBot)
Response
A page of bots.
- Option 1
- Option 2
Page-number pagination details for a page of results.
Show child attributes
Show child attributes
⌘I
List bots
curl --request GET \
--url https://api.fluid.app/api/v1/messaging/bots \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fluid.app/api/v1/messaging/bots"
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/v1/messaging/bots', 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/v1/messaging/bots",
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/v1/messaging/bots"
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/v1/messaging/bots")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/v1/messaging/bots")
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[
{
"pagination": {
"current": 1,
"previous": null,
"next": null,
"per_page": 20,
"pages": 1,
"count": 2
}
},
{
"items": [
{
"id": 3187,
"title": "Paper Order Helper",
"description": "Answers questions about paper stock and delivery times",
"type": "ResponseBot",
"image_url": "https://cdn.fluid.app/bots/3187/paper-order-helper.png",
"avatar_background_color": "1565C0",
"avatar_emoji": null,
"archived_at": null,
"recipient": {
"id": 48176,
"discarded_at": null,
"avatar_background": null,
"first_name": "Paper Order Helper",
"last_name": null,
"email": null,
"phone": null,
"blocked": false
},
"conversation": null,
"conversations": [],
"webhook_external_uri": "https://bots.piedpiper.com/fluid/dunder-mifflin/paper-orders",
"webhook_http_method": "post"
},
{
"id": 3204,
"title": "Sales Wins",
"description": "Posts closed deals from the CRM into the sales channel",
"type": "BroadcastBot",
"image_url": "https://cdn.fluid.app/bots/3204/sales-wins.png",
"avatar_background_color": "2E7D32",
"avatar_emoji": null,
"archived_at": null,
"recipient": {
"id": 48190,
"discarded_at": null,
"avatar_background": null,
"first_name": "Sales Wins",
"last_name": null,
"email": null,
"phone": null,
"blocked": false
},
"conversation": null,
"conversations": [
{
"id": 90457,
"name": "Scranton Sales Wins",
"description": "Closed deals and shout-outs from the Scranton branch",
"avatar_url": null,
"webhook_url": "https://www.fluid.app/inbounds/bots/Hq4sW2mZ8kRtY7vN3pLbX9cE/48190/Tz6KfP1dQ8wVn3JxR5sYb2Lm",
"removed_at": null
}
],
"webhook_external_uri": null,
"webhook_http_method": null
}
]
}
]{
"message": "<string>"
}