---
title: "List activity events"
method: GET
path: "/v1/activity"
tags: ["Activity"]
---

# List activity events

`GET /v1/activity`

## Request

- Base URL: `https://api.spacefast.com`
- URL: `https://api.spacefast.com/v1/activity`
- Auth: HTTP bearer

Returns the activity feed visible to your credential, newest-first. Filter by event code, space, or principal.

## Query parameters

- `limit` integer: Page size.
- `cursor` string: Opaque cursor from the previous page's `nextCursor`.
- `principalType` 'team' | 'external': Filter by owning principal type.
- `principalId` string: Filter to one principal.
- `spaceId` string: Filter to one space.
- `actorType` 'visitor' | 'user' | 'api_key' | 'partner_token' | 'oauth_client' | 'anonymous_claim' | 'system': Filter by acting credential type.
- `actorId` string: Filter to one actor — a user id, grant id, or key id.
- `code` string: Filter to one event code, for example `space.created`.
- `since` union: Only events at or after this time.
  - string, date-time
  - string
- `until` union: Only events at or before this time.
  - string, date-time
  - string

## Response `200`

Response for status 200

- object
  - `$schema` string, uri: Canonical JSON Schema URL for this response body. The server also sends it in the `Link: rel="describedby"` response header.
  - `data` object[], required
    - `id` string, required
    - `sequence` integer, required
    - `tenantId` string, required
    - `mode` 'live' | 'test', required: `test` when the event's tenant is a linked test tenant, `live` otherwise.
    - `principal` object, nullable, required
      - `tenantId` string, required
      - `principalType` 'team' | 'external', required
      - `principalId` string, required
    - `spaceId` string, nullable, required
    - `actor` object, required
      - `type` 'visitor' | 'user' | 'api_key' | 'partner_token' | 'oauth_client' | 'anonymous_claim' | 'system', required
      - `id` string, required
    - `code` string, required
    - `message` string, required
    - `details` object, nullable, required
    - `createdAt` string, date-time, required
  - `pagination` object, required
    - `nextCursor` string, nullable, required: Opaque cursor for the next page; null when there are no more results.
    - `hasMore` boolean, required: Whether another page exists after this one.

## Other responses

- `default`: Problem details (RFC 9457). Any 4xx/5xx response is one `application/problem+json` document.

---

[API](https://skmtc.dev/spacefast/apis/spacefast-api.md) · [All operations](https://skmtc.dev/spacefast/apis/spacefast-api/llms.txt) · [OpenAPI document](https://skmtc.dev/spacefast/apis/spacefast-api/revisions/bd165bc7c983?raw)
