curl --request POST \
--url https://api.atako.ai/agents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"image": "<string>",
"systemPrompt": "<string>",
"clientContext": "<string>",
"modelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"harnessId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"teamId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"modelConfig": {
"vision": "<string>",
"low_effort": "<string>",
"medium_effort": "<string>",
"high_effort": "<string>"
},
"llmKeyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://api.atako.ai/agents"
payload = {
"name": "<string>",
"image": "<string>",
"systemPrompt": "<string>",
"clientContext": "<string>",
"modelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"harnessId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"teamId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"modelConfig": {
"vision": "<string>",
"low_effort": "<string>",
"medium_effort": "<string>",
"high_effort": "<string>"
},
"llmKeyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
image: '<string>',
systemPrompt: '<string>',
clientContext: '<string>',
modelId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
harnessId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
teamId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
modelConfig: {
vision: '<string>',
low_effort: '<string>',
medium_effort: '<string>',
high_effort: '<string>'
},
llmKeyId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://api.atako.ai/agents', 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://api.atako.ai/agents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'image' => '<string>',
'systemPrompt' => '<string>',
'clientContext' => '<string>',
'modelId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'harnessId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'teamId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'modelConfig' => [
'vision' => '<string>',
'low_effort' => '<string>',
'medium_effort' => '<string>',
'high_effort' => '<string>'
],
'llmKeyId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/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://api.atako.ai/agents"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"image\": \"<string>\",\n \"systemPrompt\": \"<string>\",\n \"clientContext\": \"<string>\",\n \"modelId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"harnessId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"teamId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"modelConfig\": {\n \"vision\": \"<string>\",\n \"low_effort\": \"<string>\",\n \"medium_effort\": \"<string>\",\n \"high_effort\": \"<string>\"\n },\n \"llmKeyId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/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://api.atako.ai/agents")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"image\": \"<string>\",\n \"systemPrompt\": \"<string>\",\n \"clientContext\": \"<string>\",\n \"modelId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"harnessId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"teamId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"modelConfig\": {\n \"vision\": \"<string>\",\n \"low_effort\": \"<string>\",\n \"medium_effort\": \"<string>\",\n \"high_effort\": \"<string>\"\n },\n \"llmKeyId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.atako.ai/agents")
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"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"image\": \"<string>\",\n \"systemPrompt\": \"<string>\",\n \"clientContext\": \"<string>\",\n \"modelId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"harnessId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"teamId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"modelConfig\": {\n \"vision\": \"<string>\",\n \"low_effort\": \"<string>\",\n \"medium_effort\": \"<string>\",\n \"high_effort\": \"<string>\"\n },\n \"llmKeyId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"clientId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"image": "<string>",
"engine": "openclaw",
"status": "active",
"startDate": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"teamId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"systemPrompt": "<string>",
"modelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"directModelId": "<string>",
"modelConfig": {
"vision": "<string>",
"low_effort": "<string>",
"medium_effort": "<string>",
"high_effort": "<string>"
},
"llmKeyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"harnessId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agentAuthTokenHash": "<string>",
"agentAuthIssuedAt": "2023-11-07T05:31:56Z",
"agentAuthLastUsedAt": "2023-11-07T05:31:56Z",
"activatedAt": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"lastHeartbeatAt": "2023-11-07T05:31:56Z",
"lastReadAt": "2023-11-07T05:31:56Z",
"engineVersion": "<string>",
"engineImage": "<string>",
"engineRequestedVersion": "<string>",
"upgradingAt": "2023-11-07T05:31:56Z",
"upgradeRequestedAt": "2023-11-07T05:31:56Z",
"upgradeStatus": "requested",
"upgradeError": "<string>",
"provisioningError": "<string>",
"pausedAt": "2023-11-07T05:31:56Z",
"pausedReason": "<string>",
"clientContext": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Create an agent
Requires an active subscription and canCreateAgents permission. Guards, checked in order: AGENT_CREATION_NOT_ALLOWED (403), AGENT_LIMIT_REACHED (403), NO_ACTIVE_SUBSCRIPTION (402), MODEL_NOT_FOUND/HARNESS_NOT_FOUND (400), CLIENT_NOT_FOUND (404).
curl --request POST \
--url https://api.atako.ai/agents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"image": "<string>",
"systemPrompt": "<string>",
"clientContext": "<string>",
"modelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"harnessId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"teamId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"modelConfig": {
"vision": "<string>",
"low_effort": "<string>",
"medium_effort": "<string>",
"high_effort": "<string>"
},
"llmKeyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://api.atako.ai/agents"
payload = {
"name": "<string>",
"image": "<string>",
"systemPrompt": "<string>",
"clientContext": "<string>",
"modelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"harnessId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"teamId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"modelConfig": {
"vision": "<string>",
"low_effort": "<string>",
"medium_effort": "<string>",
"high_effort": "<string>"
},
"llmKeyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
image: '<string>',
systemPrompt: '<string>',
clientContext: '<string>',
modelId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
harnessId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
teamId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
modelConfig: {
vision: '<string>',
low_effort: '<string>',
medium_effort: '<string>',
high_effort: '<string>'
},
llmKeyId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://api.atako.ai/agents', 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://api.atako.ai/agents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'image' => '<string>',
'systemPrompt' => '<string>',
'clientContext' => '<string>',
'modelId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'harnessId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'teamId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'modelConfig' => [
'vision' => '<string>',
'low_effort' => '<string>',
'medium_effort' => '<string>',
'high_effort' => '<string>'
],
'llmKeyId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/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://api.atako.ai/agents"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"image\": \"<string>\",\n \"systemPrompt\": \"<string>\",\n \"clientContext\": \"<string>\",\n \"modelId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"harnessId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"teamId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"modelConfig\": {\n \"vision\": \"<string>\",\n \"low_effort\": \"<string>\",\n \"medium_effort\": \"<string>\",\n \"high_effort\": \"<string>\"\n },\n \"llmKeyId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/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://api.atako.ai/agents")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"image\": \"<string>\",\n \"systemPrompt\": \"<string>\",\n \"clientContext\": \"<string>\",\n \"modelId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"harnessId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"teamId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"modelConfig\": {\n \"vision\": \"<string>\",\n \"low_effort\": \"<string>\",\n \"medium_effort\": \"<string>\",\n \"high_effort\": \"<string>\"\n },\n \"llmKeyId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.atako.ai/agents")
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"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"image\": \"<string>\",\n \"systemPrompt\": \"<string>\",\n \"clientContext\": \"<string>\",\n \"modelId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"harnessId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"teamId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"modelConfig\": {\n \"vision\": \"<string>\",\n \"low_effort\": \"<string>\",\n \"medium_effort\": \"<string>\",\n \"high_effort\": \"<string>\"\n },\n \"llmKeyId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"clientId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"image": "<string>",
"engine": "openclaw",
"status": "active",
"startDate": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"teamId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"systemPrompt": "<string>",
"modelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"directModelId": "<string>",
"modelConfig": {
"vision": "<string>",
"low_effort": "<string>",
"medium_effort": "<string>",
"high_effort": "<string>"
},
"llmKeyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"harnessId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agentAuthTokenHash": "<string>",
"agentAuthIssuedAt": "2023-11-07T05:31:56Z",
"agentAuthLastUsedAt": "2023-11-07T05:31:56Z",
"activatedAt": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"lastHeartbeatAt": "2023-11-07T05:31:56Z",
"lastReadAt": "2023-11-07T05:31:56Z",
"engineVersion": "<string>",
"engineImage": "<string>",
"engineRequestedVersion": "<string>",
"upgradingAt": "2023-11-07T05:31:56Z",
"upgradeRequestedAt": "2023-11-07T05:31:56Z",
"upgradeStatus": "requested",
"upgradeError": "<string>",
"provisioningError": "<string>",
"pausedAt": "2023-11-07T05:31:56Z",
"pausedReason": "<string>",
"clientContext": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Authorizations
An aik_… programmatic API key (app.atako.ai → Settings → API keys) or a Supabase session JWT.
Body
1PNG filename under apps/web/public/aiygents/.
Free-text agent instructions, trimmed.
Free-text per-agent business context, trimmed.
From GET /models. Omitted → admin-declared default model.
From GET /harnesses.
Assigns the agent to a shared team instead of keeping it personal.
Per-task-type model overrides, forwarded to the orchestrator webhook.
Show child attributes
Show child attributes
Defaults to openclaw.
openclaw, hermes BYOK: id of a company LLM provider key (see docs — BYOK key management is not part of this customer API cut).
Response
The created agent (raw row).
The raw agents table row, returned verbatim by POST /agents (201) and POST /agents/{id}/end (200, under .session). Every column, including several operational/internal fields not otherwise exposed.
openclaw, hermes active, completed, paused, provisioning, unresponsive, failed Per-task-type model overrides.
Show child attributes
Show child attributes
Set for a BYOK agent (company LLM provider key); null for the platform key.
requested, running, succeeded, failed Per-agent "contexte business" free text.