Get All Agents
Agent
Get All Agents
Retrieve all AI agents configured in your organization
GET
Get All Agents
Documentation Index
Fetch the complete documentation index at: https://docs.unpod.dev/llms.txt
Use this file to discover all available pages before exploring further.
Get All Agents
Retrieve detailed information for all registered AI agents in your organization, helping you view and manage agent records within the system.Prerequisites: Make sure you have your API Token and Org-Handle ready. See Authentication for details.
Headers
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | API Key format: Token <token> |
| Org-Handle | string | Yes | Organization domain handle |
You can get the
Org-Handle by hitting the Get All Organizations API. The domain_handle field in the response is your Org-Handle.Response Fields
| Field | Type | Description |
|---|---|---|
| count | integer | Total number of agents |
| status_code | integer | HTTP status code |
| message | string | Response message |
| data | array | Array of agent objects |
Agent Object Fields
| Field | Type | Description |
|---|---|---|
| handle | string | Unique agent handle/identifier |
| name | string | Agent display name |
| type | string | Agent type: Voice, Chat, etc. |
| state | string | Agent state: published, draft, archived |
| purpose | string | Agent purpose/use case description |
Common Error Codes
| Status Code | Description |
|---|---|
| 200 | Success - Request completed successfully |
| 400 | Bad Request - Invalid parameters provided |
| 401 | Unauthorized - Invalid or missing API token |
| 403 | Forbidden - Access denied to the resource |
| 404 | Not Found - Organization not found |
| 500 | Internal Server Error - Server-side error |
Code Examples
Best Practices
- Agent Handle: Note the
handlefield — it is used as theagent_handlepath parameter in other agent endpoints - State Filtering: Filter by
statein your application to show onlypublishedagents - Org-Handle: Always include the correct organization handle in requests
- Error Handling: Always handle potential errors and edge cases
- Security: Keep API tokens secure and rotate them regularly