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

# Clickhouse Activity Get: Inputs, Cost & CLI Example

> Organization activity. Clickhouse Clickhouse Activity Get docs include request fields, response shape, pricing notes, and Deepline CLI examples.

## Run in Enrichment Spreadsheet

<Info>
  Use this function as a column step in `deepline enrich`.
</Info>

```bash theme={null}
deepline enrich --input leads.csv --output leads.enriched.csv --with 'result=clickhouse_activity_get:{"organizationId":"{{organizationId}}","activityId":"{{activityId}}"}' --json
```

<Tip>
  Map payload values to spreadsheet columns with `{{column_name}}` placeholders.
</Tip>

## Input Schema

| Name                     | Type     | Required | Default | Description                       |
| ------------------------ | -------- | -------- | ------- | --------------------------------- |
| `payload.organizationId` | `string` | Yes      |         | ID of the requested organization. |
| `payload.activityId`     | `string` | Yes      |         | ID of the requested activity.     |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Returns a single organization activity by ID.",
    "properties": {
      "organizationId": {
        "type": "string",
        "description": "ID of the requested organization.",
        "format": "uuid"
      },
      "activityId": {
        "type": "string",
        "description": "ID of the requested activity."
      }
    },
    "required": [
      "organizationId",
      "activityId"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name          | Type     | Required | Default | Description                                    |
| ------------- | -------- | -------- | ------- | ---------------------------------------------- |
| `result.data` | `object` | Yes      |         | Provider response payload.                     |
| `result.meta` | `object` | No       |         | Additional response metadata (status, paging). |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "status": {
            "type": "number",
            "description": "HTTP status code."
          },
          "requestId": {
            "type": "string",
            "description": "Unique id assigned to every request. UUIDv4",
            "format": "uuid"
          },
          "result": {
            "properties": {
              "id": {
                "type": "string",
                "description": "Unique activity ID."
              },
              "createdAt": {
                "type": "string",
                "description": "Timestamp of the activity. ISO-8601.",
                "format": "date-time"
              },
              "type": {
                "type": "string",
                "description": "Type of the activity.",
                "enum": [
                  "create_organization",
                  "organization_update_name",
                  "transfer_service_in",
                  "transfer_service_out",
                  "save_payment_method",
                  "marketplace_subscription",
                  "migrate_marketplace_billing_details_in",
                  "migrate_marketplace_billing_details_out",
                  "organization_update_tier",
                  "organization_invite_create",
                  "organization_invite_delete",
                  "organization_member_join",
                  "organization_member_add",
                  "organization_member_leave",
                  "organization_member_delete",
                  "organization_member_update_role",
                  "organization_member_update_roles",
                  "organization_member_update_mfa_method",
                  "organization_saml_connection_create",
                  "organization_saml_connection_update",
                  "user_login",
                  "user_login_failed",
                  "user_logout",
                  "key_create",
                  "key_delete",
                  "openapi_key_update",
                  "service_create",
                  "service_start",
                  "service_stop",
                  "service_awaken",
                  "service_idle",
                  "service_running",
                  "service_partially_running",
                  "service_delete",
                  "service_update_name",
                  "service_update_ip_access_list",
                  "service_update_autoscaling_memory",
                  "service_update_autoscaling_idling",
                  "service_update_password",
                  "service_update_autoscaling_replicas",
                  "service_update_max_allowable_replicas",
                  "service_update_backup_configuration",
                  "service_update_snapshot_configuration",
                  "service_restore_backup",
                  "service_update_release_channel",
                  "service_update_gpt_usage_consent",
                  "service_update_private_endpoints",
                  "service_import_to_organization",
                  "service_export_from_organization",
                  "service_maintenance_start",
                  "service_maintenance_end",
                  "service_update_core_dump",
                  "backup_delete"
                ]
              },
              "actorType": {
                "type": "string",
                "description": "Type of the actor: 'user', 'support', 'system', 'api'.",
                "enum": [
                  "user",
                  "support",
                  "system",
                  "api"
                ]
              },
              "actorId": {
                "type": "string",
                "description": "Unique actor ID."
              },
              "actorDetails": {
                "type": "string",
                "description": "Additional information about the actor."
              },
              "actorIpAddress": {
                "type": "string",
                "description": "IP address of the actor. Defined for 'user' and 'api' actor types."
              },
              "organizationId": {
                "type": "string",
                "description": "Scope of the activity: organization ID this activity is related to."
              },
              "serviceId": {
                "type": "string",
                "description": "Scope of the activity: service ID this activity is related to."
              },
              "userAgent": {
                "type": "string",
                "description": "User agent of the actor"
              },
              "targetKeyId": {
                "type": "string",
                "description": "For 'openapi_key_update' activities: the ID of the API key that was updated."
              },
              "keyUpdateType": {
                "type": "string",
                "description": "For 'openapi_key_update' activities: the type of update that was performed.",
                "enum": [
                  "created",
                  "deleted",
                  "name-changed",
                  "role-changed",
                  "state-changed",
                  "date-changed",
                  "ip-access-list-changed",
                  "org-role-changed",
                  "default-service-role-changed",
                  "service-role-changed",
                  "roles-v2-changed"
                ]
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Advanced: Direct CLI

<Info>
  Use direct execution for single payload debugging.
</Info>

```bash theme={null}
deepline tools execute clickhouse_activity_get --payload '{
  "organizationId": "string",
  "activityId": "string"
}' --json
```

### CLI flags

| Flag                        | Description                                         |
| --------------------------- | --------------------------------------------------- |
| `--json`                    | Print machine-readable output.                      |
| `--wait`                    | Wait for terminal provider status when supported.   |
| `--debug`                   | Enable wait mode with additional status/log output. |
| `--wait-timeout SECONDS`    | Max seconds to wait in wait mode.                   |
| `--poll-interval SECONDS`   | Polling interval in seconds during wait mode.       |
| `--timeout SECONDS`         | Request timeout in seconds.                         |
| `--connect-timeout SECONDS` | Connection timeout in seconds.                      |

## Cost

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