Get alert
curl --request GET \
--url https://api.formo.so/v0/alerts/{alertId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.formo.so/v0/alerts/{alertId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.formo.so/v0/alerts/{alertId}', 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.formo.so/v0/alerts/{alertId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.formo.so/v0/alerts/{alertId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.formo.so/v0/alerts/{alertId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.formo.so/v0/alerts/{alertId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "alrt_4f8e2c1a9b3d4e5f",
"project_id": "proj_abc123",
"name": "Daily revenue drop",
"trigger_type": "event",
"status": "active",
"trigger_filters": [
{
"name": "event",
"operator": "equals",
"value": "transaction"
},
{
"name": "revenue",
"operator": "less_than",
"value": "1000",
"numericThreshold": "sum"
}
],
"recipient": [
{
"type": "email",
"value": [
"alerts@myapp.com"
]
},
{
"type": "slack",
"value": [
"C0123456789"
]
}
],
"has_secret": false,
"created_at": "2026-04-12T09:32:18.000Z",
"updated_at": "2026-04-25T14:01:55.000Z"
}Alerts API
Get Alert
Retrieve a single alert by ID. Returns the alert name, trigger conditions, notification channel, and status.
GET
/
v0
/
alerts
/
{alertId}
Get alert
curl --request GET \
--url https://api.formo.so/v0/alerts/{alertId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.formo.so/v0/alerts/{alertId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.formo.so/v0/alerts/{alertId}', 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.formo.so/v0/alerts/{alertId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.formo.so/v0/alerts/{alertId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.formo.so/v0/alerts/{alertId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.formo.so/v0/alerts/{alertId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "alrt_4f8e2c1a9b3d4e5f",
"project_id": "proj_abc123",
"name": "Daily revenue drop",
"trigger_type": "event",
"status": "active",
"trigger_filters": [
{
"name": "event",
"operator": "equals",
"value": "transaction"
},
{
"name": "revenue",
"operator": "less_than",
"value": "1000",
"numericThreshold": "sum"
}
],
"recipient": [
{
"type": "email",
"value": [
"alerts@myapp.com"
]
},
{
"type": "slack",
"value": [
"C0123456789"
]
}
],
"has_secret": false,
"created_at": "2026-04-12T09:32:18.000Z",
"updated_at": "2026-04-25T14:01:55.000Z"
}Authorizations
Workspace API key (e.g. formo_xxx). Create one in the Formo dashboard under Team Settings > API Keys.
Path Parameters
Response
200 - application/json
Alert details
Available options:
event, user Available options:
active, inactive Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I