cURL
curl https://reygrid.com/api/v1/agents \
-H "Authorization: Bearer $REYGRID_API_KEY"from reygrid import ReyGrid
client = ReyGrid(api_key="YOUR_API_KEY")
for agent in client.list_agents().agents:
print(agent.id, agent.name, agent.model)import { ReyGrid } from "reygrid";
const client = new ReyGrid({ apiKey: "YOUR_API_KEY" });
const { agents } = await client.listAgents();
for (const agent of agents) console.log(agent.id, agent.name, agent.model);{
"success": true,
"agents": [
{
"id": {
"AgentId": null
},
"name": "Support",
"model": "gpt-4o-mini-2024-07-18",
"instructions": "Answer customer questions about orders, shipping and refunds.",
"usage": 119.5,
"createdAt": "2026-08-25T00:43:49.979Z"
}
]
}{
"error": "Unauthorized",
"code": "AUTH_REQUIRED"
}Agents
List agents
Returns the agents this API key can use: every agent of the key’s owner, or only the agents the key is restricted to.
GET
/
agents
cURL
curl https://reygrid.com/api/v1/agents \
-H "Authorization: Bearer $REYGRID_API_KEY"from reygrid import ReyGrid
client = ReyGrid(api_key="YOUR_API_KEY")
for agent in client.list_agents().agents:
print(agent.id, agent.name, agent.model)import { ReyGrid } from "reygrid";
const client = new ReyGrid({ apiKey: "YOUR_API_KEY" });
const { agents } = await client.listAgents();
for (const agent of agents) console.log(agent.id, agent.name, agent.model);{
"success": true,
"agents": [
{
"id": {
"AgentId": null
},
"name": "Support",
"model": "gpt-4o-mini-2024-07-18",
"instructions": "Answer customer questions about orders, shipping and refunds.",
"usage": 119.5,
"createdAt": "2026-08-25T00:43:49.979Z"
}
]
}{
"error": "Unauthorized",
"code": "AUTH_REQUIRED"
}