POST
/
{resourceSlug}
/
forms
/
agent
/
add
curl --request POST \
  --url https://app.agentcloud.dev/{resourceSlug}/forms/agent/add \
  --header 'Content-Type: agent.json' \
  --data '{
  "_id": "<string>",
  "orgId": "<string>",
  "teamId": "<string>",
  "name": "<string>",
  "role": "<string>",
  "goal": "<string>",
  "backstory": "<string>",
  "modelId": "<string>",
  "functionModelId": "<string>",
  "verbose": true,
  "allowDelegation": true,
  "toolIds": [
    "<string>"
  ],
  "icon": {}
}'
{
  "_id": "<string>",
  "redirect": "<string>"
}

Path Parameters

resourceSlug
string
required

The resourceSlug is a url parameter of the teamId associated with the user

Body

agent.json

An agent object used for tasks or apps

Response

302
dynamicResponse

Successful operation, redirect to '/{resourceSlug}/agents'.

Server response after successsfully adding a new object