Skip to main content
Version: v3

Create Agent

POST 

/agent-studio/agent

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

Request

Version stringrequired

API Version

Available optionsv3
source string
application/json

Bodyrequired

    locationIdstringrequired

    Location ID

    namestring

    Name of the agent

    descriptionstring

    Description of the agent

    agencyIdstring

    Agency ID

    authorIdstring

    Author ID

    authorNamestring

    Author name

    authorEmailstring

    Author email

    statusstringrequired

    Status of the agent

    Available optionsactiveinactivearchived
    versionobjectrequired

    Version data for the agent including nodes, edges, and configuration

    nodesstring[]

    Nodes array (deprecated, prefer using version.nodes)

    edgesstring[]

    Edges array (deprecated, prefer using version.edges)

application/json

Agent created successfully

Schema
    successbooleanrequired

    Success status

    messagestringrequired

    Response message

    agentobjectrequired

    Created agent data with metadata

    versionsarrayrequired

    Created versions array (initial staging version)