curl --request GET \
--url https://www.asteragents.com/api/agents \
--header 'Authorization: Bearer <token>'import requests
url = "https://www.asteragents.com/api/agents"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.asteragents.com/api/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://www.asteragents.com/api/agents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://www.asteragents.com/api/agents"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://www.asteragents.com/api/agents")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.asteragents.com/api/agents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"id": 1,
"name": "Customer Support Agent",
"description": "Handles customer inquiries",
"logoUrl": null,
"conversationStarters": [
"How can I help you today?",
"What issue are you experiencing?"
],
"model": "openai:gpt-4o",
"maxToolRoundtrips": 50,
"systemPrompt": "You are a helpful customer support agent...",
"tools": {},
"mcpServers": null,
"stage": "released",
"showInChat": true,
"emailSlug": "support-bot",
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-20T14:00:00.000Z",
"tags": [
{
"id": 1,
"name": "Production"
}
]
}
]{
"error": "User is not part of any organization"
}{
"error": "Internal Server Error"
}List agents
Retrieve all agents in the authenticated user’s organization.
Returns agents sorted alphabetically by name, with their associated tags.
curl --request GET \
--url https://www.asteragents.com/api/agents \
--header 'Authorization: Bearer <token>'import requests
url = "https://www.asteragents.com/api/agents"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.asteragents.com/api/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://www.asteragents.com/api/agents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://www.asteragents.com/api/agents"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://www.asteragents.com/api/agents")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.asteragents.com/api/agents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"id": 1,
"name": "Customer Support Agent",
"description": "Handles customer inquiries",
"logoUrl": null,
"conversationStarters": [
"How can I help you today?",
"What issue are you experiencing?"
],
"model": "openai:gpt-4o",
"maxToolRoundtrips": 50,
"systemPrompt": "You are a helpful customer support agent...",
"tools": {},
"mcpServers": null,
"stage": "released",
"showInChat": true,
"emailSlug": "support-bot",
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-20T14:00:00.000Z",
"tags": [
{
"id": 1,
"name": "Production"
}
]
}
]{
"error": "User is not part of any organization"
}{
"error": "Internal Server Error"
}Authorizations
JWT token from Clerk authentication.
Must be from a user with org:admin role.
Response
Successfully retrieved agents
Unique agent identifier
1
Agent name
"Customer Support Agent"
Agent lifecycle stage
development, released "development"
Whether the agent appears in the chat interface
true
When the agent was created
"2024-01-15T10:30:00.000Z"
When the agent was last updated
"2024-01-20T14:00:00.000Z"
Short description of the agent's purpose
"Handles customer inquiries and support tickets"
URL to the agent's logo image
Suggested conversation starters shown to users
[
"How can I help you today?",
"What issue are you experiencing?"
]
Model identifier (e.g., openai:gpt-4o)
"openai:gpt-4o"
Maximum number of tool call roundtrips per response
50
System prompt / instructions for the agent
Tool definitions keyed by tool name
Connected MCP server IDs (integer mcp_server.id values)
Custom email slug for the agent's email address
"support-bot"
ID of the agent_version snapshot this agent's config currently
reflects. Every save appends a version and advances this pointer;
see GET /agents/versions. The live agent fields above remain the
source of truth — this is bookkeeping for history and rollback.
42
Tags associated with this agent
Show child attributes
Show child attributes