List agents
curl --request GET \
--url https://api.smith.langchain.com/v1/deepagents/agents \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.smith.langchain.com/v1/deepagents/agents"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.smith.langchain.com/v1/deepagents/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.smith.langchain.com/v1/deepagents/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 => [
"X-Api-Key: <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://api.smith.langchain.com/v1/deepagents/agents"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.smith.langchain.com/v1/deepagents/agents")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.smith.langchain.com/v1/deepagents/agents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"permissions": {
"identity": "personal",
"visibility": "tenant",
"tenant_access_level": "read",
"shared_users": {
"read": [
"<string>"
],
"run": [
"<string>"
],
"update": [
"<string>"
]
}
},
"runtime": {
"model": {
"model_id": "openai:gpt-5.5"
}
},
"extras": {},
"is_owner": true,
"backend": {
"type": "state",
"sandbox_config": {
"scope": "thread",
"snapshot_id": "550e8400-e29b-41d4-a716-446655440000",
"policy_ids": [
"<string>"
],
"idle_ttl_seconds": 600,
"delete_after_stop_seconds": 1200
}
}
}
],
"next_cursor": "<string>"
}
List agents
Return Managed Deep Agents owned by the authenticated user. System-created default agents are excluded.
GET
/
agents
List agents
curl --request GET \
--url https://api.smith.langchain.com/v1/deepagents/agents \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.smith.langchain.com/v1/deepagents/agents"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.smith.langchain.com/v1/deepagents/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.smith.langchain.com/v1/deepagents/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 => [
"X-Api-Key: <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://api.smith.langchain.com/v1/deepagents/agents"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.smith.langchain.com/v1/deepagents/agents")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.smith.langchain.com/v1/deepagents/agents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"permissions": {
"identity": "personal",
"visibility": "tenant",
"tenant_access_level": "read",
"shared_users": {
"read": [
"<string>"
],
"run": [
"<string>"
],
"update": [
"<string>"
]
}
},
"runtime": {
"model": {
"model_id": "openai:gpt-5.5"
}
},
"extras": {},
"is_owner": true,
"backend": {
"type": "state",
"sandbox_config": {
"scope": "thread",
"snapshot_id": "550e8400-e29b-41d4-a716-446655440000",
"policy_ids": [
"<string>"
],
"idle_ttl_seconds": 600,
"delete_after_stop_seconds": 1200
}
}
}
],
"next_cursor": "<string>"
}
Authorizations
Query Parameters
Items per page. Defaults to 20. Maximum is 100.
Required range:
1 <= x <= 100Opaque pagination cursor from a previous response.
Substring filter on agent name.
Field to sort by.
Available options:
created_at, updated_at, name Sort order.
Available options:
asc, desc Was this page helpful?
⌘I

