import requests
url = "http://localhost:3000/v1/path/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"nodes": [
{
"name": "<string>",
"node_type": "start",
"branches": [],
"pos_x": 123,
"pos_y": 123,
"is_global": false,
"global_condition": "<string>",
"wait_user": false,
"time_before_start": 123
}
],
"description": "<string>",
"global_prompt": "<string>"
}
],
"has_more": true,
"first_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Get all conversational paths for a company.
import requests
url = "http://localhost:3000/v1/path/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"nodes": [
{
"name": "<string>",
"node_type": "start",
"branches": [],
"pos_x": 123,
"pos_y": 123,
"is_global": false,
"global_condition": "<string>",
"wait_user": false,
"time_before_start": 123
}
],
"description": "<string>",
"global_prompt": "<string>"
}
],
"has_more": true,
"first_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
1 <= x <= 50asc, desc Successful Response
Mostrar atributos secundarios
Unique identifier for the path
The name of the path
The nodes in the path
Defines a start node with all its properties.
Mostrar atributos secundarios
"start"The description of the path
The global prompt for the path