Skip to main content
GET
/
v1
/
pathway
/
{pathway_id}
/
version
/
{version_id}
Get Specific Pathway Version
curl --request GET \
  --url https://app.luly.ai/api/v1/pathway/{pathway_id}/version/{version_id} \
  --header 'authorization: <authorization>'
import requests

url = "https://app.luly.ai/api/v1/pathway/{pathway_id}/version/{version_id}"

headers = {"authorization": "<authorization>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {authorization: '<authorization>'}};

fetch('https://app.luly.ai/api/v1/pathway/{pathway_id}/version/{version_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://app.luly.ai/api/v1/pathway/{pathway_id}/version/{version_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: <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://app.luly.ai/api/v1/pathway/{pathway_id}/version/{version_id}"

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://app.luly.ai/api/v1/pathway/{pathway_id}/version/{version_id}")
.header("authorization", "<authorization>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://app.luly.ai/api/v1/pathway/{pathway_id}/version/{version_id}")

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
{
  "name": "<string>",
  "nodes": {},
  "edges": {},
  "version_number": 123,
  "is_latest": true
}

Headers

authorization
string
required
Your API key for authentication.

Path Parameters

pathway_id
string
required
The ID of the pathway.
version_id
string
required
The ID of the version to retrieve. Use 0 for the live pathway.

Response

name
string
The name of the pathway version.
nodes
array of objects
Data about all the nodes in the pathway version.
  • id —Unique indentifier of the node
  • type — Type of the node (e.g., “Default”, “End Call”, “Webhook”)
  • data — Object containing node-specific data
    • name — Name of the node
    • text or propmt — Text or prompt associated with the node
    • Other properties specific to the node type
edges
array of object
Data about all the edges in the pathway version.
  • id —Unique indentifier of the edge
  • source — Type of the node (e.g., “Default”, “End Call”, “Webhook”)
  • target — Object containing node-specific data
  • label —Label for this edge
version_number
integer
The version number of this pathway version.
is_latest
boolean
Indicates whether this is the latest version of the pathway.