Send a push notification
A push notification to the member’s signed-in phones. Needs outbound_messages.push.
curl --request POST \
--url https://api.fluid.app/api/company/v2026-10/messages/push \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"member_id": "0199c2d4-8a1e-7b35-9f02-6d4e1a7c3b58",
"title": "Your order shipped",
"body": "Order 104882 is on its way and should arrive Thursday.",
"url": "/orders/104882",
"data": {
"order_id": 104882
}
}
'import requests
url = "https://api.fluid.app/api/company/v2026-10/messages/push"
payload = {
"member_id": "0199c2d4-8a1e-7b35-9f02-6d4e1a7c3b58",
"title": "Your order shipped",
"body": "Order 104882 is on its way and should arrive Thursday.",
"url": "/orders/104882",
"data": { "order_id": 104882 }
}
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({
member_id: '0199c2d4-8a1e-7b35-9f02-6d4e1a7c3b58',
title: 'Your order shipped',
body: JSON.stringify('Order 104882 is on its way and should arrive Thursday.'),
url: '/orders/104882',
data: {order_id: 104882}
})
};
fetch('https://api.fluid.app/api/company/v2026-10/messages/push', 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/messages/push",
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([
'member_id' => '0199c2d4-8a1e-7b35-9f02-6d4e1a7c3b58',
'title' => 'Your order shipped',
'body' => 'Order 104882 is on its way and should arrive Thursday.',
'url' => '/orders/104882',
'data' => [
'order_id' => 104882
]
]),
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/company/v2026-10/messages/push"
payload := strings.NewReader("{\n \"member_id\": \"0199c2d4-8a1e-7b35-9f02-6d4e1a7c3b58\",\n \"title\": \"Your order shipped\",\n \"body\": \"Order 104882 is on its way and should arrive Thursday.\",\n \"url\": \"/orders/104882\",\n \"data\": {\n \"order_id\": 104882\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/company/v2026-10/messages/push")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"member_id\": \"0199c2d4-8a1e-7b35-9f02-6d4e1a7c3b58\",\n \"title\": \"Your order shipped\",\n \"body\": \"Order 104882 is on its way and should arrive Thursday.\",\n \"url\": \"/orders/104882\",\n \"data\": {\n \"order_id\": 104882\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/company/v2026-10/messages/push")
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 \"member_id\": \"0199c2d4-8a1e-7b35-9f02-6d4e1a7c3b58\",\n \"title\": \"Your order shipped\",\n \"body\": \"Order 104882 is on its way and should arrive Thursday.\",\n \"url\": \"/orders/104882\",\n \"data\": {\n \"order_id\": 104882\n }\n}"
response = http.request(request)
puts response.read_body{
"message": {
"id": "019a1141-9a8b-7c7d-8e6f-5a4b3c2d1e0f",
"channel": "push",
"message_type": "transactional",
"status": "sent",
"refusal_code": null,
"provider": "expo",
"provider_message_id": "3f6a9c2e-8b1d-4e7f-a5c0-9d2b6e1f4a8c",
"recipient": {
"member_id": "0199c2d4-8a1e-7b35-9f02-6d4e1a7c3b58",
"contact_id": null,
"contact_method_id": null
},
"conversation_id": null,
"created_at": "2026-10-23T14:10:21Z",
"updated_at": "2026-10-23T14:10:22Z",
"events": [
{
"status": "accepted",
"detail": null,
"occurred_at": "2026-10-23T14:10:21Z"
},
{
"status": "sent",
"detail": null,
"occurred_at": "2026-10-23T14:10:22Z"
}
],
"send_at": null
},
"status": 200,
"meta": {
"request_uuid": "3b8f1d27-6c4e-4a91-8e5d-2f7c9a1b0e64",
"timestamp": "2026-10-23T14:05:12Z"
}
}{
"message": {
"id": "019a1141-9a8b-7c7d-8e6f-5a4b3c2d1e0f",
"channel": "push",
"message_type": "transactional",
"status": "accepted",
"refusal_code": null,
"provider": "expo",
"provider_message_id": null,
"recipient": {
"member_id": "0199c2d4-8a1e-7b35-9f02-6d4e1a7c3b58",
"contact_id": null,
"contact_method_id": null
},
"conversation_id": null,
"created_at": "2026-10-23T14:10:21Z",
"updated_at": "2026-10-23T14:10:21Z",
"events": [
{
"status": "accepted",
"detail": null,
"occurred_at": "2026-10-23T14:10:21Z"
}
],
"send_at": null
},
"status": 202,
"meta": {
"request_uuid": "3b8f1d27-6c4e-4a91-8e5d-2f7c9a1b0e64",
"timestamp": "2026-10-23T14:05:12Z"
}
}{
"error": {
"message": "<string>",
"details": {}
},
"status": 123,
"meta": {
"request_uuid": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{}{}{
"error": {
"code": "push_no_devices",
"message": "This member hasn't signed in to the app on a phone yet, so there's no device to notify.",
"channel": "push",
"setup": {
"status": "no_devices",
"next_step": "The member needs to sign in to the company's mobile app.",
"setup_url": "/settings/push-notifications"
}
},
"status": 422,
"meta": {
"request_uuid": "00000000-0000-0000-0000-000000000000",
"timestamp": "2026-10-23T12:00:00Z"
}
}Authorizations
An admin session, company API token, droplet token or bot token.
Headers
Use this or idempotency_key in the body.
Body
A push notification to the member's signed-in phones.
A member's uuid.
1 - 2000marketing needs the recipient's marketing consent for the channel.
transactional, marketing A key you choose. Sending again with the same key answers with the first message instead of sending twice. You can send it as the Idempotency-Key header instead.
200200Where tapping the notification takes the member in the app.
Extra data for the app.
A marketing message asked for during the recipient's quiet hours (21:00 to 08:00 in their time zone by default) waits and goes out when they end. Pass true to have it refused as quiet_hours with send_at instead.
Response
A repeat of an earlier request with the same idempotency key; the first message is returned and nothing is sent again.
curl --request POST \
--url https://api.fluid.app/api/company/v2026-10/messages/push \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"member_id": "0199c2d4-8a1e-7b35-9f02-6d4e1a7c3b58",
"title": "Your order shipped",
"body": "Order 104882 is on its way and should arrive Thursday.",
"url": "/orders/104882",
"data": {
"order_id": 104882
}
}
'import requests
url = "https://api.fluid.app/api/company/v2026-10/messages/push"
payload = {
"member_id": "0199c2d4-8a1e-7b35-9f02-6d4e1a7c3b58",
"title": "Your order shipped",
"body": "Order 104882 is on its way and should arrive Thursday.",
"url": "/orders/104882",
"data": { "order_id": 104882 }
}
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({
member_id: '0199c2d4-8a1e-7b35-9f02-6d4e1a7c3b58',
title: 'Your order shipped',
body: JSON.stringify('Order 104882 is on its way and should arrive Thursday.'),
url: '/orders/104882',
data: {order_id: 104882}
})
};
fetch('https://api.fluid.app/api/company/v2026-10/messages/push', 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/messages/push",
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([
'member_id' => '0199c2d4-8a1e-7b35-9f02-6d4e1a7c3b58',
'title' => 'Your order shipped',
'body' => 'Order 104882 is on its way and should arrive Thursday.',
'url' => '/orders/104882',
'data' => [
'order_id' => 104882
]
]),
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/company/v2026-10/messages/push"
payload := strings.NewReader("{\n \"member_id\": \"0199c2d4-8a1e-7b35-9f02-6d4e1a7c3b58\",\n \"title\": \"Your order shipped\",\n \"body\": \"Order 104882 is on its way and should arrive Thursday.\",\n \"url\": \"/orders/104882\",\n \"data\": {\n \"order_id\": 104882\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/company/v2026-10/messages/push")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"member_id\": \"0199c2d4-8a1e-7b35-9f02-6d4e1a7c3b58\",\n \"title\": \"Your order shipped\",\n \"body\": \"Order 104882 is on its way and should arrive Thursday.\",\n \"url\": \"/orders/104882\",\n \"data\": {\n \"order_id\": 104882\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/company/v2026-10/messages/push")
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 \"member_id\": \"0199c2d4-8a1e-7b35-9f02-6d4e1a7c3b58\",\n \"title\": \"Your order shipped\",\n \"body\": \"Order 104882 is on its way and should arrive Thursday.\",\n \"url\": \"/orders/104882\",\n \"data\": {\n \"order_id\": 104882\n }\n}"
response = http.request(request)
puts response.read_body{
"message": {
"id": "019a1141-9a8b-7c7d-8e6f-5a4b3c2d1e0f",
"channel": "push",
"message_type": "transactional",
"status": "sent",
"refusal_code": null,
"provider": "expo",
"provider_message_id": "3f6a9c2e-8b1d-4e7f-a5c0-9d2b6e1f4a8c",
"recipient": {
"member_id": "0199c2d4-8a1e-7b35-9f02-6d4e1a7c3b58",
"contact_id": null,
"contact_method_id": null
},
"conversation_id": null,
"created_at": "2026-10-23T14:10:21Z",
"updated_at": "2026-10-23T14:10:22Z",
"events": [
{
"status": "accepted",
"detail": null,
"occurred_at": "2026-10-23T14:10:21Z"
},
{
"status": "sent",
"detail": null,
"occurred_at": "2026-10-23T14:10:22Z"
}
],
"send_at": null
},
"status": 200,
"meta": {
"request_uuid": "3b8f1d27-6c4e-4a91-8e5d-2f7c9a1b0e64",
"timestamp": "2026-10-23T14:05:12Z"
}
}{
"message": {
"id": "019a1141-9a8b-7c7d-8e6f-5a4b3c2d1e0f",
"channel": "push",
"message_type": "transactional",
"status": "accepted",
"refusal_code": null,
"provider": "expo",
"provider_message_id": null,
"recipient": {
"member_id": "0199c2d4-8a1e-7b35-9f02-6d4e1a7c3b58",
"contact_id": null,
"contact_method_id": null
},
"conversation_id": null,
"created_at": "2026-10-23T14:10:21Z",
"updated_at": "2026-10-23T14:10:21Z",
"events": [
{
"status": "accepted",
"detail": null,
"occurred_at": "2026-10-23T14:10:21Z"
}
],
"send_at": null
},
"status": 202,
"meta": {
"request_uuid": "3b8f1d27-6c4e-4a91-8e5d-2f7c9a1b0e64",
"timestamp": "2026-10-23T14:05:12Z"
}
}{
"error": {
"message": "<string>",
"details": {}
},
"status": 123,
"meta": {
"request_uuid": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{}{}{
"error": {
"code": "push_no_devices",
"message": "This member hasn't signed in to the app on a phone yet, so there's no device to notify.",
"channel": "push",
"setup": {
"status": "no_devices",
"next_step": "The member needs to sign in to the company's mobile app.",
"setup_url": "/settings/push-notifications"
}
},
"status": 422,
"meta": {
"request_uuid": "00000000-0000-0000-0000-000000000000",
"timestamp": "2026-10-23T12:00:00Z"
}
}