Company messaging
Create a conversation message
Posts a message to a conversation as the acting company admin and returns the created message. The message type follows the conversation: SMS and email conversations send SMS and email messages. Requires a company token with messaging update permission. Returns 400 when the message is invalid. Pass user[email] to name the company admin the request acts as; it must match an admin recipient in the company’s messaging, or the request is rejected with 403.
POST
/
api
/
company
/
messaging
/
conversations
/
{conversation_id}
/
messages
Create a conversation message
curl --request POST \
--url https://api.fluid.app/api/company/messaging/conversations/{conversation_id}/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"user": {
"email": "michael.scott@dundermifflin.com"
},
"message": {
"body": "Reminder: the Q4 paper price list goes live Monday."
}
}
'import requests
url = "https://api.fluid.app/api/company/messaging/conversations/{conversation_id}/messages"
payload = {
"user": { "email": "michael.scott@dundermifflin.com" },
"message": { "body": "Reminder: the Q4 paper price list goes live Monday." }
}
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({
user: {email: 'michael.scott@dundermifflin.com'},
message: {body: JSON.stringify('Reminder: the Q4 paper price list goes live Monday.')}
})
};
fetch('https://api.fluid.app/api/company/messaging/conversations/{conversation_id}/messages', 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/messaging/conversations/{conversation_id}/messages",
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([
'user' => [
'email' => 'michael.scott@dundermifflin.com'
],
'message' => [
'body' => 'Reminder: the Q4 paper price list goes live Monday.'
]
]),
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/messaging/conversations/{conversation_id}/messages"
payload := strings.NewReader("{\n \"user\": {\n \"email\": \"michael.scott@dundermifflin.com\"\n },\n \"message\": {\n \"body\": \"Reminder: the Q4 paper price list goes live Monday.\"\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/messaging/conversations/{conversation_id}/messages")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"user\": {\n \"email\": \"michael.scott@dundermifflin.com\"\n },\n \"message\": {\n \"body\": \"Reminder: the Q4 paper price list goes live Monday.\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/company/messaging/conversations/{conversation_id}/messages")
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 \"user\": {\n \"email\": \"michael.scott@dundermifflin.com\"\n },\n \"message\": {\n \"body\": \"Reminder: the Q4 paper price list goes live Monday.\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": 884213,
"conversation_id": 23018,
"type": "DirectMessage",
"status": "sent",
"body": "Reminder: the Q4 paper price list goes live Monday.",
"metadata": null,
"attachments": [],
"sender_recipient": {
"id": 61190,
"first_name": "Michael",
"last_name": "Scott",
"discarded_at": null,
"avatar_background": "#F5A623",
"image_url": "https://cdn.fluid.app/dunder-mifflin/avatars/michael-scott.jpg",
"pro_user": false,
"blocked": false,
"blocker": false
},
"replied_to_message": null,
"mentioned_recipients": [],
"seen_by": [],
"seen_by_count": 0,
"reaction": null,
"reaction_stats": {},
"emoji_only_count": 0,
"pinned": false,
"sent_at": "2026-09-14T16:02:31Z",
"edited_at": null,
"deleted_at": null,
"created_at": "2026-09-14T16:02:31Z",
"updated_at": "2026-09-14T16:02:31Z"
}{
"message": "<string>"
}Body
application/json
Response
Created
A message in a conversation, as seen by the acting recipient.
⌘I
Create a conversation message
curl --request POST \
--url https://api.fluid.app/api/company/messaging/conversations/{conversation_id}/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"user": {
"email": "michael.scott@dundermifflin.com"
},
"message": {
"body": "Reminder: the Q4 paper price list goes live Monday."
}
}
'import requests
url = "https://api.fluid.app/api/company/messaging/conversations/{conversation_id}/messages"
payload = {
"user": { "email": "michael.scott@dundermifflin.com" },
"message": { "body": "Reminder: the Q4 paper price list goes live Monday." }
}
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({
user: {email: 'michael.scott@dundermifflin.com'},
message: {body: JSON.stringify('Reminder: the Q4 paper price list goes live Monday.')}
})
};
fetch('https://api.fluid.app/api/company/messaging/conversations/{conversation_id}/messages', 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/messaging/conversations/{conversation_id}/messages",
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([
'user' => [
'email' => 'michael.scott@dundermifflin.com'
],
'message' => [
'body' => 'Reminder: the Q4 paper price list goes live Monday.'
]
]),
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/messaging/conversations/{conversation_id}/messages"
payload := strings.NewReader("{\n \"user\": {\n \"email\": \"michael.scott@dundermifflin.com\"\n },\n \"message\": {\n \"body\": \"Reminder: the Q4 paper price list goes live Monday.\"\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/messaging/conversations/{conversation_id}/messages")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"user\": {\n \"email\": \"michael.scott@dundermifflin.com\"\n },\n \"message\": {\n \"body\": \"Reminder: the Q4 paper price list goes live Monday.\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/company/messaging/conversations/{conversation_id}/messages")
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 \"user\": {\n \"email\": \"michael.scott@dundermifflin.com\"\n },\n \"message\": {\n \"body\": \"Reminder: the Q4 paper price list goes live Monday.\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": 884213,
"conversation_id": 23018,
"type": "DirectMessage",
"status": "sent",
"body": "Reminder: the Q4 paper price list goes live Monday.",
"metadata": null,
"attachments": [],
"sender_recipient": {
"id": 61190,
"first_name": "Michael",
"last_name": "Scott",
"discarded_at": null,
"avatar_background": "#F5A623",
"image_url": "https://cdn.fluid.app/dunder-mifflin/avatars/michael-scott.jpg",
"pro_user": false,
"blocked": false,
"blocker": false
},
"replied_to_message": null,
"mentioned_recipients": [],
"seen_by": [],
"seen_by_count": 0,
"reaction": null,
"reaction_stats": {},
"emoji_only_count": 0,
"pinned": false,
"sent_at": "2026-09-14T16:02:31Z",
"edited_at": null,
"deleted_at": null,
"created_at": "2026-09-14T16:02:31Z",
"updated_at": "2026-09-14T16:02:31Z"
}{
"message": "<string>"
}