List flow versions
curl --request GET \
--url https://api.goyappr.com/agents/{id}/flow/versions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.goyappr.com/agents/{id}/flow/versions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.goyappr.com/agents/{id}/flow/versions', 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.goyappr.com/agents/{id}/flow/versions",
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.goyappr.com/agents/{id}/flow/versions"
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.goyappr.com/agents/{id}/flow/versions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/agents/{id}/flow/versions")
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{
"versions": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content_hash": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by_email": "<string>"
}
],
"next_cursor": "2023-11-07T05:31:56Z"
}Flow Agents
List Flow Versions
Returns the immutable flow-version history for a flow agent, newest first. Each successful save (POST or PATCH that includes flow_config) writes one row, deduplicated by SHA-256 content hash so re-saving an identical graph is a no-op.
GET
/
agents
/
{id}
/
flow
/
versions
List flow versions
curl --request GET \
--url https://api.goyappr.com/agents/{id}/flow/versions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.goyappr.com/agents/{id}/flow/versions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.goyappr.com/agents/{id}/flow/versions', 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.goyappr.com/agents/{id}/flow/versions",
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.goyappr.com/agents/{id}/flow/versions"
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.goyappr.com/agents/{id}/flow/versions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/agents/{id}/flow/versions")
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{
"versions": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content_hash": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by_email": "<string>"
}
],
"next_cursor": "2023-11-07T05:31:56Z"
}Returns the immutable flow-version history for a flow agent. Each successful save (POST or PATCH that includes
flow_config) writes one row, deduplicated by SHA-256 hash so re-saving an identical graph is a no-op rather than a new revision.
Required scope: flows:read.
Use this for:
- Displaying a “version history” panel in your own UI
- Auditing who changed what and when (note: API-key snapshots have
created_by_email = null) - Diffing two saved flows by pulling each version from the corresponding row (full
flow_configis not included in the list — fetch the row directly via Supabase if you need the body, or use the dashboard’s Flow Versions panel)
next_cursor from the previous response to walk further into history.
Errors
| HTTP | Code | When |
|---|---|---|
| 400 | — | cursor is not a valid ISO-8601 timestamp, or limit is outside [1, 100]. |
| 400 | — | Agent in the path is not a flow agent (type is prompt). |
| 404 | — | Agent id does not exist (or is not visible to the calling company). |
Authorizations
Your Yappr API key (e.g. ypr_live_...). Generate one in the dashboard under Settings → API Keys.
Path Parameters
Query Parameters
Required range:
x <= 100ISO 8601 timestamp from a prior next_cursor to page back further in time.