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

# Log Record Activity

> Log what you did to a record

Logs one entry, or a batch of up to 1000, to a record's [activity
timeline](https://docs.clustr-ai.com/record-activity.md). Use this to keep your own integrations honest
with the same trail Clustr's own actions and Workflows write to.

Send either a single item's fields at the top level, or `{ "items": [...] }`
for a batch.

```bash cURL theme={null}
curl -X POST "https://api.clustr-ai.com/api/public/records/activity" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "entity": "account",
    "recordKey": "1035",
    "kind": "pushed_to_crm",
    "detail": { "provider": "hubspot", "objectId": "5012345" }
  }'
```

```bash cURL (batch) theme={null}
curl -X POST "https://api.clustr-ai.com/api/public/records/activity" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "items": [
      { "entity": "account", "recordKey": "1035", "kind": "tags_set", "detail": {} },
      { "entity": "account", "recordKey": "1042", "kind": "tags_set", "detail": {} }
    ]
  }'
```

```json 201 theme={null}
{
  "success": true,
  "data": { "inserted": 1 }
}
```

```json 400 theme={null}
{
  "success": false,
  "error": { "message": "entity must be one of account, person, path", "code": "BAD_REQUEST" }
}
```


## OpenAPI

````yaml POST /records/activity
openapi: 3.1.0
info:
  title: Clustr Public API
  description: >
    Programmatic access to your Clustr network: import connectors, search warm
    intros (opportunities), and manage target accounts.


    ## Authentication

    All endpoints require a Bearer token (API key) in the `Authorization`
    header.


    ```

    Authorization: Bearer <your_api_key>

    ```


    API keys can be created and managed from the [API settings
    page](https://app.clustr-ai.com/api).
  version: '1.0'
  contact:
    name: Clustr Support
    url: https://clustr-ai.com
servers:
  - url: https://api.clustr-ai.com/api/public
    description: Production
security:
  - BearerAuth: []
paths:
  /records/activity:
    post:
      tags:
        - Record Activity
      summary: Log Record Activity
      description: >-
        Logs one entry, or a batch of up to 1000, on a record's activity
        timeline. These entries appear under `clustr_action` on [List Account
        Activity](/api-reference/get-account-activity) and [List Person
        Activity](/api-reference/get-person-activity).
      operationId: logRecordActivity
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LogRecordActivityRequest'
      responses:
        '201':
          description: Logged
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: object
                    properties:
                      inserted:
                        type: integer
        '400':
          description: Invalid entity, kind, or detail
        '401':
          description: Invalid or missing API key
components:
  schemas:
    LogRecordActivityRequest:
      oneOf:
        - $ref: '#/components/schemas/RecordActivityItem'
        - type: object
          required:
            - items
          properties:
            items:
              type: array
              maxItems: 1000
              items:
                $ref: '#/components/schemas/RecordActivityItem'
    RecordActivityItem:
      type: object
      required:
        - entity
        - recordKey
        - kind
      properties:
        entity:
          type: string
          description: >-
            The kind of record the activity is about: `account`, `person` or
            `path`.
          enum:
            - account
            - person
            - path
            - config
        recordKey:
          type: string
          description: |-
            The account's LinkedIn numeric id, or a path's
            `"<clientLinkedInId>|<prospectLinkedInId>"` key.
        kind:
          type: string
          description: >-
            What happened: one of `tags_set`, `tier_set`, `owner_set`,
            `list_added`,

            `list_removed`, `dismissed`, `restored`, `pushed_to_crm`,
            `intro_requested`,

            `intro_sent`, `intro_accepted`, `intro_declined`, `workflow_fired`
            or

            `workflow_action`.
          enum:
            - status_set
            - tier_set
            - owner_set
            - tags_set
            - notes_set
            - list_added
            - list_removed
            - dismissed
            - restored
            - pushed_to_crm
            - intro_requested
            - intro_sent
            - intro_accepted
            - intro_declined
            - workflow_fired
            - workflow_action
            - config_created
            - config_updated
            - config_deleted
        actor:
          type: string
          description: >-
            Who did it: an email address, `workflow:<id>` or `system`. Defaults
            to the caller's identity when omitted.
        detail:
          type: object
          description: >-
            Any JSON object. Rendered alongside the kind and actor on the
            timeline.
          additionalProperties: true
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: The API key you created on the API settings page of the Clustr app.

````

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