Coda

Create rows, list tables, and manage data in Coda docs.

ProductivityAPI key8 actionsAll integrations

On this page
  1. Connect
  2. Call it from a workflow
  3. Actions (8)
  4. create-row
  5. find-row
  6. list-tables
  7. update-row
  8. custom_api_call
  9. get-row
  10. get-table
  11. upsert-row
  12. Details

Connect

Auth type: API key (secret_text). Pass the provider's API key or token as the connection's credential. It is sealed at rest and only opened on the server when an action runs.

  • From your agent: integrations {action: "connect", piece, credentials, env} stores the credentials for dev, prod or all. Answers name the fields, never the values.
  • Or set the integration's project secrets with the secrets tool (SLACK_BOT_TOKEN, DISCORD_WEBHOOK_URL, TELEGRAM_BOT_TOKEN, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN …): a call uses the connection, else those secrets. integrations {action: "catalog", piece} lists which ones work.
  • Try one action now with integrations {action: "call", piece, piece_action, input}. It really sends.

Call it from a workflow

step.ctx.integrations.invoke("coda", action, input) resolves with the provider's answer and rejects when Coda isn't connected or refuses. Wrap it in step.run so a retry sends once. See step.ctx. Its actions run through the integration runner, which the server's operator turns on: integrations {action: "catalog", piece: "coda"} says whether yours can call it.

Workflow
// workflows/notify.ts: call Coda when a booking is confirmed
import { on } from "@appbricx/workflows";

export const tellCoda = on.transition("booking", "status", "confirmed", async (_event, step) => {
  // Recorded once: a retry doesn't send it twice. Rejects when Coda isn't connected.
  const output = await step.run("Coda", () =>
    step.ctx.integrations.invoke("coda", "create-row", {
      "docId": "<docId>",
      "tableId": "<tableId>",
      "rowData": {}
    }),
  );
  step.ctx.log("Coda answered", output);
});
Try it from your agent
{
  "name": "integrations",
  "arguments": {
    "project_id": "<project-id>",
    "action": "call",
    "piece": "coda",
    "piece_action": "create-row",
    "input": {
      "docId": "<docId>",
      "tableId": "<tableId>",
      "rowData": {}
    },
    "env": "dev"
  }
}
From another backend (connector proxy)
curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/coda/create-row" \
  -H "Authorization: Bearer $APP_KEY" \
  -H "content-type: application/json" \
  -d '{"props":{"docId":"<docId>","tableId":"<tableId>","rowData":{}}}'

Actions

create-row

Create Row. Creates a new row in the selected table.

Also accepted as create_row.

InputTypeDescription
docIdrequiredid (picked from your account)Document
tableIdrequiredid (picked from your account)Table
rowDatarequiredobject (depends on other props)Define the data for the new row based on table columns.

find-row

Find Row(s). Find specific rows in the selected table using a column match search.

InputTypeDescription
docIdrequiredid (picked from your account)Document
tableIdrequiredid (picked from your account)Table
searchColumnrequiredid (picked from your account)Search Column
searchValuerequiredtextSearch Value

list-tables

List Table(s). List tables in a selected document.

InputTypeDescription
docIdrequiredid (picked from your account)Document
maxrequirednumberMaximum number of results to return.

update-row

Update Row. Updates an existing row in the selected table.

Also accepted as update_row.

InputTypeDescription
docIdrequiredid (picked from your account)Document
tableIdrequiredid (picked from your account)Table
rowIdOrNamerequiredtextRow ID or Name
rowDatarequiredobject (depends on other props)Define the data for the new row based on table columns.

custom_api_call

Custom API Call. Make a custom API call to a specific endpoint

InputTypeDescription
urlrequiredobject (depends on other props)url
methodrequiredone of "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD"Method
headersrequiredobjectAuthorization headers are injected automatically from your connection.
queryParamsrequiredobjectQuery Parameters
body_typeoptionalone of "none" | "json" | "form_data" | "raw"Body Type
bodyoptionalobject (depends on other props)Body
response_is_binaryoptionalbooleanEnable for files like PDFs, images, etc.
failsafeoptionalbooleanNo Error on Failure
timeoutoptionalnumberTimeout (in seconds)
followRedirectsoptionalbooleanFollow redirects

get-row

Get Row. Retrieves a single row by specified ID.

InputTypeDescription
docIdrequiredid (picked from your account)Document
tableIdrequiredid (picked from your account)Table
rowIdOrNamerequiredtextRow ID or Name

get-table

Get Table. Get structure and details of a specific table (e.g., columns, schema).

InputTypeDescription
docIdrequiredid (picked from your account)Document
tableIdrequiredid (picked from your account)Table

upsert-row

Upsert Row. Creates a new row or updates an existing one if it matches key columns.

InputTypeDescription
docIdrequiredid (picked from your account)Document
tableIdrequiredid (picked from your account)Table
keyColumnsrequiredids (picked from your account)Matching Columns
rowDatarequiredobject (depends on other props)Define the data for the new row based on table columns.

Details

Id
coda
Category
Productivity
Tags
docs, tables, database, collaborative
Package
@activepieces/piece-coda@0.1.4
Runs
Through the integration runner