Add an agent
curl --request POST \
--url https://app.agentcloud.dev/{resourceSlug}/forms/agent/add \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: agent.json' \
--data '{
"_id": "<string>",
"name": "<string>",
"role": "<string>",
"goal": "<string>",
"backstory": "<string>",
"modelId": "<string>",
"verbose": true,
"allowDelegation": true,
"orgId": "<string>",
"teamId": "<string>",
"functionModelId": "<string>",
"toolIds": [
"<string>"
],
"icon": {}
}'import requests
url = "https://app.agentcloud.dev/{resourceSlug}/forms/agent/add"
payload = "{\n \"_id\": \"<string>\",\n \"name\": \"<string>\",\n \"role\": \"<string>\",\n \"goal\": \"<string>\",\n \"backstory\": \"<string>\",\n \"modelId\": \"<string>\",\n \"verbose\": true,\n \"allowDelegation\": true,\n \"orgId\": \"<string>\",\n \"teamId\": \"<string>\",\n \"functionModelId\": \"<string>\",\n \"toolIds\": [\n \"<string>\"\n ],\n \"icon\": {}\n}"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "agent.json"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'agent.json'},
body: '{\n "_id": "<string>",\n "name": "<string>",\n "role": "<string>",\n "goal": "<string>",\n "backstory": "<string>",\n "modelId": "<string>",\n "verbose": true,\n "allowDelegation": true,\n "orgId": "<string>",\n "teamId": "<string>",\n "functionModelId": "<string>",\n "toolIds": [\n "<string>"\n ],\n "icon": {}\n}'
};
fetch('https://app.agentcloud.dev/{resourceSlug}/forms/agent/add', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.agentcloud.dev/{resourceSlug}/forms/agent/add",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\n \"_id\": \"<string>\",\n \"name\": \"<string>\",\n \"role\": \"<string>\",\n \"goal\": \"<string>\",\n \"backstory\": \"<string>\",\n \"modelId\": \"<string>\",\n \"verbose\": true,\n \"allowDelegation\": true,\n \"orgId\": \"<string>\",\n \"teamId\": \"<string>\",\n \"functionModelId\": \"<string>\",\n \"toolIds\": [\n \"<string>\"\n ],\n \"icon\": {}\n}",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: agent.json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.agentcloud.dev/{resourceSlug}/forms/agent/add"
payload := strings.NewReader("{\n \"_id\": \"<string>\",\n \"name\": \"<string>\",\n \"role\": \"<string>\",\n \"goal\": \"<string>\",\n \"backstory\": \"<string>\",\n \"modelId\": \"<string>\",\n \"verbose\": true,\n \"allowDelegation\": true,\n \"orgId\": \"<string>\",\n \"teamId\": \"<string>\",\n \"functionModelId\": \"<string>\",\n \"toolIds\": [\n \"<string>\"\n ],\n \"icon\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "agent.json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.agentcloud.dev/{resourceSlug}/forms/agent/add")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "agent.json")
.body("{\n \"_id\": \"<string>\",\n \"name\": \"<string>\",\n \"role\": \"<string>\",\n \"goal\": \"<string>\",\n \"backstory\": \"<string>\",\n \"modelId\": \"<string>\",\n \"verbose\": true,\n \"allowDelegation\": true,\n \"orgId\": \"<string>\",\n \"teamId\": \"<string>\",\n \"functionModelId\": \"<string>\",\n \"toolIds\": [\n \"<string>\"\n ],\n \"icon\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.agentcloud.dev/{resourceSlug}/forms/agent/add")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'agent.json'
request.body = "{\n \"_id\": \"<string>\",\n \"name\": \"<string>\",\n \"role\": \"<string>\",\n \"goal\": \"<string>\",\n \"backstory\": \"<string>\",\n \"modelId\": \"<string>\",\n \"verbose\": true,\n \"allowDelegation\": true,\n \"orgId\": \"<string>\",\n \"teamId\": \"<string>\",\n \"functionModelId\": \"<string>\",\n \"toolIds\": [\n \"<string>\"\n ],\n \"icon\": {}\n}"
response = http.request(request)
puts response.read_body{
"_id": "<string>",
"redirect": "<string>"
}{
"message": "<string>",
"code": 123
}{
"message": "<string>",
"code": 123
}{
"message": "<string>",
"code": 123
}Agents
Add an agent
Add a new Agent
POST
/
{resourceSlug}
/
forms
/
agent
/
add
Add an agent
curl --request POST \
--url https://app.agentcloud.dev/{resourceSlug}/forms/agent/add \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: agent.json' \
--data '{
"_id": "<string>",
"name": "<string>",
"role": "<string>",
"goal": "<string>",
"backstory": "<string>",
"modelId": "<string>",
"verbose": true,
"allowDelegation": true,
"orgId": "<string>",
"teamId": "<string>",
"functionModelId": "<string>",
"toolIds": [
"<string>"
],
"icon": {}
}'import requests
url = "https://app.agentcloud.dev/{resourceSlug}/forms/agent/add"
payload = "{\n \"_id\": \"<string>\",\n \"name\": \"<string>\",\n \"role\": \"<string>\",\n \"goal\": \"<string>\",\n \"backstory\": \"<string>\",\n \"modelId\": \"<string>\",\n \"verbose\": true,\n \"allowDelegation\": true,\n \"orgId\": \"<string>\",\n \"teamId\": \"<string>\",\n \"functionModelId\": \"<string>\",\n \"toolIds\": [\n \"<string>\"\n ],\n \"icon\": {}\n}"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "agent.json"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'agent.json'},
body: '{\n "_id": "<string>",\n "name": "<string>",\n "role": "<string>",\n "goal": "<string>",\n "backstory": "<string>",\n "modelId": "<string>",\n "verbose": true,\n "allowDelegation": true,\n "orgId": "<string>",\n "teamId": "<string>",\n "functionModelId": "<string>",\n "toolIds": [\n "<string>"\n ],\n "icon": {}\n}'
};
fetch('https://app.agentcloud.dev/{resourceSlug}/forms/agent/add', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.agentcloud.dev/{resourceSlug}/forms/agent/add",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\n \"_id\": \"<string>\",\n \"name\": \"<string>\",\n \"role\": \"<string>\",\n \"goal\": \"<string>\",\n \"backstory\": \"<string>\",\n \"modelId\": \"<string>\",\n \"verbose\": true,\n \"allowDelegation\": true,\n \"orgId\": \"<string>\",\n \"teamId\": \"<string>\",\n \"functionModelId\": \"<string>\",\n \"toolIds\": [\n \"<string>\"\n ],\n \"icon\": {}\n}",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: agent.json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.agentcloud.dev/{resourceSlug}/forms/agent/add"
payload := strings.NewReader("{\n \"_id\": \"<string>\",\n \"name\": \"<string>\",\n \"role\": \"<string>\",\n \"goal\": \"<string>\",\n \"backstory\": \"<string>\",\n \"modelId\": \"<string>\",\n \"verbose\": true,\n \"allowDelegation\": true,\n \"orgId\": \"<string>\",\n \"teamId\": \"<string>\",\n \"functionModelId\": \"<string>\",\n \"toolIds\": [\n \"<string>\"\n ],\n \"icon\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "agent.json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.agentcloud.dev/{resourceSlug}/forms/agent/add")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "agent.json")
.body("{\n \"_id\": \"<string>\",\n \"name\": \"<string>\",\n \"role\": \"<string>\",\n \"goal\": \"<string>\",\n \"backstory\": \"<string>\",\n \"modelId\": \"<string>\",\n \"verbose\": true,\n \"allowDelegation\": true,\n \"orgId\": \"<string>\",\n \"teamId\": \"<string>\",\n \"functionModelId\": \"<string>\",\n \"toolIds\": [\n \"<string>\"\n ],\n \"icon\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.agentcloud.dev/{resourceSlug}/forms/agent/add")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'agent.json'
request.body = "{\n \"_id\": \"<string>\",\n \"name\": \"<string>\",\n \"role\": \"<string>\",\n \"goal\": \"<string>\",\n \"backstory\": \"<string>\",\n \"modelId\": \"<string>\",\n \"verbose\": true,\n \"allowDelegation\": true,\n \"orgId\": \"<string>\",\n \"teamId\": \"<string>\",\n \"functionModelId\": \"<string>\",\n \"toolIds\": [\n \"<string>\"\n ],\n \"icon\": {}\n}"
response = http.request(request)
puts response.read_body{
"_id": "<string>",
"redirect": "<string>"
}{
"message": "<string>",
"code": 123
}{
"message": "<string>",
"code": 123
}{
"message": "<string>",
"code": 123
}Authorizations
Path Parameters
Body
agent.json
An agent object used for tasks or apps