Create a conversation
Starts a conversation for a customer, as if they had written in. Use it to bring in messages from your own forms or apps. Needs the conversations:write scope.
Authentication
Bearer tokenbearerAuth
Create a key under Settings › API keys and send it as Authorization: Bearer YOUR_KEY.
Request bodyrequired
Responses
400A parameter is missing or wrong. error.field names it.application/json
401The key is missing or wrong. Check the Bearer prefix.application/json
403The key lacks the scope this endpoint needs.application/json
POST/conversations
curl https://api.relaypoint.example/v1/conversations \
--request POST \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"customer_email": "jamie@example.com",
"customer_name": "Jamie Kim",
"subject": "Can'\''t export last month'\''s report",
"body": "The Export button stays grey on the Reports page.",
"tags": [
"reports"
]
}'const response = await fetch('https://api.relaypoint.example/v1/conversations', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
customer_email: 'jamie@example.com',
customer_name: 'Jamie Kim',
subject: 'Can\'t export last month\'s report',
body: 'The Export button stays grey on the Reports page.',
tags: ['reports']
})
})
console.log(response.status, await response.text());import requests
response = requests.post(
"https://api.relaypoint.example/v1/conversations",
headers={
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
json={
"customer_email": "jamie@example.com",
"customer_name": "Jamie Kim",
"subject": "Can't export last month's report",
"body": "The Export button stays grey on the Reports page.",
"tags": [
"reports"
]
}
)
print(response.status_code)
print(response.text)<?php
$ch = curl_init('https://api.relaypoint.example/v1/conversations');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_TOKEN',
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'customer_email' => 'jamie@example.com',
'customer_name' => 'Jamie Kim',
'subject' => 'Can\'t export last month\'s report',
'body' => 'The Export button stays grey on the Reports page.',
'tags' => [
'reports',
],
]),
]);
$response = curl_exec($ch);
if ($response === false) {
exit('Request failed: ' . curl_error($ch) . PHP_EOL);
}
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), PHP_EOL, $response, PHP_EOL;
curl_close($ch);package main
import (
"fmt"
"io"
"net/http"
"strings"
)
func main() {
requestUrl := "https://api.relaypoint.example/v1/conversations"
payload := strings.NewReader(`{
"customer_email": "jamie@example.com",
"customer_name": "Jamie Kim",
"subject": "Can't export last month's report",
"body": "The Export button stays grey on the Reports page.",
"tags": [
"reports"
]
}`)
req, _ := http.NewRequest("POST", requestUrl, payload)
req.Header.Add("Authorization", "Bearer YOUR_TOKEN")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}Response
{
"id": "conv_9q3m2z",
"subject": "Can't export last month's report",
"status": "open",
"channel": "api",
"customer": {
"id": "cus_31ma7q",
"name": "Jamie Kim",
"email": "jamie@example.com"
},
"assignee": null,
"tags": [
"reports"
],
"created_at": "2026-11-27T10:02:41Z"
}Was this page helpful?