Get Pathway Versions
curl --request GET \
--url https://api.bland.ai/v1/pathway/{pathway_id}/versions \
--header 'authorization: <authorization>'import requests
url = "https://api.bland.ai/v1/pathway/{pathway_id}/versions"
headers = {"authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {authorization: '<authorization>'}};
fetch('https://api.bland.ai/v1/pathway/{pathway_id}/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.bland.ai/v1/pathway/{pathway_id}/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: <authorization>"
],
]);
$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.bland.ai/v1/pathway/{pathway_id}/versions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("authorization", "<authorization>")
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.bland.ai/v1/pathway/{pathway_id}/versions")
.header("authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bland.ai/v1/pathway/{pathway_id}/versions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body[
{
"id": "v1_abc123",
"version_number": 1,
"created_at": "2024-03-05T12:00:00Z",
"name": "Initial Version",
"is_latest": false
},
{
"id": "v2_def456",
"version_number": 2,
"created_at": "2024-03-06T14:30:00Z",
"name": "Updated Flow",
"is_latest": true
}
]
Pathway Versions
Get Pathway Versions
Retrieves all versions of a specific pathway, including version number, creation date, name, and latest status.
GET
/
v1
/
pathway
/
{pathway_id}
/
versions
Get Pathway Versions
curl --request GET \
--url https://api.bland.ai/v1/pathway/{pathway_id}/versions \
--header 'authorization: <authorization>'import requests
url = "https://api.bland.ai/v1/pathway/{pathway_id}/versions"
headers = {"authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {authorization: '<authorization>'}};
fetch('https://api.bland.ai/v1/pathway/{pathway_id}/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.bland.ai/v1/pathway/{pathway_id}/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: <authorization>"
],
]);
$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.bland.ai/v1/pathway/{pathway_id}/versions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("authorization", "<authorization>")
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.bland.ai/v1/pathway/{pathway_id}/versions")
.header("authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bland.ai/v1/pathway/{pathway_id}/versions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body[
{
"id": "v1_abc123",
"version_number": 1,
"created_at": "2024-03-05T12:00:00Z",
"name": "Initial Version",
"is_latest": false
},
{
"id": "v2_def456",
"version_number": 2,
"created_at": "2024-03-06T14:30:00Z",
"name": "Updated Flow",
"is_latest": true
}
]
Headers
string
required
Your API key for authentication.
Path Parameters
string
required
The ID of the pathway for which to retrieve versions.
Response
string
The unique identifier of the pathway version.
integer
The version number of this pathway version.
string
The timestamp when this version was created.
string
The name of this pathway version.
boolean
Indicates whether this is the latest version of the pathway.
[
{
"id": "v1_abc123",
"version_number": 1,
"created_at": "2024-03-05T12:00:00Z",
"name": "Initial Version",
"is_latest": false
},
{
"id": "v2_def456",
"version_number": 2,
"created_at": "2024-03-06T14:30:00Z",
"name": "Updated Flow",
"is_latest": true
}
]
Docs for agents: llms.txt
Was this page helpful?
⌘I