Get a flow
curl --request GET \
--url https://platform.tolt.dev/v2/flows/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://platform.tolt.dev/v2/flows/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.tolt.dev/v2/flows/{id}', 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://platform.tolt.dev/v2/flows/{id}",
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://platform.tolt.dev/v2/flows/{id}"
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://platform.tolt.dev/v2/flows/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform.tolt.dev/v2/flows/{id}")
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{
"success": true,
"message": "Successfully fetched flow",
"data": {
"id": "flw_fAyK6FQ6EZngabgw8JifzQgN",
"name": "Standard commission",
"description": "Earn 20% on the first payment",
"event": "transaction_created",
"action_type": "generate_commission",
"action": {
"type": "percentage",
"value": 20
},
"conditions": {
"kind": "group",
"operator": "AND",
"children": [
{
"kind": "condition",
"type": "customer_transaction_count",
"operator": "equals",
"value": "1"
}
]
},
"program_id": "prg_T6z8aRW3XCmvFWP972RKxpAd",
"group_id": "grp_zUQ8Pt281MsbNDApmDPN3Y2a",
"campaign_id": null,
"active": true,
"partner_overrides": [],
"link_overrides": [],
"options": {
"auto_approval": {
"type": "immediate",
"delay_days": 0
},
"product_limits": {
"enabled": false,
"default_limit": 1,
"product_id_overrides": []
},
"prorate_yearly_subscription": {
"enabled": false,
"period": "none"
}
},
"created_at": "2026-10-01T12:00:00Z",
"updated_at": "2026-10-01T12:00:00Z"
}
}{
"success": false,
"message": "Unauthorized",
"code": "unauthorized",
"doc_url": "https://docs.tolt.com/errors#unauthorized"
}{
"success": false,
"message": "Flow not found",
"code": "not_found",
"doc_url": "https://docs.tolt.com/errors#not_found"
}{
"success": false,
"message": "Request body exceeds 1 MB",
"code": "payload_too_large",
"doc_url": "https://docs.tolt.com/errors#payload_too_large"
}{
"success": false,
"message": "Too many requests. Retry after the window resets.",
"code": "rate_limited",
"doc_url": "https://docs.tolt.com/errors#rate_limited"
}Flows
Get a flow
Gets a flow by ID, with the event it runs on, its conditions and its action: a commission to generate or a group to move the partner to.
GET
/
v2
/
flows
/
{id}
Get a flow
curl --request GET \
--url https://platform.tolt.dev/v2/flows/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://platform.tolt.dev/v2/flows/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.tolt.dev/v2/flows/{id}', 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://platform.tolt.dev/v2/flows/{id}",
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://platform.tolt.dev/v2/flows/{id}"
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://platform.tolt.dev/v2/flows/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform.tolt.dev/v2/flows/{id}")
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{
"success": true,
"message": "Successfully fetched flow",
"data": {
"id": "flw_fAyK6FQ6EZngabgw8JifzQgN",
"name": "Standard commission",
"description": "Earn 20% on the first payment",
"event": "transaction_created",
"action_type": "generate_commission",
"action": {
"type": "percentage",
"value": 20
},
"conditions": {
"kind": "group",
"operator": "AND",
"children": [
{
"kind": "condition",
"type": "customer_transaction_count",
"operator": "equals",
"value": "1"
}
]
},
"program_id": "prg_T6z8aRW3XCmvFWP972RKxpAd",
"group_id": "grp_zUQ8Pt281MsbNDApmDPN3Y2a",
"campaign_id": null,
"active": true,
"partner_overrides": [],
"link_overrides": [],
"options": {
"auto_approval": {
"type": "immediate",
"delay_days": 0
},
"product_limits": {
"enabled": false,
"default_limit": 1,
"product_id_overrides": []
},
"prorate_yearly_subscription": {
"enabled": false,
"period": "none"
}
},
"created_at": "2026-10-01T12:00:00Z",
"updated_at": "2026-10-01T12:00:00Z"
}
}{
"success": false,
"message": "Unauthorized",
"code": "unauthorized",
"doc_url": "https://docs.tolt.com/errors#unauthorized"
}{
"success": false,
"message": "Flow not found",
"code": "not_found",
"doc_url": "https://docs.tolt.com/errors#not_found"
}{
"success": false,
"message": "Request body exceeds 1 MB",
"code": "payload_too_large",
"doc_url": "https://docs.tolt.com/errors#payload_too_large"
}{
"success": false,
"message": "Too many requests. Retry after the window resets.",
"code": "rate_limited",
"doc_url": "https://docs.tolt.com/errors#rate_limited"
}Authorizations
Tolt API key sent as a bearer token.
Path Parameters
Example:
"flw_fAyK6FQ6EZngabgw8JifzQgN"

