List agents
Changed onRetrieve a paginated list of agents available to the authenticated user.
Overview
Returns agents accessible through direct, team, or org-level permissions. Search is performed across agent name, description, and tags. Sorting and pagination are applied by the AI backend and the resulting envelope is forwarded unchanged by the Node gateway.
Gateway contract
The Node route supports only these query params: page, limit, search, sort_by, and sort_order.
The Python backend also understands isDeleted, but this gateway route does not forward it, so it is not part of the public API contract here. Any other query parameter is ignored, not refused.
Request
- Base URLhttps://app.pipeshub.com/api/v1
- URLhttps://app.pipeshub.com/api/v1/agents
- Auth
- HTTP bearer
- or OAuth 2Authorization code: /api/v1/oauth2/authorizeClient credentialsToken URL: /api/v1/oauth2/token scopes: agent:read
Query parameters
1-based page number.
Maximum number of agents to return in the current page.
Case-insensitive search across agent name, description, and tags. Leading/trailing whitespace is trimmed; a blank value is refused with VALIDATION_ERROR, and so is a printf-style format specifier (%s, %x, ...). Markup (HTML tags, javascript:, event handlers) is refused with HTTP_BAD_REQUEST by the sanitizer every route runs.
Backend sort field. Leading/trailing whitespace is trimmed and a blank value is refused. Any other value is accepted. Common value is updatedAtTimestamp.
Sort direction.
Response
Paginated list of accessible agents.
Example response
{
"success": true,
"agents": [
{
"_id": "agentInstances/e6f848ca-e2ab-4594-9925-e1136629f474",
"_key": "e6f848ca-e2ab-4594-9925-e1136629f474",
"_rev": "_lkNlcOm---",
"user_role": "OWNER",
"access_type": "INDIVIDUAL"
}
],
"pagination": {
"currentPage": 1,
"limit": 20,
"totalItems": 2,
"totalPages": 1
}
}Changes
- breaking
added the pattern
\Sto thequeryrequest parametersort_by - breaking
added the pattern
^(?![\s\S]*?(?:(?<!\w)%(?:\d{1,10}\$)?[#0\-+ ]{0,10}(?:\d{1,10})?(?:\.\d{1,10})?(?:h{1,2}|l{1,2}|L|z|j|t)?[nsxXp]|<[^>]{0,10000}>))[\s\S]*?\Sto thequeryrequest parametersearch - breaking
the response property
////became nullable for the status - breaking
the response property
////became nullable for the status - info
added the non-success response with the status
- info
added the non-success response with the status
- breaking
- warning
added the new
docsenum value to the////////response property for the response status - warning
added the new
sheetsenum value to the////////response property for the response status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- warning