Notes and activities
Create a custom activity
Records an analytics event for the calling rep. custom_activity.name picks the behaviour: link-shared records that the rep copied a share link (send the share’s token as custom_activity.parameters.token; an unknown token returns 400), user-activity records a mobile app usage event, and any other name is stored as a custom activity with its source and free-form parameters. Returns status: success with 201, or status: failed with 400. Requires a rep token or an admin-tier token; admin users need the dashboard update permission.
POST
/
api
/
custom_activities
Create a custom activity
curl --request POST \
--url https://api.fluid.app/api/custom_activities \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"custom_activity": {
"name": "catalog-downloaded",
"source": "mobile",
"parameters": {
"catalog": "fall-2026-paper-catalog",
"product_slug": "20lb-copy-paper"
}
}
}
'import requests
url = "https://api.fluid.app/api/custom_activities"
payload = { "custom_activity": {
"name": "catalog-downloaded",
"source": "mobile",
"parameters": {
"catalog": "fall-2026-paper-catalog",
"product_slug": "20lb-copy-paper"
}
} }
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({
custom_activity: {
name: 'catalog-downloaded',
source: 'mobile',
parameters: {catalog: 'fall-2026-paper-catalog', product_slug: '20lb-copy-paper'}
}
})
};
fetch('https://api.fluid.app/api/custom_activities', 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/custom_activities",
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([
'custom_activity' => [
'name' => 'catalog-downloaded',
'source' => 'mobile',
'parameters' => [
'catalog' => 'fall-2026-paper-catalog',
'product_slug' => '20lb-copy-paper'
]
]
]),
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.fluid.app/api/custom_activities"
payload := strings.NewReader("{\n \"custom_activity\": {\n \"name\": \"catalog-downloaded\",\n \"source\": \"mobile\",\n \"parameters\": {\n \"catalog\": \"fall-2026-paper-catalog\",\n \"product_slug\": \"20lb-copy-paper\"\n }\n }\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.fluid.app/api/custom_activities")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"custom_activity\": {\n \"name\": \"catalog-downloaded\",\n \"source\": \"mobile\",\n \"parameters\": {\n \"catalog\": \"fall-2026-paper-catalog\",\n \"product_slug\": \"20lb-copy-paper\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/custom_activities")
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 \"custom_activity\": {\n \"name\": \"catalog-downloaded\",\n \"source\": \"mobile\",\n \"parameters\": {\n \"catalog\": \"fall-2026-paper-catalog\",\n \"product_slug\": \"20lb-copy-paper\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"status": "success"
}{
"message": "<string>"
}⌘I
Create a custom activity
curl --request POST \
--url https://api.fluid.app/api/custom_activities \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"custom_activity": {
"name": "catalog-downloaded",
"source": "mobile",
"parameters": {
"catalog": "fall-2026-paper-catalog",
"product_slug": "20lb-copy-paper"
}
}
}
'import requests
url = "https://api.fluid.app/api/custom_activities"
payload = { "custom_activity": {
"name": "catalog-downloaded",
"source": "mobile",
"parameters": {
"catalog": "fall-2026-paper-catalog",
"product_slug": "20lb-copy-paper"
}
} }
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({
custom_activity: {
name: 'catalog-downloaded',
source: 'mobile',
parameters: {catalog: 'fall-2026-paper-catalog', product_slug: '20lb-copy-paper'}
}
})
};
fetch('https://api.fluid.app/api/custom_activities', 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/custom_activities",
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([
'custom_activity' => [
'name' => 'catalog-downloaded',
'source' => 'mobile',
'parameters' => [
'catalog' => 'fall-2026-paper-catalog',
'product_slug' => '20lb-copy-paper'
]
]
]),
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.fluid.app/api/custom_activities"
payload := strings.NewReader("{\n \"custom_activity\": {\n \"name\": \"catalog-downloaded\",\n \"source\": \"mobile\",\n \"parameters\": {\n \"catalog\": \"fall-2026-paper-catalog\",\n \"product_slug\": \"20lb-copy-paper\"\n }\n }\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.fluid.app/api/custom_activities")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"custom_activity\": {\n \"name\": \"catalog-downloaded\",\n \"source\": \"mobile\",\n \"parameters\": {\n \"catalog\": \"fall-2026-paper-catalog\",\n \"product_slug\": \"20lb-copy-paper\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/custom_activities")
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 \"custom_activity\": {\n \"name\": \"catalog-downloaded\",\n \"source\": \"mobile\",\n \"parameters\": {\n \"catalog\": \"fall-2026-paper-catalog\",\n \"product_slug\": \"20lb-copy-paper\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"status": "success"
}{
"message": "<string>"
}