> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/integrations/catalog/coda.md).

# Coda

Connect to Coda to manage docs, pages, tables, and rows.

* Knowledge base source

### Connectors

Choose the connector that matches your authentication method. The options below use the names shown in StackAI.

| Connector | Authentication |
| --------- | -------------- |
| Coda      | API Token      |

#### Coda

Connect to Coda to access your docs, pages, and tables.

**Set up in Coda**

1. Sign in to Coda, click your avatar in the lower-left corner, and open Account settings.
2. Scroll to the API Settings section and click Generate API Token.
3. Give the token a name (optionally add a restriction to scope its access) and confirm to generate it.
4. Copy the token and store it securely; treat it like a password, as it can access every doc your account can.

**Set up in StackAI**

1. Open **Settings → Connections**, add a connection, and select **Coda**.
2. Enter the credentials and connection details in the fields below.
3. Save the connection and check its connection status. Select this saved connection when configuring an action or feature that uses it.

**Connection fields**

| StackAI field | Required | What to enter                                                                                     |
| ------------- | -------- | ------------------------------------------------------------------------------------------------- |
| API Token     | Yes      | Your Coda API token from your account settings. [Provider instructions](https://coda.io/account). |

**Provider documentation:** [Setup reference](https://coda.io/developers).

#### Verify the connection

Check that the connection is healthy. Then run a read operation against a resource the connected account can access. A successful connection check confirms authentication; it does not guarantee permission for every action.

If access is denied, check the credential or OAuth permissions, the selected account or environment, and access to the specific resource. Update expired credentials or reconnect after permissions change.

### Use an action

1. Add the required **Coda** action to the workflow.
2. Select a connection when the action requests one.
3. Complete the required fields. Use the reference picker when a value comes from another workflow step.
4. Run the workflow and inspect the action’s output. Check the result before using it in a later step.

### Actions

#### List Documents

List Coda documents you have access to

**Inputs**

| Field        | Type    | Required | Description                                         |
| ------------ | ------- | -------- | --------------------------------------------------- |
| Search Query | string  | No       | Filter documents by name.                           |
| Owned by Me  | boolean | No       | Only show documents you own.                        |
| Folder ID    | string  | No       | Only show documents in this folder.                 |
| Max Results  | integer | No       | Maximum number of documents to return (default 25). |

**Outputs**

| Field          | Type          | Description                   |
| -------------- | ------------- | ----------------------------- |
| Documents      | object\_array | List of Coda documents.       |
| Document Count | integer       | Number of documents returned. |
| Message        | string        | Summary of the operation.     |

#### Get Document

Get a Coda document with its pages and tables

**Inputs**

| Field    | Type            | Required | Description                                                               |
| -------- | --------------- | -------- | ------------------------------------------------------------------------- |
| Document | select (string) | Yes      | The Coda document to retrieve. Options load from the selected connection. |

**Outputs**

| Field    | Type          | Description               |
| -------- | ------------- | ------------------------- |
| Document | object        | The document metadata.    |
| Pages    | object\_array | Pages in the document.    |
| Tables   | object\_array | Tables in the document.   |
| Message  | string        | Summary of the operation. |

#### Create Document

Create a new Coda document

**Inputs**

| Field                 | Type   | Required | Description                                                        |
| --------------------- | ------ | -------- | ------------------------------------------------------------------ |
| Title                 | string | No       | Title for the new document. If blank, Coda assigns a default name. |
| Copy From Document ID | string | No       | ID of an existing document to copy.                                |
| Folder ID             | string | No       | ID of the folder to create the document in.                        |

**Outputs**

| Field            | Type   | Description                 |
| ---------------- | ------ | --------------------------- |
| Created Document | object | The newly created document. |
| Message          | string | Summary of the operation.   |

#### Delete Document

Delete a Coda document

**Inputs**

| Field    | Type            | Required | Description                                                             |
| -------- | --------------- | -------- | ----------------------------------------------------------------------- |
| Document | select (string) | Yes      | The Coda document to delete. Options load from the selected connection. |

**Outputs**

| Field   | Type   | Description                   |
| ------- | ------ | ----------------------------- |
| Message | string | Confirmation of the deletion. |

#### List Pages

List pages in a Coda document

**Inputs**

| Field       | Type            | Required | Description                                                                      |
| ----------- | --------------- | -------- | -------------------------------------------------------------------------------- |
| Document    | select (string) | Yes      | The Coda document to list pages from. Options load from the selected connection. |
| Max Results | integer         | No       | Maximum number of pages to return (default 100).                                 |

**Outputs**

| Field      | Type          | Description                    |
| ---------- | ------------- | ------------------------------ |
| Pages      | object\_array | List of pages in the document. |
| Page Count | integer       | Number of pages found.         |
| Message    | string        | Summary of the operation.      |

#### Get Page

Get details and content of a Coda page

**Inputs**

| Field    | Type            | Required | Description                                                                        |
| -------- | --------------- | -------- | ---------------------------------------------------------------------------------- |
| Document | select (string) | Yes      | The Coda document (select or paste ID). Options load from the selected connection. |
| Page     | select (string) | Yes      | The page (ID or name). Options load from the selected connection.                  |

**Outputs**

| Field         | Type          | Description                  |
| ------------- | ------------- | ---------------------------- |
| Page          | object        | The page metadata.           |
| Content Items | object\_array | The page's content elements. |
| Message       | string        | Summary of the operation.    |

#### Create Page

Create a new page in a Coda document

**Inputs**

| Field          | Type            | Required | Description                                                                        |
| -------------- | --------------- | -------- | ---------------------------------------------------------------------------------- |
| Document       | select (string) | Yes      | The Coda document (select or paste ID). Options load from the selected connection. |
| Page Name      | string          | Yes      | Name for the new page.                                                             |
| Subtitle       | string          | No       | Optional subtitle for the page.                                                    |
| Parent Page    | select (string) | No       | Parent page to nest this page under. Options load from the selected connection.    |
| Content Format | select (string) | No       | Format of the page content: markdown or html. Available values: Markdown, HTML.    |
| Page Content   | string          | No       | Initial content for the page in the chosen format.                                 |

**Outputs**

| Field        | Type   | Description               |
| ------------ | ------ | ------------------------- |
| Created Page | object | The newly created page.   |
| Message      | string | Summary of the operation. |

#### Update Page

Update a Coda page

**Inputs**

| Field          | Type            | Required | Description                                                                        |
| -------------- | --------------- | -------- | ---------------------------------------------------------------------------------- |
| Document       | select (string) | Yes      | The Coda document (select or paste ID). Options load from the selected connection. |
| Page           | select (string) | Yes      | The page (ID or name). Options load from the selected connection.                  |
| New Name       | string          | No       | New name for the page.                                                             |
| New Subtitle   | string          | No       | New subtitle for the page.                                                         |
| Content Format | select (string) | No       | Format of the new content: markdown or html. Available values: Markdown, HTML.     |
| New Content    | string          | No       | Replace the page content (in the chosen format).                                   |

**Outputs**

| Field        | Type   | Description               |
| ------------ | ------ | ------------------------- |
| Updated Page | object | The updated page.         |
| Message      | string | Summary of the operation. |

#### List Tables

List tables in a Coda document

**Inputs**

| Field       | Type            | Required | Description                                                                        |
| ----------- | --------------- | -------- | ---------------------------------------------------------------------------------- |
| Document    | select (string) | Yes      | The Coda document (select or paste ID). Options load from the selected connection. |
| Max Results | integer         | No       | Maximum number of tables to return (default 100).                                  |

**Outputs**

| Field       | Type          | Description                     |
| ----------- | ------------- | ------------------------------- |
| Tables      | object\_array | List of tables in the document. |
| Table Count | integer       | Number of tables found.         |
| Message     | string        | Summary of the operation.       |

#### Get Table

Get details about a Coda table

**Inputs**

| Field    | Type            | Required | Description                                                                        |
| -------- | --------------- | -------- | ---------------------------------------------------------------------------------- |
| Document | select (string) | Yes      | The Coda document (select or paste ID). Options load from the selected connection. |
| Table    | select (string) | Yes      | The table (ID or name). Options load from the selected connection.                 |

**Outputs**

| Field   | Type   | Description               |
| ------- | ------ | ------------------------- |
| Table   | object | The table details.        |
| Message | string | Summary of the operation. |

#### List Columns

List columns in a Coda table

**Inputs**

| Field       | Type            | Required | Description                                                                        |
| ----------- | --------------- | -------- | ---------------------------------------------------------------------------------- |
| Document    | select (string) | Yes      | The Coda document (select or paste ID). Options load from the selected connection. |
| Table       | select (string) | Yes      | The table (ID or name). Options load from the selected connection.                 |
| Max Results | integer         | No       | Maximum number of columns to return (default 100).                                 |

**Outputs**

| Field        | Type          | Description                   |
| ------------ | ------------- | ----------------------------- |
| Columns      | object\_array | List of columns in the table. |
| Column Count | integer       | Number of columns found.      |
| Message      | string        | Summary of the operation.     |

#### List Rows

List rows from a Coda table

**Inputs**

| Field            | Type            | Required | Description                                                                        |
| ---------------- | --------------- | -------- | ---------------------------------------------------------------------------------- |
| Document         | select (string) | Yes      | The Coda document (select or paste ID). Options load from the selected connection. |
| Table            | select (string) | Yes      | The table (ID or name). Options load from the selected connection.                 |
| Filter Query     | string          | No       | Filter rows by column value. Format: "Column Name":"value".                        |
| Sort By          | string          | No       | How to sort rows (natural, createdAt, or updatedAt).                               |
| Use Column Names | boolean         | No       | Use human-readable column names instead of IDs in row values (default: true).      |
| Max Rows         | integer         | No       | Maximum number of rows to return (default 200).                                    |
| Page Token       | string          | No       | Token from a previous response to fetch the next page.                             |

**Outputs**

| Field           | Type          | Description                              |
| --------------- | ------------- | ---------------------------------------- |
| Rows            | object\_array | The rows from the table.                 |
| Row Count       | integer       | Number of rows returned.                 |
| Next Page Token | string        | Token to fetch the next page of results. |
| Message         | string        | Summary of the operation.                |

#### Get Row

Get a specific row from a Coda table

**Inputs**

| Field            | Type            | Required | Description                                                                        |
| ---------------- | --------------- | -------- | ---------------------------------------------------------------------------------- |
| Document         | select (string) | Yes      | The Coda document (select or paste ID). Options load from the selected connection. |
| Table            | select (string) | Yes      | The table (ID or name). Options load from the selected connection.                 |
| Row ID           | select (string) | Yes      | The row (ID or name). Options load from the selected connection.                   |
| Use Column Names | boolean         | No       | Use human-readable column names instead of IDs (default: true).                    |

**Outputs**

| Field   | Type   | Description               |
| ------- | ------ | ------------------------- |
| Row     | object | The requested row data.   |
| Message | string | Summary of the operation. |

#### Upsert Rows

Insert or update rows in a Coda table

**Inputs**

| Field                      | Type            | Required | Description                                                                        |
| -------------------------- | --------------- | -------- | ---------------------------------------------------------------------------------- |
| Document                   | select (string) | Yes      | The Coda document (select or paste ID). Options load from the selected connection. |
| Table                      | select (string) | Yes      | The table (ID or name). Options load from the selected connection.                 |
| Row Data                   | object          | Yes      | Column-value pairs for the new row. Keys are column names.                         |
| Key Columns (Upsert Match) | string          | No       | Comma-separated column names to match on for upsert. If omitted, always inserts.   |
| Disable Parsing            | boolean         | No       | If true, Coda won't attempt to parse the data.                                     |

**Outputs**

| Field      | Type   | Description                           |
| ---------- | ------ | ------------------------------------- |
| Request ID | string | The mutation request ID for tracking. |
| Message    | string | Summary of the operation.             |

#### Update Row

Update a single row in a Coda table

**Inputs**

| Field    | Type            | Required | Description                                                                        |
| -------- | --------------- | -------- | ---------------------------------------------------------------------------------- |
| Document | select (string) | Yes      | The Coda document (select or paste ID). Options load from the selected connection. |
| Table    | select (string) | Yes      | The table (ID or name). Options load from the selected connection.                 |
| Row      | select (string) | Yes      | The row (ID or name). Options load from the selected connection.                   |
| Row Data | object          | Yes      | Column values to update. Keys are column names.                                    |

**Outputs**

| Field       | Type   | Description               |
| ----------- | ------ | ------------------------- |
| Updated Row | object | The updated row data.     |
| Message     | string | Summary of the operation. |

#### Delete Row

Delete a row from a Coda table

**Inputs**

| Field    | Type            | Required | Description                                                                        |
| -------- | --------------- | -------- | ---------------------------------------------------------------------------------- |
| Document | select (string) | Yes      | The Coda document (select or paste ID). Options load from the selected connection. |
| Table    | select (string) | Yes      | The table (ID or name). Options load from the selected connection.                 |
| Row ID   | select (string) | Yes      | The row (ID or name). Options load from the selected connection.                   |

**Outputs**

| Field   | Type   | Description                   |
| ------- | ------ | ----------------------------- |
| Message | string | Confirmation of the deletion. |

#### Delete Rows

Delete multiple rows from a Coda table

**Inputs**

| Field    | Type            | Required | Description                                                                        |
| -------- | --------------- | -------- | ---------------------------------------------------------------------------------- |
| Document | select (string) | Yes      | The Coda document (select or paste ID). Options load from the selected connection. |
| Table    | select (string) | Yes      | The table (ID or name). Options load from the selected connection.                 |
| Row IDs  | string          | Yes      | Comma-separated row IDs to delete.                                                 |

**Outputs**

| Field         | Type    | Description                            |
| ------------- | ------- | -------------------------------------- |
| Deleted Count | integer | Number of rows requested for deletion. |
| Message       | string  | Confirmation of the deletion.          |

#### Push Button

Press a button in a Coda table row

**Inputs**

| Field         | Type            | Required | Description                                                                        |
| ------------- | --------------- | -------- | ---------------------------------------------------------------------------------- |
| Document      | select (string) | Yes      | The Coda document (select or paste ID). Options load from the selected connection. |
| Table         | select (string) | Yes      | The table (ID or name). Options load from the selected connection.                 |
| Row ID        | select (string) | Yes      | The row (ID or name). Options load from the selected connection.                   |
| Button Column | select (string) | Yes      | The button column to press. Options load from the selected connection.             |

**Outputs**

| Field      | Type   | Description                       |
| ---------- | ------ | --------------------------------- |
| Request ID | string | The mutation request ID.          |
| Message    | string | Confirmation of the button press. |

### Important behavior

Actions that create, update, send, or delete data can change the connected service. Review their inputs before running them. A retry can repeat an operation; consider this when configuring retries for actions that change data.

The catalog lists the fields and capabilities available in the supplied provider definition. Availability can also depend on your deployment and organization’s Feature Access settings.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stackai.com/integrations/catalog/coda.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
