Skip to main content
GET
/
v1
/
pathway
/
{pathway_id}
/
version
/
{version_id}
Get Specific Pathway Version
curl --request GET \
  --url https://api.bland.ai/v1/pathway/{pathway_id}/version/{version_id} \
  --header 'authorization: <authorization>'
{
  "name": "Customer Support Flow v2",
  "nodes": [
    {
      "id": "1",
      "type": "Default",
      "data": {
        "name": "Start",
        "text": "Hello! How can I assist you today?",
        "isStart": true
      }
    },
    {
      "id": "2",
      "type": "End Call",
      "data": {
        "name": "End call",
        "prompt": "Thank you for contacting us. Have a great day!"
      }
    }
  ],
  "edges": [
    {
      "id": "edge-1-2",
      "source": "1",
      "target": "2",
      "label": "Issue resolved"
    }
  ],
  "version_number": 2,
  "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 identifier 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 prompt — Text or prompt associated with the node
    • Other properties specific to the node type
edges
array of objects
Data about all the edges in the pathway version.
  • id — Unique identifier of the edge
  • source — ID of the source node
  • target — ID of the target node
  • 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.
{
  "name": "Customer Support Flow v2",
  "nodes": [
    {
      "id": "1",
      "type": "Default",
      "data": {
        "name": "Start",
        "text": "Hello! How can I assist you today?",
        "isStart": true
      }
    },
    {
      "id": "2",
      "type": "End Call",
      "data": {
        "name": "End call",
        "prompt": "Thank you for contacting us. Have a great day!"
      }
    }
  ],
  "edges": [
    {
      "id": "edge-1-2",
      "source": "1",
      "target": "2",
      "label": "Issue resolved"
    }
  ],
  "version_number": 2,
  "is_latest": true
}
I