v1

latestOpenAPI 3.0.0Superhuman Developer Terms2026-08-06124404444.0 KB
Packs

Retrieve the chat sessions of an agent instance.

Retrieve the chat sessions of an agent instance for debugging purpose.

get/go/tenants/{tenantId}/agentInstances/{agentInstanceId}/agentSessionIds

Path parameters

tenantIdstring required

ID of the tenant.

agentInstanceIdstring uuid required

ID of the agent instance.

Query parameters

limitinteger

Maximum number of results to return in this query.

pageTokenstring

An opaque token used to fetch the next page of results.

agentSessionIdstring uuid

ID of the agent chat session.

logTypesPackLogType[]

Only return logs of the given types.

beforeTimestampstring date-time

Only return logs before the given time (non-inclusive).

afterTimestampstring date-time

Only return logs after the given time (non-inclusive).

order'asc' | 'desc'

Specifies if the logs will be returned in time desc or asc. Default is desc.

qstring

A search query that follows Lucene syntax.

requestIdsstring[]

Only return logs matching provided request IDs.

Response

Pack logs.

nextPageTokenstring

If specified, an opaque token used to fetch the next page of results.

nextPageLinkstring url

If specified, a link that can be used to fetch the next page of results.

Example response

{
  "items": [
    {
      "context": {
        "createdAt": "2018-04-11T00:18:57.946Z"
      },
      "message": "The formula is called!"
    }
  ],
  "nextPageToken": "eyJsaW1pd",
  "nextPageLink": "https://docs.superhuman.com/apis/v1/packs/1/logs?pageToken=xyz"
}