---
title: "Search and list Activities"
method: POST
path: "/app/v1/activities/search"
tags: ["activities"]
---

# Search and list Activities

`POST /app/v1/activities/search`

## Request body

- object
  - `page` number — Which page to return
  - `page_size` number — How many items to list in a page
  - `sort_by` 'resource_type' | 'resource_id' | 'author_id' | 'action' | 'timestamp'
  - `sort_direction` 'asc' | 'desc' — Sort direction
  - `filter` object — A filter object for Activity where it can filter based on any of these following fields. No fields are mandatory and the syntax is roughly the same as MongoDB querying.
    - `resource_type` string
    - `resource_id` string
    - `author_id` string
    - `action` string
    - `timestamp` string, date-time

## Response `200`

Successfully operation

- PagedActivityList
  - `page_number` number
  - `page_size` number
  - `total_entries` number
  - `total_pages` number
  - `data` Activity[]
    - `resource_type` string
    - `resource_id` string, uuid
    - `author_id` string, uuid
    - `action` string, uuid
    - `before` object
    - `after` object
    - `timestamp` string, date-time

---

[API](https://skmtc.net/validere/apis/carbonhub-api.md) · [All operations](https://skmtc.net/validere/apis/carbonhub-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/validere/carbonhub-api/revisions/053edab62415/schema)
