API quickstart
Make your first API call in five minutes, from a new key to the rows of a register.
Guide
About 5 minutesWhat you'll do
Create a key that can read registers, list what it may call, and read the first rows of a register.
Before you start
- You are a workspace Owner or Admin on the Pro or Enterprise plan.
- The workspace has at least one list register with a few rows.
- You can run
curlin a terminal.
Steps
- Select your name at the bottom of the sidebar, then Settings, then API keys.
- Select Create API key.
- Type Quickstart as the Name, tick the
registers:rows:readpermission, and select Create API key. - Select Copy and close, and keep the key somewhere safe.
- In a terminal, list the actions the key may call.
- List your registers.
- Read the first five rows of one register, using its name from the last answer.
What happens next
The last answer holds the register's columns, its total row count and its rows, each with an id and its cells:
The answer is shortened here. Use the row ids to change rows, as Rows shows.
If something goes wrong
401 missing_key or 401 invalid_key. Check the header reads Authorization: Bearer followed by the whole key.
403 missing_permission. The key lacks the permission the message names. Create a new key with it.
402 AI_ALLOWANCE_EXCEEDED. The workspace has no AI credit left. See Add AI credit.
404 not_found. No register has that name. Copy the name or code from the list.