Skip to main content
POST
/
agent
/
from-template
Create agent from template
curl --request POST \
  --url https://atoms-api.smallest.ai/api/v1/agent/from-template \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "agentName": "<string>",
  "agentDescription": "<string>",
  "templateId": "<string>"
}'
{
  "status": true,
  "data": "60d0fe4f5311236168a109ca"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
agentName
string
required

Name of the agent

templateId
string
required

ID of the template to use. You can get the list of templates with their description and id from the /agent/template endpoint.

agentDescription
string

Description of the agent

Response

Successful response

status
boolean
Example:

true

data
string

The ID of the created agent

Example:

"60d0fe4f5311236168a109ca"