> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Clarify: Get Activities

> List record activities. Clarify Get Activities reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

List record activities.

> [!NOTE]
>
> Tool ID: `clarify_get_activities`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'clarify_get_activities',
  {
    "workspace": "example",
    "object": "example",
    "record": "example"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run clarify_get_activities --input '{
  "workspace": "example",
  "object": "example",
  "record": "example"
}'
```

## Example response

The static output schema lacks the details for a reliable example. Use `deepline describe clarify_get_activities --json` for the complete live contract.

## Input reference

Returns the activity feed for a record: one `activity_event` resource per change event, newest first. Each page covers at most 90 days back from the cursor, or from the record’s latest activity on the first page, and holds at most `page[limit]` events. A page can hold fewer events, even none, while `links.next` is set, so follow `links.next` until it is `null`. Events that share an `aggKey` and are adjacent can be shown as one activity.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.workspace` | `string` | Yes | — | The workspace slug — the `&#123;slug&#125;` segment of your Clarify workspace URL. |
| `payload.object` | `string` | Yes | — | The object type: a built-in entity (`person`, `company`, `deal`, …) or a custom object (`c_*`). |
| `payload.record` | `string` | Yes | — | The unique ID of the record. |
| `payload.page` | `object` | No | `&#123;"limit":50&#125;` | Cursor pagination, e.g. `page[cursor]=...&page[limit]=100`. |
| `payload.filter` | `object` | No | — | — |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Returns the activity feed for a record: one `activity_event` resource per change event, newest first. Each page covers at most 90 days back from the cursor, or from the record’s latest activity on the first page, and holds at most `page[limit]` events. A page can hold fewer events, even none, while `links.next` is set, so follow `links.next` until it is `null`. Events that share an `aggKey` and are adjacent can be shown as one activity.",
    "properties": {
      "workspace": {
        "type": "string",
        "description": "The workspace slug — the `{slug}` segment of your Clarify workspace URL."
      },
      "object": {
        "type": "string",
        "description": "The object type: a built-in entity (`person`, `company`, `deal`, …) or a custom object (`c_*`)."
      },
      "record": {
        "type": "string",
        "description": "The unique ID of the record."
      },
      "page": {
        "type": "object",
        "description": "Cursor pagination, e.g. `page[cursor]=...&page[limit]=100`.",
        "default": {
          "limit": 50
        },
        "properties": {
          "cursor": {
            "type": "string",
            "description": "The opaque cursor of the page to fetch, taken from the previous response’s `links.next`. Omit to fetch the first page.",
            "pattern": "^(\\d{1,16})(?:::(.+))?$"
          },
          "limit": {
            "type": "integer",
            "description": "The maximum number of records to return per page (up to 500).",
            "default": 50,
            "minimum": 1,
            "maximum": 500
          }
        },
        "additionalProperties": false
      },
      "filter": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Comma-separated activity types to include, e.g. `filter[type]=clarify:update,comment`. Omit for every type."
          }
        },
        "additionalProperties": false
      }
    },
    "required": [
      "workspace",
      "object",
      "record"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.links` | `object` | Yes | — | Pagination links. |
| `result.data.links.next` | `string \| null` | Yes | — | URL of the next page, or `null` on the last page. |
| `result.data.data` | `array` | Yes | — | The page of resources. |
| `result.data.data[].type` | `"activity_event"` | Yes | — | The resource type. matches the `object` path parameter. Allowed: `activity_event`. |
| `result.data.data[].id` | `string` | Yes | — | The unique ID of the resource. |
| `result.data.data[].attributes` | `object` | Yes | — | Field values keyed by field name. available fields depend on the object’s schema. |
| `result.data.data[].attributes.event` | `object` | Yes | — | The change event. |
| `result.data.data[].attributes.event._id` | `string` | Yes | — | The unique ID of the event. Minimum length: 1. |
| `result.data.data[].attributes.event._created_at` | `string` | Yes | — | When the event occurred. Format: `date-time`. |
| `result.data.data[].attributes.event.type` | `"clarify:create" \| "ClarifyCreate" \| "clarify:update" \| "ClarifyUpdate" \| "clarify:merge" \| "ClarifyMerge" \| "clarify:delete" \| "ClarifyDelete" \| "clarify:add-to-list" \| "ClarifyAddToList" \| "clarify:remove-from-list" \| "ClarifyRemoveFromList" \| "clarify:set-relationship" \| "ClarifySetRelationship" \| "clarify:unset-relationship" \| "ClarifyUnsetRelationship" \| "clarify:grant-access" \| "ClarifyGrantAccess" \| "clarify:update-access" \| "ClarifyUpdateAccess" \| "clarify:revoke-access" \| "ClarifyRevokeAccess" \| "clarify:access-request-created" \| "ClarifyAccessRequestCreated" \| "clarify:access-request-decided" \| "ClarifyAccessRequestDecided" \| "clarify:membership-request-created" \| "ClarifyMembershipRequestCreated" \| "clarify:meeting" \| "ClarifyMeeting"` | Yes | — | The kind of change the event represents. Allowed: `clarify:create`, `ClarifyCreate`, `clarify:update`, `ClarifyUpdate`, `clarify:merge`, `ClarifyMerge`, `clarify:delete`, `ClarifyDelete`, `clarify:add-to-list`, `ClarifyAddToList`, `clarify:remove-from-list`, `ClarifyRemoveFromList`, `clarify:set-relationship`, `ClarifySetRelationship`, `clarify:unset-relationship`, `ClarifyUnsetRelationship`, `clarify:grant-access`, `ClarifyGrantAccess`, `clarify:update-access`, `ClarifyUpdateAccess`, See the live schema for the complete constraint. |
| `result.data.data[].attributes.event.actor` | `object` | Yes | — | Who or what triggered the change. |
| `result.data.data[].attributes.event.actor._id` | `string \| null` | Yes | — | The ID of the record this item refers to, or `null` if anonymous. |
| `result.data.data[].attributes.event.actor.anonymous_id` | `string \| null` | Yes | — | The anonymous identifier for the item when no record ID is known, or `null`. |
| `result.data.data[].attributes.event.actor.entity` | `string` | Yes | — | The object type of the item, e.g. `person`. |
| `result.data.data[].attributes.event.actor.data` | `record` | No | — | A snapshot of the item’s field values at the time of the event. |
| `result.data.data[].attributes.event.actor.diff` | `array` | No | — | The list of field-level changes the event applied to the item. |
| `result.data.data[].attributes.event.actor.diff[].op` | `"add" \| "update" \| "delete"` | Yes | — | The kind of change: `add`, `update`, or `delete`. Allowed: `add`, `update`, `delete`. |
| `result.data.data[].attributes.event.actor.diff[].path` | `array` | Yes | — | The path to the changed field within the record, as a list of keys and array indices. |
| `result.data.data[].attributes.event.actor.diff[].val` | `unknown` | No | — | The new value at the path. |
| `result.data.data[].attributes.event.actor.diff[].oldVal` | `unknown` | No | — | The previous value at the path, if the change replaced an existing value. |
| `result.data.data[].attributes.event.actor.source_id` | `string \| null` | Yes | — | The identifier of the source that produced the event (e.g. an integration), or `null`. |
| `result.data.data[].attributes.event.actor.channel` | `string` | No | — | The channel a Rep write came over (e.g. `imessage`), absent for writes not made over a channel. |
| `result.data.data[].attributes.event.object` | `object` | No | — | The record the change was applied to. may be absent on partial stored events. |
| `result.data.data[].attributes.event.object._id` | `string \| null` | Yes | — | The ID of the record this item refers to, or `null` if anonymous. |
| `result.data.data[].attributes.event.object.anonymous_id` | `string \| null` | Yes | — | The anonymous identifier for the item when no record ID is known, or `null`. |
| `result.data.data[].attributes.event.object.entity` | `string` | Yes | — | The object type of the item, e.g. `person`. |
| `result.data.data[].attributes.event.object.data` | `record` | No | — | A snapshot of the item’s field values at the time of the event. |
| `result.data.data[].attributes.event.object.diff` | `array` | No | — | The list of field-level changes the event applied to the item. |
| `result.data.data[].attributes.event.object.diff[].op` | `"add" \| "update" \| "delete"` | Yes | — | The kind of change: `add`, `update`, or `delete`. Allowed: `add`, `update`, `delete`. |
| `result.data.data[].attributes.event.object.diff[].path` | `array` | Yes | — | The path to the changed field within the record, as a list of keys and array indices. |
| `result.data.data[].attributes.event.object.diff[].val` | `unknown` | No | — | The new value at the path. |
| `result.data.data[].attributes.event.object.diff[].oldVal` | `unknown` | No | — | The previous value at the path, if the change replaced an existing value. |
| `result.data.data[].attributes.event.relationship` | `string` | No | — | The relationship field involved, for relationship-change events. |
| `result.data.data[].attributes.event.ref` | `object` | No | — | The related record referenced by the change, for relationship events. |
| `result.data.data[].attributes.event.ref._id` | `string \| null` | Yes | — | The ID of the record this item refers to, or `null` if anonymous. |
| `result.data.data[].attributes.event.ref.anonymous_id` | `string \| null` | Yes | — | The anonymous identifier for the item when no record ID is known, or `null`. |
| `result.data.data[].attributes.event.ref.entity` | `string` | Yes | — | The object type of the item, e.g. `person`. |
| `result.data.data[].attributes.event.ref.data` | `record` | No | — | A snapshot of the item’s field values at the time of the event. |
| `result.data.data[].attributes.event.ref.diff` | `array` | No | — | The list of field-level changes the event applied to the item. |
| `result.data.data[].attributes.event.ref.diff[].op` | `"add" \| "update" \| "delete"` | Yes | — | The kind of change: `add`, `update`, or `delete`. Allowed: `add`, `update`, `delete`. |
| `result.data.data[].attributes.event.ref.diff[].path` | `array` | Yes | — | The path to the changed field within the record, as a list of keys and array indices. |
| `result.data.data[].attributes.event.ref.diff[].val` | `unknown` | No | — | The new value at the path. |
| `result.data.data[].attributes.event.ref.diff[].oldVal` | `unknown` | No | — | The previous value at the path, if the change replaced an existing value. |
| `result.data.data[].attributes.event.refs` | `array` | No | — | The related records referenced by the change, for relationship events. |
| `result.data.data[].attributes.event.refs[]._id` | `string \| null` | Yes | — | The ID of the record this item refers to, or `null` if anonymous. |
| `result.data.data[].attributes.event.refs[].anonymous_id` | `string \| null` | Yes | — | The anonymous identifier for the item when no record ID is known, or `null`. |
| `result.data.data[].attributes.event.refs[].entity` | `string` | Yes | — | The object type of the item, e.g. `person`. |
| `result.data.data[].attributes.event.refs[].data` | `record` | No | — | A snapshot of the item’s field values at the time of the event. |
| `result.data.data[].attributes.event.refs[].diff` | `array` | No | — | The list of field-level changes the event applied to the item. |

The table shows the first 50 fields. Expand the raw schema below for every field.

> [!NOTE]
>
> This output schema is too large for an inline display. Read the complete live contract with `deepline describe clarify_get_activities --json`.

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Connect integrations](https://deepline.com/docs/integrations.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.