Skip to main content
Creates a new agent with staging version. The agent will be created with an initial staging version that can later be promoted to production.

Autorización

string
required
Bearer token generado desde el portal Leadway. Ver Autenticación.
string
default:"2021-07-28"
required
Versión de la API.

Query parameters

string
default:"api"

Body

string
default:"C2QujeCh8ZnC7al2InWR"
required
Account ID
string
default:"Customer Support Agent"
Name of the agent
string
Description of the agent
string
default:"gjL2sFNXJfJYa3d2OYSN"
Agency ID
string
default:"usr_abc123def456"
Author ID
string
default:"John Doe"
Author name
string
default:"john@example.com"
Author email
string
default:"active"
required
Status of the agent Posibles valores: ‘active’, ‘inactive’, ‘archived’
object
required
Version data for the agent including nodes, edges, and configuration
string[]
Nodes array (deprecated, prefer using version.nodes)
string[]
Edges array (deprecated, prefer using version.edges)

Respuestas

boolean
default:"True"
required
Success status
string
required
Response message
object
required
Created agent data with metadata
object[]
required
Created versions array (initial staging version)
number
default:"500"
string
default:"Internal Server Error"

Ejemplo