POST
/
api
/
agents
Create a new agent
curl --request POST \
  --url http://localhost:3000/api/agents \
  --header 'Content-Type: application/json' \
  --data '{
  "characterPath": "<string>",
  "characterJson": {}
}'
{
  "success": true,
  "data": {
    "character": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "bio": "<string>",
      "settings": {},
      "system": "<string>",
      "style": {},
      "lore": [
        "<string>"
      ],
      "messageExamples": [
        "<string>"
      ],
      "topics": [
        "<string>"
      ],
      "plugins": [
        "<string>"
      ]
    }
  }
}

Body

application/json

Response

201
application/json

Agent created successfully

The response is of type object.