List archived conversations for an agent
Changed onPaginated list of the caller's archived conversations for the given agent key. The agentKey is matched against the stored conversations only; the agent itself is not looked up.
The query is strict: a parameter not listed here is refused with 400 (VALIDATION_ERROR on query, "These fields aren't accepted here").
Request
- Base URLhttps://app.pipeshub.com/api/v1
- URLhttps://app.pipeshub.com/api/v1/agents/{agentKey}/conversations/show/archives
- Auth
- HTTP bearer
- or OAuth 2Authorization code: /api/v1/oauth2/authorizeClient credentialsToken URL: /api/v1/oauth2/token scopes: agent:read
Path parameters
Query parameters
1-based page number. A value below 1 or one that is not a number is read as 1; neither is refused.
Page size. A value outside 1..100 or one that is not a number is read as 20; neither is refused.
Sort field. Supported values are createdAt, lastActivityAt and title; any other value is accepted and ignored (the list is then sorted by lastActivityAt).
Sort direction, asc or desc; any other value is accepted and ignored (descending order).
Case-insensitive search over the conversation title and message content. A printf-style format specifier (%s, %x, ...) is refused with VALIDATION_ERROR; markup (HTML tags, javascript:, event handlers) is refused with HTTP_BAD_REQUEST by the sanitizer every route runs.
Inclusive lower bound on createdAt, as an ISO 8601 date or date-time. The validator accepts any string JavaScript Date can parse (so also forms like May 1 2026 or 2026/05/01); one it cannot parse returns HTTP 400. An empty value is read as not sent.
Inclusive upper bound on createdAt, as an ISO 8601 date or date-time. The validator accepts any string JavaScript Date can parse (so also forms like May 1 2026 or 2026/05/01); one it cannot parse returns HTTP 400. An empty value is read as not sent.
Response
Archived conversations for the agent
Changes
- breaking
removed the enum value
ascfrom thequeryrequest parametersortOrder - breaking
removed the enum value
createdAtfrom thequeryrequest parametersortBy - breaking
removed the enum value
descfrom thequeryrequest parametersortOrder - breaking
removed the enum value
lastActivityAtfrom thequeryrequest parametersortBy - breaking
removed the enum value
titlefrom thequeryrequest parametersortBy - breaking
added the pattern
^$|^\d{4}-\d{2}-\d{2}([T ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:?\d{2})?)?$to thequeryrequest parameterendDate - breaking
added the pattern
^$|^\d{4}-\d{2}-\d{2}([T ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:?\d{2})?)?$to thequeryrequest parameterstartDate - 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}>))to thequeryrequest parametersearch - info
for the
queryrequest parameterendDate, the format was generalized fromdate-timeto no format - info
for the
queryrequest parameterstartDate, the format was generalized fromdate-timeto no format - info
added the media type
application/jsonfor the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
////to the response with the status - info
added the optional property
///to the response with the status
- breaking
- info
added the optional property
//to the response with the status - info
added the optional property
////to the response with the status
- info