Send an event
curl --request POST \
--url https://api.usefrictionless.com/api/v1/events \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"event": "Transfer failed",
"userId": "user_42",
"phone": "+2348012345678",
"properties": {
"amount": "NGN 45,000",
"reference": "TRX_0001",
"reason": "Insufficient funds"
},
"occurredAt": "2026-10-15T09:30:00Z"
}
'import requests
url = "https://api.usefrictionless.com/api/v1/events"
payload = {
"event": "Transfer failed",
"userId": "user_42",
"phone": "+2348012345678",
"properties": {
"amount": "NGN 45,000",
"reference": "TRX_0001",
"reason": "Insufficient funds"
},
"occurredAt": "2026-10-15T09:30:00Z"
}
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({
event: 'Transfer failed',
userId: 'user_42',
phone: '+2348012345678',
properties: {amount: 'NGN 45,000', reference: 'TRX_0001', reason: 'Insufficient funds'},
occurredAt: '2026-10-15T09:30:00Z'
})
};
fetch('https://api.usefrictionless.com/api/v1/events', 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.usefrictionless.com/api/v1/events",
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([
'event' => 'Transfer failed',
'userId' => 'user_42',
'phone' => '+2348012345678',
'properties' => [
'amount' => 'NGN 45,000',
'reference' => 'TRX_0001',
'reason' => 'Insufficient funds'
],
'occurredAt' => '2026-10-15T09:30:00Z'
]),
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.usefrictionless.com/api/v1/events"
payload := strings.NewReader("{\n \"event\": \"Transfer failed\",\n \"userId\": \"user_42\",\n \"phone\": \"+2348012345678\",\n \"properties\": {\n \"amount\": \"NGN 45,000\",\n \"reference\": \"TRX_0001\",\n \"reason\": \"Insufficient funds\"\n },\n \"occurredAt\": \"2026-10-15T09:30:00Z\"\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.usefrictionless.com/api/v1/events")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"event\": \"Transfer failed\",\n \"userId\": \"user_42\",\n \"phone\": \"+2348012345678\",\n \"properties\": {\n \"amount\": \"NGN 45,000\",\n \"reference\": \"TRX_0001\",\n \"reason\": \"Insufficient funds\"\n },\n \"occurredAt\": \"2026-10-15T09:30:00Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usefrictionless.com/api/v1/events")
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 \"event\": \"Transfer failed\",\n \"userId\": \"user_42\",\n \"phone\": \"+2348012345678\",\n \"properties\": {\n \"amount\": \"NGN 45,000\",\n \"reference\": \"TRX_0001\",\n \"reason\": \"Insufficient funds\"\n },\n \"occurredAt\": \"2026-10-15T09:30:00Z\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3f6c1b2e-8a4d-4c1e-9b7a-2d5e6f708192",
"event": "Transfer failed",
"level": "problem",
"occurredAt": "2026-10-15T09:30:00Z",
"postedToConversations": 1
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Events
Send an event
Something that happened to a contact. It goes on the customer’s timeline, and as a card in any chat with them from the last 24 hours. Send a userId, a phone, or both.
POST
/
events
Send an event
curl --request POST \
--url https://api.usefrictionless.com/api/v1/events \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"event": "Transfer failed",
"userId": "user_42",
"phone": "+2348012345678",
"properties": {
"amount": "NGN 45,000",
"reference": "TRX_0001",
"reason": "Insufficient funds"
},
"occurredAt": "2026-10-15T09:30:00Z"
}
'import requests
url = "https://api.usefrictionless.com/api/v1/events"
payload = {
"event": "Transfer failed",
"userId": "user_42",
"phone": "+2348012345678",
"properties": {
"amount": "NGN 45,000",
"reference": "TRX_0001",
"reason": "Insufficient funds"
},
"occurredAt": "2026-10-15T09:30:00Z"
}
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({
event: 'Transfer failed',
userId: 'user_42',
phone: '+2348012345678',
properties: {amount: 'NGN 45,000', reference: 'TRX_0001', reason: 'Insufficient funds'},
occurredAt: '2026-10-15T09:30:00Z'
})
};
fetch('https://api.usefrictionless.com/api/v1/events', 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.usefrictionless.com/api/v1/events",
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([
'event' => 'Transfer failed',
'userId' => 'user_42',
'phone' => '+2348012345678',
'properties' => [
'amount' => 'NGN 45,000',
'reference' => 'TRX_0001',
'reason' => 'Insufficient funds'
],
'occurredAt' => '2026-10-15T09:30:00Z'
]),
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.usefrictionless.com/api/v1/events"
payload := strings.NewReader("{\n \"event\": \"Transfer failed\",\n \"userId\": \"user_42\",\n \"phone\": \"+2348012345678\",\n \"properties\": {\n \"amount\": \"NGN 45,000\",\n \"reference\": \"TRX_0001\",\n \"reason\": \"Insufficient funds\"\n },\n \"occurredAt\": \"2026-10-15T09:30:00Z\"\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.usefrictionless.com/api/v1/events")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"event\": \"Transfer failed\",\n \"userId\": \"user_42\",\n \"phone\": \"+2348012345678\",\n \"properties\": {\n \"amount\": \"NGN 45,000\",\n \"reference\": \"TRX_0001\",\n \"reason\": \"Insufficient funds\"\n },\n \"occurredAt\": \"2026-10-15T09:30:00Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usefrictionless.com/api/v1/events")
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 \"event\": \"Transfer failed\",\n \"userId\": \"user_42\",\n \"phone\": \"+2348012345678\",\n \"properties\": {\n \"amount\": \"NGN 45,000\",\n \"reference\": \"TRX_0001\",\n \"reason\": \"Insufficient funds\"\n },\n \"occurredAt\": \"2026-10-15T09:30:00Z\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3f6c1b2e-8a4d-4c1e-9b7a-2d5e6f708192",
"event": "Transfer failed",
"level": "problem",
"occurredAt": "2026-10-15T09:30:00Z",
"postedToConversations": 1
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Authorizations
Your API key (fk_live_…) from Settings → Developers.
Body
application/json
Maximum string length:
120Example:
"Transfer failed"
Your own user ID. Saved even before they ever chat, and creates the contact if needed.
Example:
"user_42"
For someone already chatting on WhatsApp. 7 to 15 digits with the country code.
Example:
"+2348012345678"
Up to 20. amount and reference get their own rows on the card.
Show child attributes
Show child attributes
Example:
{
"amount": "NGN 45,000",
"reference": "TRX_0001",
"reason": "Insufficient funds"
}
"problem" puts the event at the top of the agent's panel in red. Leave it out and words like failed, declined or rejected in the name make it a problem.
Available options:
problem, info Defaults to now. Can't be in the future.
Example:
"2026-10-15T09:30:00Z"

