v1

latestOpenAPI 3.0.0Superhuman Developer Terms2026-08-06124404444.0 KB
Packs

Retrieve the logs of an agent instance.

Retrieve the logs of an agent instance for debugging purpose.

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

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.

logTypesPackLogType[]

Only return logs of the given types.

agentSessionIdstring uuid

ID of the agent chat session.

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"
}