# Coda — Pipedream Connect

> Coda is familiar like a doc and engaging like an app, so your team can jump in quickly, collaborate effectively, and make decisions that stick.

- API slug: `coda` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Productivity
- Website: https://coda.io
- This page (HTML): https://pipedream.com/apps/coda
- Tools: 15 actions · 1 trigger

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: coda`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "coda",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Copy Doc:
const result = await mcp.callTool({
  name: "coda-copy-doc",
  arguments: {
    docId: "Source Doc ID",
    title: "Title",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## API proxy

For a Coda endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://coda.io/apis/v1/whoami

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9jb2RhLmlvL2FwaXMvdjEvd2hvYW1p?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.md)

## SDK

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "coda-copy-doc",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    coda: { authProvisionId: "apn_xxxxxxx" },
    docId: "Source Doc ID",
    title: "Title",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (15)

### `coda-copy-doc` — Copy Doc (Write)

Creates a copy of the specified doc. See docs

Full schema: https://pipedream.com/apps/coda/actions/copy-doc.md

### `coda-create-doc` — Create Doc (Write)

Creates a new doc. See docs

Full schema: https://pipedream.com/apps/coda/actions/create-doc.md

### `coda-create-rows` — Create Rows (Write)

Creates a new row in a Coda table. Requires a doc ID and table ID — use the List Docs and List Tables actions to discover these. Column values are set via columnValues, a flat object mapping column ID or name to value (use the List Columns action to look up column IDs); plain text is fine for text…

Full schema: https://pipedream.com/apps/coda/actions/create-rows.md

### `coda-delete-row` — Delete Row (Write)

Delete a single row by name or ID. See docs

Full schema: https://pipedream.com/apps/coda/actions/delete-row.md

### `coda-find-row` — Find Row (Read-only)

Searches for a row in the selected table using a column match search. See docs

Full schema: https://pipedream.com/apps/coda/actions/find-row.md

### `coda-get-page` — Get Page Content (Read-only)

Fetch the content of a single page by name or ID. See docs

Full schema: https://pipedream.com/apps/coda/actions/get-page.md

### `coda-get-page-content` — Get Page Content (Read-only)

Fetch the content of a single page by name or ID. See docs

Full schema: https://pipedream.com/apps/coda/actions/get-page-content.md

### `coda-get-row` — Get Row (Read-only)

Fetch a single row by name or ID. See docs

Full schema: https://pipedream.com/apps/coda/actions/get-row.md

### `coda-list-columns` — List Columns (Read-only)

Lists columns in a table. See docs

Full schema: https://pipedream.com/apps/coda/actions/list-columns.md

### `coda-list-docs` — List Docs (Read-only)

Returns a list of docs accessible by the user. These are returned in the same order as on the docs page: reverse chronological by the latest event relevant to the user (last viewed, edited, or shared). See docs

Full schema: https://pipedream.com/apps/coda/actions/list-docs.md

### `coda-list-formulas` — List Formulas (Read-only)

Lists formulas in a doc. See docs

Full schema: https://pipedream.com/apps/coda/actions/list-formulas.md

### `coda-list-pages` — List Pages (Read-only)

List all pages in a document. See docs

Full schema: https://pipedream.com/apps/coda/actions/list-pages.md

### `coda-list-tables` — List Tables (Read-only)

Lists tables in a doc. See docs

Full schema: https://pipedream.com/apps/coda/actions/list-tables.md

### `coda-update-row` — Update a Row (Write)

Updates an existing row in a Coda table. Requires a doc ID, table ID, and row ID — use the List Docs, List Tables, and Find Row actions to discover these. Column values to change are set via columnValues, a flat object mapping column ID or name to value (use the List Columns action to look up…

Full schema: https://pipedream.com/apps/coda/actions/update-row.md

### `coda-upsert-rows` — Upsert Rows (Write)

Creates a new row, or updates an existing row if one already matches the given keyColumns values, in a Coda table. Requires a doc ID and table ID — use the List Docs and List Tables actions to discover these. keyColumns identifies which column(s) uniquely identify a row (e.g. a name or external ID…

Full schema: https://pipedream.com/apps/coda/actions/upsert-rows.md

## Triggers (1)

### `coda-row-created` — New Row Created (Polling)

Emit new event for every created / updated row in a table. See the documentation.

Full schema: https://pipedream.com/apps/coda/triggers/row-created.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
