Skip to main content
POST
/
v1
/
pathway
/
{pathway_id}
/
version
Create Pathway Version
curl --request POST \
  --url https://app.luly.ai/api/v1/pathway/{pathway_id}/version \
  --header 'Content-Type: application/json' \
  --header 'authorization: <authorization>' \
  --data '{
  "name": "<string>",
  "nodes": {
    "edges": {}
  },
  "status": "<string>",
  "message": "<string>",
  "data": {
    "created_at": "<string>",
    "id": "<string>",
    "name": "<string>",
    "version_number": 123
  }
}'
{
  "status": "success",
  "pathway_id": "9d404c1b-6a23-4426-953a-a52c392ff8f1"
}

Headers

authorization
string
required
Your API key for authentication.

Path Parameters

pathway_id
string
required
The ID of the pathway for which to create a new version.

Request Body

name
string
required
The name of the new pathway version.
nodes
array of object
required
An array of node objects defining the structure of the pathway.
nodes
object
required
The ID of the pathway.
  • 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 object
required
An array of edge objects defining the connections between nodes.
  • id — Unique identifier of the edge
  • source — ID of the source node
  • target — ID of the target node
  • label — Label for this edge

Response

status
string
The status of the operation (e.g., “success”).
message
string
A message describing the result of the operation.
data
object
created_at
string
The timestamp when the new version was created.
id
string
The unique identifier of the newly created version.
name
string
The name of the newly created version.
version_number
integer
The version number of the newly created version.
{
  "status": "success",
  "pathway_id": "9d404c1b-6a23-4426-953a-a52c392ff8f1"
}

I