# Socket + Xama Hub Integrations: Connect with Zapier MCP
> zapier.com/apps/socket/integrations/xama-hub
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate Socket and Xama Hub in minutes. Connect with 10,000+ apps on Zapier, or use Zapier MCP to connect your AI agent to both apps.

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).
- Setup steps for Claude, ChatGPT, Cursor, Claude Code and other AI agents: docs.zapier.com/mcp/get-started/quickstart.md

## Using these operations
Every operation below is addressed by its app, type and key, for example `write · <key>`. Events from one app can start a run that calls functions in the other.

- **MCP**: connect each app through mcp.zapier.com to expose its operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`, then call `runAction({ app, actionType, action, connection, inputs })`.
- **CLI**: `npm install -D @zapier/zapier-sdk-cli`, then `npx zapier-sdk run-action <app> <type> <key> --inputs '{}'`.

### Example
- **MCP**: ask your MCP client to call the tool for this operation's `type · key` — for example, `write · create_xama_hub_client_action`.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: conn } = await zapier.findFirstConnection({ app: "xama-hub", owner: "me" });

const { data } = await zapier.runAction({
  app: "xama-hub",
  actionType: "write",
  action: "create_xama_hub_client_action",
  connection: conn.id,
  inputs: { /* ... */ },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action xama-hub write create_xama_hub_client_action \
  --inputs '{}'
```

## Socket

### Identity
Socket is a client engagement system for accountants and bookkeepers that seamlessly connects your proposal, engagement letter, and billing workflow.

- App slug: socket
- Operations published here: 27 (24 events, 3 functions)

### Authentication
Zapier connects to Socket via oauth. Your code references a connection, not a raw credential.

- Auth type: oauth
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection socket
```

### Capabilities

#### Events (24)

Events fire when something happens in Socket. Use them to start a run.

##### Form Response Submitted
Triggers when a form response is submitted, on any submission route (public link, direct send, or proposal onboarding).

- Type: read · Key: `form_response_submitted`
- Requires: nothing
- SDK: `runAction({ app: "socket", actionType: "read", action: "form_response_submitted" })`
- CLI: `npx zapier-sdk run-action socket read form_response_submitted`

##### Lead Created
Triggers when a lead is created in Socket, however it arrived - a Socket form, the API, another Zap, or a practitioner adding it by hand.

- Type: read · Key: `lead_created`
- Requires: nothing
- SDK: `runAction({ app: "socket", actionType: "read", action: "lead_created" })`
- CLI: `npx zapier-sdk run-action socket read lead_created`

##### Lead Lost
Triggers when a lead reaches the Lost stage, whether it was marked as lost directly or its proposal was lost or deleted.

- Type: read · Key: `lead_lost`
- Requires: nothing
- SDK: `runAction({ app: "socket", actionType: "read", action: "lead_lost" })`
- CLI: `npx zapier-sdk run-action socket read lead_lost`

##### Lead Stage Changed
Triggers whenever a lead moves between pipeline stages, including your own custom stages. Also fires when a lead is won or lost - use the dedicated Lead Won and Lead Lost triggers if you only want those. Does not fire when a stage is deleted and its leads are moved on.

- Type: read · Key: `lead_stage_changed`
- Requires: nothing
- SDK: `runAction({ app: "socket", actionType: "read", action: "lead_stage_changed" })`
- CLI: `npx zapier-sdk run-action socket read lead_stage_changed`

##### Lead Won
Triggers when a lead reaches the Won stage, which happens when its proposal is won. Leads created from an already-won proposal do not fire this - the win predates the lead.

- Type: read · Key: `lead_won`
- Requires: nothing
- SDK: `runAction({ app: "socket", actionType: "read", action: "lead_won" })`
- CLI: `npx zapier-sdk run-action socket read lead_won`

##### Proposal Activated
Triggers when a proposal becomes active.

- Type: read · Key: `proposal_active`
- Requires: nothing
- SDK: `runAction({ app: "socket", actionType: "read", action: "proposal_active" })`
- CLI: `npx zapier-sdk run-action socket read proposal_active`

##### Proposal Adjustment Started
Triggers when a proposal adjustment is started.

- Type: read · Key: `proposal_adjustment_started`
- Requires: nothing
- SDK: `runAction({ app: "socket", actionType: "read", action: "proposal_adjustment_started" })`
- CLI: `npx zapier-sdk run-action socket read proposal_adjustment_started`

##### Proposal Changes Requested
Triggers when a team member requests changes to a proposal (Pro Features only).

- Type: read · Key: `proposal_changes_requested`
- Requires: nothing
- SDK: `runAction({ app: "socket", actionType: "read", action: "proposal_changes_requested" })`
- CLI: `npx zapier-sdk run-action socket read proposal_changes_requested`

##### Proposal Closed
Triggers when a proposal is closed.

- Type: read · Key: `proposal_closed`
- Requires: nothing
- SDK: `runAction({ app: "socket", actionType: "read", action: "proposal_closed" })`
- CLI: `npx zapier-sdk run-action socket read proposal_closed`

##### Proposal Created
Triggers when a new proposal is created.

- Type: read · Key: `proposal_created`
- Requires: nothing
- SDK: `runAction({ app: "socket", actionType: "read", action: "proposal_created" })`
- CLI: `npx zapier-sdk run-action socket read proposal_created`

##### Proposal Deleted
Triggers when a proposal is deleted.

- Type: read · Key: `proposal_deleted`
- Requires: nothing
- SDK: `runAction({ app: "socket", actionType: "read", action: "proposal_deleted" })`
- CLI: `npx zapier-sdk run-action socket read proposal_deleted`

##### Proposal in Review
Triggers when a proposal is moved to in-review status (Pro Features only).

- Type: read · Key: `proposal_in_review`
- Requires: nothing
- SDK: `runAction({ app: "socket", actionType: "read", action: "proposal_in_review" })`
- CLI: `npx zapier-sdk run-action socket read proposal_in_review`

##### Proposal Lost
Triggers when a proposal is marked as lost.

- Type: read · Key: `proposal_lost`
- Requires: nothing
- SDK: `runAction({ app: "socket", actionType: "read", action: "proposal_lost" })`
- CLI: `npx zapier-sdk run-action socket read proposal_lost`

##### Proposal Pending
Triggers when a proposal is sent to a client and is awaiting their response.

- Type: read · Key: `proposal_pending`
- Requires: nothing
- SDK: `runAction({ app: "socket", actionType: "read", action: "proposal_pending" })`
- CLI: `npx zapier-sdk run-action socket read proposal_pending`

##### Proposal Renewal Started
Triggers when a proposal renewal is started.

- Type: read · Key: `proposal_renewal_started`
- Requires: nothing
- SDK: `runAction({ app: "socket", actionType: "read", action: "proposal_renewal_started" })`
- CLI: `npx zapier-sdk run-action socket read proposal_renewal_started`

##### Proposal Resent
Triggers when a proposal is resent to the client.

- Type: read · Key: `proposal_resent`
- Requires: nothing
- SDK: `runAction({ app: "socket", actionType: "read", action: "proposal_resent" })`
- CLI: `npx zapier-sdk run-action socket read proposal_resent`

##### Proposal Reverted to Draft
Triggers when a proposal is reverted to draft status.

- Type: read · Key: `proposal_reverted_to_draft`
- Requires: nothing
- SDK: `runAction({ app: "socket", actionType: "read", action: "proposal_reverted_to_draft" })`
- CLI: `npx zapier-sdk run-action socket read proposal_reverted_to_draft`

##### Proposal Sending
Triggers when a proposal is being sent to the client. This is a short-lived status, and either goes to "pending" when sent successfully, or back to "draft" if not sent.

- Type: read · Key: `proposal_sending`
- Requires: nothing
- SDK: `runAction({ app: "socket", actionType: "read", action: "proposal_sending" })`
- CLI: `npx zapier-sdk run-action socket read proposal_sending`

##### Proposal Start Date Confirmed
Triggers when a proposal start date is confirmed.

- Type: read · Key: `proposal_start_date_confirmed`
- Requires: nothing
- SDK: `runAction({ app: "socket", actionType: "read", action: "proposal_start_date_confirmed" })`
- CLI: `npx zapier-sdk run-action socket read proposal_start_date_confirmed`

##### Proposal Status Changed
Triggers when an existing proposal changes status.

- Type: read · Key: `proposal_status_changed`
- Requires: nothing
- SDK: `runAction({ app: "socket", actionType: "read", action: "proposal_status_changed" })`
- CLI: `npx zapier-sdk run-action socket read proposal_status_changed`

##### Proposal Superseded
Triggers when a proposal is superseded by another proposal.

- Type: read · Key: `proposal_superseded`
- Requires: nothing
- SDK: `runAction({ app: "socket", actionType: "read", action: "proposal_superseded" })`
- CLI: `npx zapier-sdk run-action socket read proposal_superseded`

##### Proposal Won
Triggers when a proposal is won.

- Type: read · Key: `proposal_won`
- Requires: nothing
- SDK: `runAction({ app: "socket", actionType: "read", action: "proposal_won" })`
- CLI: `npx zapier-sdk run-action socket read proposal_won`

##### Proposal Won (Client Approved)
Triggers when a proposal is won through client approval.

- Type: read · Key: `proposal_won_client`
- Requires: nothing
- SDK: `runAction({ app: "socket", actionType: "read", action: "proposal_won_client" })`
- CLI: `npx zapier-sdk run-action socket read proposal_won_client`

##### Proposal Won (Internally Approved)
Triggers when a proposal is won through internal approval.

- Type: read · Key: `proposal_won_internal`
- Requires: nothing
- SDK: `runAction({ app: "socket", actionType: "read", action: "proposal_won_internal" })`
- CLI: `npx zapier-sdk run-action socket read proposal_won_internal`

#### Functions (3)

Functions change something in Socket.

##### Create Client
Creates a new client in Socket.

- Type: write · Key: `client_create`
- Requires: name, primary_contact_name, primary_contact_email
- Optional: entity_type, status, registration_id, tax_country_code, client_code, aliases, primary_contact_phone
- SDK: `runAction({ app: "socket", actionType: "write", action: "client_create" })`
- CLI: `npx zapier-sdk run-action socket write client_create`

##### Create Lead
Creates a new lead with client and contact information.

- Type: write · Key: `lead_create`
- Requires: client__name, contact__name, contact__email
- Optional: stage_id, lane, title, temperature, deal_size, deal_value, client__entity_type, client__registration_number, client__client_code, contact__phone_number, note__heading, note__description
- SDK: `runAction({ app: "socket", actionType: "write", action: "lead_create" })`
- CLI: `npx zapier-sdk run-action socket write lead_create`

##### Add Note to Lead
Adds a note to an existing lead. The note is attributed to the Socket user whose account is connected to Zapier.

- Type: write · Key: `lead_note_create`
- Requires: lead_id, description
- Optional: heading
- SDK: `runAction({ app: "socket", actionType: "write", action: "lead_note_create" })`
- CLI: `npx zapier-sdk run-action socket write lead_note_create`

## Xama Hub

### Identity
Xama Hub enables the streamlined onboarding of customers through the automation of identity verification and anti money laundering checks.

- App slug: xama-hub
- Operations published here: 3 (2 functions, 1 query)

### Authentication
Zapier connects to Xama Hub via other. Your code references a connection, not a raw credential.

- Auth type: other
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection xama-hub
```

### Capabilities

#### Functions (2)

Functions change something in Xama Hub.

##### Create Client
Creates a new individual / company

- Type: write · Key: `create_xama_hub_client_action`
- Requires: client_name
- Optional: reg_number, primary_contact_first_name, primary_contact_middle_name, primary_contact_last_name, primary_contact_email, primary_contact_phone, primary_contact_primary_address_street, primary_contact_primary_address_city, primary_contact_primary_address_postcode, primary_contact_primary_address_country_code
- SDK: `runAction({ app: "xama-hub", actionType: "write", action: "create_xama_hub_client_action" })`
- CLI: `npx zapier-sdk run-action xama-hub write create_xama_hub_client_action`

##### Create Contact
Creates a new contact

- Type: write · Key: `create_xama_hub_contact_action`
- Requires: accountId, primary_contact_first_name, primary_contact_last_name, primary_contact_email
- Optional: primary_contact_middle_name, primary_contact_phone, primary_contact_primary_address_street, primary_contact_primary_address_city, primary_contact_primary_address_postcode, primary_contact_primary_address_country_code
- SDK: `runAction({ app: "xama-hub", actionType: "write", action: "create_xama_hub_contact_action" })`
- CLI: `npx zapier-sdk run-action xama-hub write create_xama_hub_contact_action`

#### Queries (1)

Queries read from Xama Hub and return data. They change nothing.

##### Find Client or Contact
Finds a client or contact by name or email.

- Type: search · Key: `xama_hub_search`
- Requires: query
- SDK: `runAction({ app: "xama-hub", actionType: "search", action: "xama_hub_search" })`
- CLI: `npx zapier-sdk run-action xama-hub search xama_hub_search`

## Frequently asked questions about automating with Socket and Xama Hub

### My AI agent already connects to my apps. Why add Zapier?

Your AI agent’s built-in or native connectors cover a limited set of popular apps. Zapier reaches 10,000+ apps and 90,000+ triggers and actions. Zapier also adds what your AI agent can’t: one place to manage logins and credentials, so you never paste an API key; automations that keep running after the chat closes, with fixes you can review when a run hits a snag; and the freedom to switch agent interfaces without starting over.

### Can’t my AI agent already run tasks on a schedule?

Most popular AI agents can run scheduled tasks. And for simple recurring jobs, that might be all you need. Automations that run on Zapier can run on a schedule too, but they can also start the moment something happens in your apps—like when a new lead/ticket comes in or you get an email reply. Zapier also uses AI only in the steps that need judgment, so routine steps like posting to Slack or updating Salesforce don’t burn model tokens.

### Why not have my AI agent write me a script?

You can, and the first version will probably work. The trouble comes later: a script needs somewhere to run, a way to hear about events, and someone to keep it going. If an API changes or a login expires, your script can quietly stop until you notice. It also holds your keys, often in a repo, where a leak can expose your accounts. With Zapier, your agent builds the automation, and you publish it. Zapier hosts it, handles your logins and credentials, and records every run. If a run fails, Zapier diagnoses what went wrong and prepares a fix you can review. Or you can decide which fixes Zapier can apply for you.

## Links
- Socket integrations: zapier.com/apps/socket/integrations.md
- Xama Hub integrations: zapier.com/apps/xama-hub/integrations.md
- Full page: zapier.com/apps/socket/integrations/xama-hub
- SDK: npmjs.com/package/@zapier/zapier-sdk