[New] Tables and Records API

Summary

  • Tables and Records let you store structured data in Asana. A Table holds Records (rows), and its columns are custom fields

  • New resource types: Table and Record.

  • New OAuth scopes: tables:read, tables:write, tables:delete, records:read, records:write, records:delete.

  • Records support comments through the existing Stories API (GET/POST /records/{record_gid}/stories).

  • Webhooks (added, changed, deleted, and undeleted) are supported on Tables and Records. Subscribe to changes with POST /webhooks.

Who is affected

  • No breaking changes. These are new resources and new endpoints; no existing endpoint’s request or response shape changed.

  • Developers who want to create and manage Tables and Records via API, instead of only through the Asana web app.

Key behaviors

  • A record belongs to exactly one table. custom_fields values can only be written for fields already present in that table’s custom field settings

  • Only global (published) custom fields can be added to a table. Adding a non-global field, whether reusing an existing field or creating one inline, fails with 403 Forbidden.

Timeline

This is a non-breaking, additive change. The tables and Records endpoints will be available to all developers on October 27, 2026.

Creating a table

POST /tables
{
  "data": {
    "name": "Vendor contracts",
    "workspace": "1331",
    "custom_field_settings": ["14916"]
  }
}

A custom_field_settings entry can be the GID of an existing global custom field, or an inline object creating a new one. This is equivalent to, but more efficient than, creating the table and then calling addCustomFieldSetting once per field.

Adding a custom field to an existing table

POST /tables/{table_gid}/addCustomFieldSetting
{
  "data": {
    "custom_field": "14916",
    "is_important": true
  }
}

Creating a record

POST /records
{
  "data": {
    "name": "Q3 renewal",
    "table": "1337",
    "custom_fields": {
      "5678904321": "On Hold"
    },
    "unique_fingerprint": "sfdc-opportunity-0061"
  }
}

Only custom fields already present in the record’s table can be set through custom_fields.

Listing records in a table

GET /tables/{table_gid}/records?limit=50&sort_by=created_at

{
  "data": [
    {
      "gid": "1203",
      "resource_type": "record",
      "name": "Q3 renewal"
    },
    {
      "gid": "1204",
      "resource_type": "record",
      "name": "Q4 renewal"
    }
  ],
  "next_page": {"offset": "...", "path": "...", "uri": "..."}
}

Searching records in a workspace

GET /workspaces/{workspace_gid}/records/search?text=Renewal&tables.any=12345,23456
{
  "data": [
    {
      "gid": "1203",
      "resource_type": "record",
      "name": "Q3 renewal"
    },
    {
      "gid": "1204",
      "resource_type": "record",
      "name": "Q4 renewal"
    }
  ]
}

Supported endpoints

Method Route
GET /workspaces/{workspace_gid}/tables
POST /tables
GET /tables/{table_gid}
PUT /tables/{table_gid}
DELETE /tables/{table_gid}
POST /tables/{table_gid}/addCustomFieldSetting
POST /tables/{table_gid}/removeCustomFieldSetting
GET /tables/{table_gid}/custom_field_settings
GET /tables/{table_gid}/records
POST /records
GET /records/{record_gid}
PUT /records/{record_gid}
DELETE /records/{record_gid}
GET /workspaces/{workspace_gid}/records/search
GET /records/{record_gid}/stories
POST /records/{record_gid}/stories

Error codes

Status Message
400 Bad Request Missing or malformed parameter. Check the documentation and the syntax of your request and try again.
401 Unauthorized A valid authentication token was not provided with the request.
402 Payment Required Advanced record search requires a premium Asana plan.
403 Forbidden Custom field already exists on the table.
403 Forbidden Cannot add a non-global (unpublished) custom field to a table.
403 Forbidden You cannot add any more custom fields to this table. The limit for custom fields on a table is 150.
404 Not Found The requested table or record does not exist, or you don’t have access to it.
409 Conflict A record with the given unique_fingerprint already exists in this table. A unique_fingerprint is a unique ID you choose for a record, such as its ID in another system. This conflict happens when you create a second record with the same value in the same table. This prevents retried or repeated imports from creating duplicate records in a table.
429 Too Many Requests You have exceeded one of the enforced rate limits in the API.
500 Internal Server Error There was a problem on Asana’s end.

Resources

Questions and Feedback

If you have questions or feedback about the Tables and Records API, please reply to this post.

5 Likes

Excellent - thanks, @Darya_Selivanava!

Thanks Darya, great to see this live.

One gap we ran into last week: there’s no endpoint for reading or changing record permissions (privacy or record members). The help article confirms access can be set per record, but there’s no way to change it in bulk, either in the UI or through the API.

A customer in pilot had 500+ records where users who could see the table (set to public to org) couldn’t find records they hadn’t created when searching in a reference custom field.
Making each record visible to the organisation fixed it, but it had to be done manually (ended up using Claude to interact with the browser and go through record by record - not ideal).

There wasn’t an option we could find in the API and therefore scripting to be able to achieve it, nor a bulk update option in the UI.

Are record permission endpoints, or a table-level default for new records, on the roadmap?

2 Likes

Hi @Andrea_Carlaw!

Record and table permissions both live on the Memberships API. The same endpoints are used: parent is the record GID or the table GID. A record parent returns record_membership. A table parent returns table_membership.

Method Endpoint
GET /memberships?parent={record_or_table_gid}
GET /memberships?parent={record_or_table_gid}&member={user_or_team_gid}
GET /memberships/{membership_gid}
POST /memberships
PUT /memberships/{membership_gid}
DELETE /memberships/{membership_gid}

access_level is admin, editor, commenter, or viewer

member can be a user or a team.

To share a record with a user: POST /memberships

{
   "data": {
      "parent": "{record_gid}",
      "member": "{user_gid}",
      "access_level": "editor"
   }
}

Adjust that membership level: PUT /memberships/{membership_gid}

{
   "data": {
      "access_level": "viewer"
   }
}

Remove access with DELETE /memberships/{membership_gid}.

For a set of existing records, list record’s memberships, then create or update them in a loop.

The memberships reference indeed does not currently mention tables or records. That is an omission on our side, and I will get the docs updated so they match this release shortly, appreciate you surfacing this :slight_smile:

The endpoints already support both, so you are welcome to build on them now.

1 Like

Hi @Andrea_Carlaw, thanks again for the feedback, and thanks to @Mikhail_Melikhov for the details on memberships.

On your question about a table-level default: right now it isn’t possible to change a table’s or record’s default access level through the API. I’ve passed your feedback to our engineering team and it has been added to the backlog.

2 Likes

Thanks for the release, great to see Tables in the API. We’ve been testing them from Script Actions on a converted table with 1,201 records and ran into a pagination gap. The list example in the announcement returns a next_page object with an offset, but we can’t get at that from inside a Script Action.

Here’s what we found:

  • A plain read tops out at 1,000 records. Asking for 1,001 gives a Bad Request.
  • With limit, the maximum is 100, and you get back a plain array with no next_page and no nextPage().
  • Any offset value is rejected with a Bad Request.
  • sort_by: created_at only works alongside limit, and only ascending. sort_by: modified_at is rejected.
  • modified_since works with limit.
  • apiClient isn’t defined in scripts, so we couldn’t try the raw REST call.

We did find a workaround. Read 100 at a time sorted by created_at, then use the last record’s created_at as modified_since for the next page, and de-duplicate by GID since the boundary record comes back twice. On our table that took 13 pages and returned all 1,201 distinct records in about 14 seconds.

A few caveats: we haven’t tried it on tables with edited records or with writes happening mid-walk, and if more than 100 records share the same created_at it stalls (our script detects that and stops).

Two questions:

  1. Is there a supported way to page past 1,000 records from a Script Action, like an offset or next-page token? We’d much rather use that than the created_at trick.
  2. Is the 1,000-record cap on plain reads here to stay?

Hi @Thomas_Colman ! Thanks for the detailed write-up and welcome to the community!

Needing to ingest an entire table is a strong sign that the job may not be a good fit for Script Actions. They work great for granular, record-scoped operations, but they aren’t designed for pulling in wide datasets. Even a workaround that performs well today will inevitably run into the execution timeout as the table grows. That’s one of the reasons pagination isn’t exposed in Script Action contexts, so to answer your questions directly: there is no supported offset or next-page token there.

That said, there is a workaround I can suggest that is a bit more robust: the search endpoint (availability may be subject to subscription tier). It lets you walk through the whole table sorted by the stable created_at marker. Here’s the approach I have in mind:

async function run(typedInputs) {
  const table_gid = "<table_gid>";
  const seen = new Set();
  let after = null;
  while (true) {
    const opts = {
      "tables.any": table_gid,
      sort_by: "created_at",
      sort_ascending: true,
      limit: 100,
      opt_fields: "created_at",
    };
    if (after) opts["created_at.after"] = after;
    const records = await recordsApiInstance.searchRecordsForWorkspace(workspace_gid, opts);
    const fresh = records.filter(r => !seen.has(r.gid));
    if (fresh.length === 0) break;
    fresh.forEach(r => seen.add(r.gid));
    // Step back 1ms so records sharing the boundary timestamp aren't skipped,`seen` drops repeats
    after = new Date(Date.parse(records[records.length - 1].created_at) - 1).toISOString();
  }
  log(`total: ${seen.size}`);
}
run(typedInputs);

Please note the expected search quirks (indexing delays). It does the job, but if this is a recurring need, I’d strongly suggest exploring an external service that calls the API directly, where you have full pagination support and no execution time limits.

Hope this helps!

1 Like