Skip to main content
POST
/
agent
/
bytemplate
Create a new Agent from a template
curl --request POST \
  --url https://api.trugen.ai/v1/agent/bytemplate \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "avatar_ids": [
    "1e4ea106",
    "665a1170"
  ],
  "template_id": "76d9ff1d-b1d5-4dee-9b9a-d4c4d58c9c55"
}
'
{
  "id": "51ed8d70-9379-422f-aed4-f9f2b293ba4a",
  "message": "Agent created successfully"
}

Authorizations

x-api-key
string
header
required

Body

application/json
avatar_ids
string[]
required

List of avatar IDs to associate with the new agent

template_id
string<uuid>
required

ID of the template to use for creating the agent

Response

Agent created successfully

id
string<uuid>

ID of the newly created agent

message
string

Confirmation message