Skip to main content

aiAgentsList

AiFolderContentWrapper aiAgentsList(subjectId, subjectOwnerId, excludeSubject, tags, withoutTags, quotaFilter, filterValue, sortBy, sortOrder, startIndex, count)

GET /api/2.0/ai/agents

List agents

Lists the portal's AI agent rooms. The query is forwarded unchanged to the DocSpace AI service, so it takes the same paging, sorting and filtering parameters as an ordinary room listing, and the answer is that service's folder-content payload rather than a shape of this API's own. Array and object query values are dropped rather than guessed at, so send flat strings. The profile bound to each agent is not included here - read one agent with GET api/2.0/ai/agents/{id} for that.

Parameters​

NameInTypeDescriptionNotes
subjectIdqueryStringShow only the agent rooms this user takes part in.[optional] [example: 00000000-0000-0000-0000-000000000000]
subjectOwnerIdqueryStringShow only the agent rooms owned by this user.[optional] [example: 00000000-0000-0000-0000-000000000000]
excludeSubjectqueryBooleanInvert the user filter: leave out what subjectId selects instead of keeping it.[optional] [example: false]
tagsqueryStringShow only the agent rooms carrying these tags, comma-separated.[optional] [example: ai,assistant]
withoutTagsqueryBooleanShow only the agent rooms that carry no tags at all.[optional] [example: false]
quotaFilterqueryIntegerFilter by quota kind: 0 for all, 1 for the default quota, 2 for a custom one.[optional] [example: 0]
filterValuequeryStringShow only the agent rooms whose title matches this text.[optional] [example: assistant]
sortByqueryStringField to sort by, for example DateAndTime.[optional] [example: DateAndTime]
sortOrderqueryStringSort direction, ascending or descending.[optional] [example: descending]
startIndexqueryIntegerIndex of the first entry to return; 0 starts at the beginning.[optional] [example: 0]
countqueryIntegerHow many entries to return. The internal service applies its own default.[optional] [example: 25]

Responses​

Status codeDescriptionTypeResponse headers
200The agent rooms, in the DocSpace AI service's folder-content envelope.AiFolderContentWrapper-
401Missing asc_auth_key cookie or Authorization header.AiErrorResponse-
403AI is disabled for this portal, the caller is a guest, or the room named by entityId is one the caller cannot open. Relayed from the DocSpace AI service or the Files API.AiErrorResponse-
500Unhandled failure. The reason is logged server-side and never echoed back.AiErrorResponse-

Return type​

AiFolderContentWrapper

Authorization​

cookieAuth, bearerAuth

HTTP request headers​

  • Content-Type: Not defined
  • Accept: application/json