Get Harbor Activity Session

Returns one Harbor Activity session and its events. You must be an active Organization administrator to use this endpoint. The session must belong to the Organization against which you authenticated. Events are ordered from oldest to newest by default. Set `order` to `desc` to retrieve the newest events first. A page contains at most 100 events. Pass `next_page_token` from the response as `page_token` with the same order and limit to retrieve the next page. `history_truncated` is `true` when Activity retention removed events from the beginning of the session. The lifecycle summary remains available while the session itself is retained. The response uses the same event allowlist as the Activity list and detail endpoints. It does not include session tokens, submitted SQL, raw field names, detailed provider errors, result rows, or raw pagination tokens. > ℹ️ Activity retention > > Polytomic retains Activity events for at least 90 days. Pagination tokens > expire 24 hours after the first page.

Authentication

AuthorizationBearer
Bearer user API key
OR
AuthorizationBasic

Basic organization-scoped API key

Path parameters

session_idstringRequiredformat: "uuid"
Harbor Activity session ID.

Headers

X-Polytomic-VersionstringOptional

Query parameters

limitintegerOptional1-100Defaults to 50
Maximum number of events to return. Defaults to 50 and cannot exceed 100.
page_tokenstringOptional
Opaque pagination cursor returned by the previous request. It expires 24 hours after the first page.
orderenumOptionalDefaults to asc
Order in which events were recorded. Defaults to asc.
Allowed values:

Response

OK
dataobjectOptional
paginationobjectOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
410
Gone Error
422
Unprocessable Entity Error