> ## 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 Schema Activities

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

List schema activities.

> [!NOTE]
>
> Tool ID: `clarify_get_schema_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_schema_activities',
  {
    "workspace": "example",
    "entity": "example"
  },
);

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

### CLI

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

## Example response

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

## Input reference

Returns the history of schema changes for an object type as a paginated list of activities. Each activity groups the change events for one modification, such as adding or editing a field.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.workspace` | `string` | Yes | — | The workspace slug — the `&#123;slug&#125;` segment of your Clarify workspace URL. |
| `payload.entity` | `string` | Yes | — | The object type: a built-in entity (`person`, `company`, `deal`, …) or a custom object (`c_*`). |
| `payload.page` | `object` | No | `&#123;"offset":0,"limit":500&#125;` | Offset pagination, e.g. `page[offset]=0&page[limit]=100`. |
| `payload.sortOrder` | `object` | No | — | Sort order, e.g. `sortOrder[column]=_created_at&sortOrder[dir]=DESC`. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Returns the history of schema changes for an object type as a paginated list of activities. Each activity groups the change events for one modification, such as adding or editing a field.",
    "properties": {
      "workspace": {
        "type": "string",
        "description": "The workspace slug — the `{slug}` segment of your Clarify workspace URL."
      },
      "entity": {
        "type": "string",
        "description": "The object type: a built-in entity (`person`, `company`, `deal`, …) or a custom object (`c_*`)."
      },
      "page": {
        "type": "object",
        "description": "Offset pagination, e.g. `page[offset]=0&page[limit]=100`.",
        "default": {
          "offset": 0,
          "limit": 500
        },
        "properties": {
          "offset": {
            "type": "number",
            "description": "The number of records to skip before the first result.",
            "default": 0,
            "minimum": 0
          },
          "limit": {
            "type": "number",
            "description": "The maximum number of records to return per page (up to 500).",
            "default": 500,
            "minimum": 1,
            "maximum": 500
          }
        },
        "additionalProperties": false
      },
      "sortOrder": {
        "type": "object",
        "description": "Sort order, e.g. `sortOrder[column]=_created_at&sortOrder[dir]=DESC`.",
        "properties": {
          "column": {
            "type": "string",
            "description": "The field name to sort by.",
            "minLength": 1
          },
          "dir": {
            "type": "string",
            "description": "The sort direction.",
            "enum": [
              "ASC",
              "DESC"
            ]
          }
        },
        "required": [
          "column",
          "dir"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "workspace",
      "entity"
    ],
    "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.links.prev` | `string \| null` | Yes | — | URL of the previous page, or `null` on the first page. |
| `result.data.meta` | `object` | Yes | — | Pagination metadata. |
| `result.data.meta.total_records` | `number` | Yes | — | Total number of records across all pages. |
| `result.data.meta.total_pages` | `number` | Yes | — | Total number of pages at the current page size. |
| `result.data.data` | `array` | Yes | — | The page of resources. |
| `result.data.data[].type` | `"activity"` | Yes | — | The resource type. matches the `object` path parameter. Allowed: `activity`. |
| `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._id` | `string` | Yes | — | The ID of the earliest event in the grouped activity. |
| `result.data.data[].attributes._created_at` | `string` | Yes | — | The time the earliest event in the group was created. Format: `date-time`. |
| `result.data.data[].attributes.aggKey` | `string` | Yes | — | The key the events were grouped by, combining the record and change type. |
| `result.data.data[].attributes.data` | `array` | Yes | — | The change events that make up this activity. |
| `result.data.data[].attributes.data[]._id` | `string` | Yes | — | The unique ID of the event. Minimum length: 1. |
| `result.data.data[].attributes.data[]._created_at` | `string` | Yes | — | When the event occurred. Format: `date-time`. |
| `result.data.data[].attributes.data[].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.data[].actor` | `object` | Yes | — | Who or what triggered the change. |
| `result.data.data[].attributes.data[].actor._id` | `string \| null` | Yes | — | The ID of the record this item refers to, or `null` if anonymous. |
| `result.data.data[].attributes.data[].actor.anonymous_id` | `string \| null` | Yes | — | The anonymous identifier for the item when no record ID is known, or `null`. |
| `result.data.data[].attributes.data[].actor.entity` | `string` | Yes | — | The object type of the item, e.g. `person`. |
| `result.data.data[].attributes.data[].actor.data` | `record` | No | — | A snapshot of the item’s field values at the time of the event. |
| `result.data.data[].attributes.data[].actor.diff` | `array` | No | — | The list of field-level changes the event applied to the item. |
| `result.data.data[].attributes.data[].actor.diff[].op` | `"add" \| "update" \| "delete"` | Yes | — | The kind of change: `add`, `update`, or `delete`. Allowed: `add`, `update`, `delete`. |
| `result.data.data[].attributes.data[].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.data[].actor.diff[].val` | `unknown` | No | — | The new value at the path. |
| `result.data.data[].attributes.data[].actor.diff[].oldVal` | `unknown` | No | — | The previous value at the path, if the change replaced an existing value. |
| `result.data.data[].attributes.data[].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.data[].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.data[].object` | `object` | No | — | The record the change was applied to. may be absent on partial stored events. |
| `result.data.data[].attributes.data[].object._id` | `string \| null` | Yes | — | The ID of the record this item refers to, or `null` if anonymous. |
| `result.data.data[].attributes.data[].object.anonymous_id` | `string \| null` | Yes | — | The anonymous identifier for the item when no record ID is known, or `null`. |
| `result.data.data[].attributes.data[].object.entity` | `string` | Yes | — | The object type of the item, e.g. `person`. |
| `result.data.data[].attributes.data[].object.data` | `record` | No | — | A snapshot of the item’s field values at the time of the event. |
| `result.data.data[].attributes.data[].object.diff` | `array` | No | — | The list of field-level changes the event applied to the item. |
| `result.data.data[].attributes.data[].object.diff[].op` | `"add" \| "update" \| "delete"` | Yes | — | The kind of change: `add`, `update`, or `delete`. Allowed: `add`, `update`, `delete`. |
| `result.data.data[].attributes.data[].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.data[].object.diff[].val` | `unknown` | No | — | The new value at the path. |
| `result.data.data[].attributes.data[].object.diff[].oldVal` | `unknown` | No | — | The previous value at the path, if the change replaced an existing value. |
| `result.data.data[].attributes.data[].relationship` | `string` | No | — | The relationship field involved, for relationship-change events. |
| `result.data.data[].attributes.data[].ref` | `object` | No | — | The related record referenced by the change, for relationship events. |
| `result.data.data[].attributes.data[].ref._id` | `string \| null` | Yes | — | The ID of the record this item refers to, or `null` if anonymous. |
| `result.data.data[].attributes.data[].ref.anonymous_id` | `string \| null` | Yes | — | The anonymous identifier for the item when no record ID is known, or `null`. |
| `result.data.data[].attributes.data[].ref.entity` | `string` | Yes | — | The object type of the item, e.g. `person`. |
| `result.data.data[].attributes.data[].ref.data` | `record` | No | — | A snapshot of the item’s field values at the time of the event. |
| `result.data.data[].attributes.data[].ref.diff` | `array` | No | — | The list of field-level changes the event applied to the item. |
| `result.data.data[].attributes.data[].ref.diff[].op` | `"add" \| "update" \| "delete"` | Yes | — | The kind of change: `add`, `update`, or `delete`. Allowed: `add`, `update`, `delete`. |
| `result.data.data[].attributes.data[].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.data[].ref.diff[].val` | `unknown` | No | — | The new value at the path. |

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_schema_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.