Activity

Get Harbor Activity Session

Changed on

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.

get/api/organization/harbor-activity/sessions/{session_id}

Request

  • Base URL
    https://app.polytomic.com
  • Auth
    • HTTP bearer
    • or HTTP basic

Path parameters

session_idstring uuid required

Harbor Activity session ID

Example:248df4b7-aa70-47b8-a036-33ac447e668d

Query parameters

limitinteger

Maximum number of events to return. Defaults to 50 and cannot exceed 100.

page_tokenstring

Opaque pagination cursor returned by the previous request. It expires 24 hours after the first page.

order'asc' | 'desc'

Order in which events were recorded. Defaults to asc.

Headers

X-Polytomic-Versionstring

Response

OK

Example response

{
  "data": {
    "credential": {
      "id": "248df4b7-aa70-47b8-a036-33ac447e668d"
    },
    "events": [
      {
        "actor": {
          "id": "248df4b7-aa70-47b8-a036-33ac447e668d"
        },
        "attempt_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
        "connection_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
        "context_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
        "context_revision_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
        "credential": {
          "id": "248df4b7-aa70-47b8-a036-33ac447e668d"
        },
        "harbor_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
        "id": "248df4b7-aa70-47b8-a036-33ac447e668d",
        "metadata": {
          "action_request_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
          "saved_query_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
          "saved_query_revision_id": "248df4b7-aa70-47b8-a036-33ac447e668d"
        },
        "operation_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
        "profile": {
          "id": "248df4b7-aa70-47b8-a036-33ac447e668d"
        },
        "query_source": {
          "saved_query": {
            "id": "248df4b7-aa70-47b8-a036-33ac447e668d",
            "revision_id": "248df4b7-aa70-47b8-a036-33ac447e668d"
          },
          "submission_event_id": "248df4b7-aa70-47b8-a036-33ac447e668d"
        },
        "session_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
        "targets": [
          {
            "revision_id": "248df4b7-aa70-47b8-a036-33ac447e668d"
          }
        ]
      }
    ],
    "harbor_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
    "id": "248df4b7-aa70-47b8-a036-33ac447e668d",
    "profile": {
      "id": "248df4b7-aa70-47b8-a036-33ac447e668d"
    },
    "started_event_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
    "terminal_event_id": "248df4b7-aa70-47b8-a036-33ac447e668d"
  },
  "pagination": {
    "next_page_token": "AmkYh8v0jR5B3kls2Qcc9y8MjrPmvR4CvaK7H0F4rEwqvg76K=="
  }
}

Changes

    • breaking

      the /////// response's property type changed from string to no type for status

    • breaking

      the //////////// response's property type changed from string to no type for status

    • breaking

      the //////////// response's property type changed from string to no type for status

    • breaking

      the /////// response's property type changed from string to no type for status

    • breaking

      the /////// response's property type changed from string to no type for status

    • info

      added to the /////// response property allOf list for the response status

    • info

      added to the /////// response property allOf list for the response status

    • info

      added to the /////// response property allOf list for the response status

    • info

      added to the //////////// response property allOf list for the response status

    • info

      added to the //////////// response property allOf list for the response status

    • breaking

      the response's property type changed from object to no type for status

    • breaking

      the response's property type changed from object to no type for status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • info

      added to the response property allOf list for the response status

    • info

      added to the response property allOf list for the response status