List Agents
List and filter agents available to the API key organization.
Returns agents scoped to your API key's organization, sorted by creation time from newest to oldest.
Use workspace_id to restrict the result to one workspace and name to search agent names. When both are supplied, an agent must match both filters.
Request
bash
curl -X GET "https://api.mosaic.so/agents?limit=25" \
-H "Authorization: Bearer mk_your_api_key"Query Parameters
| Field | Type | Required | Description |
|---|---|---|---|
limit | number | No | Page size (1-100, default 25). |
cursor | string (date-time) | No | Pagination cursor from next_cursor. Keep the same filters when requesting the next page. |
workspace_id | string (uuid) | No | Return agents from this workspace. The workspace must belong to the API key's organization. |
name | string | No | Case-insensitive substring search on the agent name. Maximum 200 characters. % and _ are treated literally. |
Filtered Request
bash
curl -X GET "https://api.mosaic.so/agents?workspace_id=0cc9d563-60ae-499f-98f6-96f3aafe1474&name=YouTube&limit=100" \
-H "Authorization: Bearer mk_your_api_key"This returns agents in the requested workspace whose names contain YouTube, regardless of capitalization.
Response
json
{
"agents": [
{
"id": "123e4567-e89b-12d3-a456-789012345678",
"name": "My Agent",
"description": "Weekly YouTube clip automation",
"created_at": "2026-03-01T12:00:00Z",
"updated_at": "2026-03-02T08:00:00Z"
}
],
"next_cursor": null
}When another page is available, next_cursor contains the value to pass as cursor. It is null after the final page.
Errors
| Status | Cause |
|---|---|
400 | workspace_id is not a valid UUID, or name exceeds 200 characters. |
401 | The API key is missing or invalid. |
403 | The API key is not associated with an organization. |
A valid workspace UUID outside the API key's organization returns an empty agents array rather than exposing whether that workspace exists.