List Agents
curl --request POST \
--url https://composer.personal.ai/lab/api/v1/op/agent.list \
--header 'Content-Type: <content-type>' \
--header 'x-api-key: <x-api-key>'import requests
url = "https://composer.personal.ai/lab/api/v1/op/agent.list"
headers = {
"x-api-key": "<x-api-key>",
"Content-Type": "<content-type>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'Content-Type': '<content-type>'}
};
fetch('https://composer.personal.ai/lab/api/v1/op/agent.list', 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://composer.personal.ai/lab/api/v1/op/agent.list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Content-Type: <content-type>",
"x-api-key: <x-api-key>"
],
]);
$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://composer.personal.ai/lab/api/v1/op/agent.list"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api-key", "<x-api-key>")
req.Header.Add("Content-Type", "<content-type>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://composer.personal.ai/lab/api/v1/op/agent.list")
.header("x-api-key", "<x-api-key>")
.header("Content-Type", "<content-type>")
.asString();require 'uri'
require 'net/http'
url = URI("https://composer.personal.ai/lab/api/v1/op/agent.list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<x-api-key>'
request["Content-Type"] = '<content-type>'
response = http.request(request)
puts response.read_body{
"agents": [
{}
],
"agents[].template": {}
}Agents & Chat
List Agents
List every assistant in your workspace
POST
/
lab
/
api
/
v1
/
op
/
agent.list
List Agents
curl --request POST \
--url https://composer.personal.ai/lab/api/v1/op/agent.list \
--header 'Content-Type: <content-type>' \
--header 'x-api-key: <x-api-key>'import requests
url = "https://composer.personal.ai/lab/api/v1/op/agent.list"
headers = {
"x-api-key": "<x-api-key>",
"Content-Type": "<content-type>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'Content-Type': '<content-type>'}
};
fetch('https://composer.personal.ai/lab/api/v1/op/agent.list', 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://composer.personal.ai/lab/api/v1/op/agent.list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Content-Type: <content-type>",
"x-api-key: <x-api-key>"
],
]);
$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://composer.personal.ai/lab/api/v1/op/agent.list"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api-key", "<x-api-key>")
req.Header.Add("Content-Type", "<content-type>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://composer.personal.ai/lab/api/v1/op/agent.list")
.header("x-api-key", "<x-api-key>")
.header("Content-Type", "<content-type>")
.asString();require 'uri'
require 'net/http'
url = URI("https://composer.personal.ai/lab/api/v1/op/agent.list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<x-api-key>'
request["Content-Type"] = '<content-type>'
response = http.request(request)
puts response.read_body{
"agents": [
{}
],
"agents[].template": {}
}Overview
Returns every assistant (agent) in the workspace, newest first, including where each one stands against the template it was built from. Operation name:agent.list.
Authorization
Headers
Body
No fields. Send an empty JSON object.Example Request
{}
Response
The assistants, newest first. Each has
id, slug, display_name, config, created_at and template.{ name, version, current_version, behind, onboarding }. behind is true when a template upgrade is waiting. Null for an assistant built from no template.Example Success Response
{
"agents": [
{
"id": "0b6f6f0e-2c1a-4c55-9d2a-6b8f1d1f2a10",
"slug": "my-assistant",
"display_name": "Iris",
"config": {},
"created_at": "2026-11-20T15:04:05Z",
"template": {
"name": "Core Assistant",
"version": 12,
"current_version": 12,
"behind": false,
"onboarding": null
}
}
]
}
Example cURL
cURL
curl --request POST 'https://composer.personal.ai/lab/api/v1/op/agent.list' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <your-api-key>' \
--data '{}'
Error Codes
| Code | Description |
|---|---|
| 400 | The body doesn’t match the fields above, or the operation failed. The response body says why. |
| 401 | Missing or invalid API key |
| 403 | This key isn’t allowed to call this operation |