API Keys

API keys give external applications and scripts programmatic access to your TinyCommand workspace. Use them to read/write table data, trigger workflows, access form submissions, and integrate with your own tools.

Generating an API key

  1. Go to Settings → API Keys (or click your avatar → API Keys)
  2. Click + Generate New Key
  3. Configure:
FieldDescription
NameA descriptive label (e.g., "Production Server", "CI/CD Pipeline", "Partner Integration")
ScopeWhich products the key can access (see scopes below)
PermissionsRead-only or Read/Write
ExpiryNever, 30 days, 90 days, or 1 year
  1. Click Generate
  2. Copy the key immediately: it's shown only once

Key scopes

ScopeAccess
Full workspaceAll products: tables, workflows, forms, agents, emails
Tables onlyRead/write table data, columns, views
Workflows onlyTrigger workflows, read execution history
Forms onlyRead form submissions, manage forms
Agents onlyInteract with agent conversations

Using your API key

Include the API key in the Authorization header:

curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://api.tinycommand.com/v1/tables

Or as a query parameter (not recommended for production):

https://api.tinycommand.com/v1/tables?api_key=YOUR_API_KEY

Common API endpoints

EndpointMethodDescription
/v1/tablesGETList all tables
/v1/tables/:id/rowsGETGet rows from a table
/v1/tables/:id/rowsPOSTCreate a new row
/v1/tables/:id/rows/:rowIdPATCHUpdate a row
/v1/tables/:id/rows/:rowIdDELETEDelete a row
/v1/workflows/:id/triggerPOSTTrigger a workflow
/v1/forms/:id/submissionsGETGet form submissions

Managing existing keys

In the API Keys section, each key shows:

ColumnDescription
NameYour label
Key prefixFirst 8 characters of the key (for identification)
ScopeWhat the key can access
CreatedWhen the key was generated
Last usedLast time the key was used for an API call
ExpiresWhen the key expires (or "Never")

Actions

ActionDescription
RegenerateCreates a new key with the same settings. The old key stops working immediately.
RevokePermanently deletes the key. Cannot be undone.
EditChange the name, scope, or permissions (the key string itself doesn't change)

Best practices

PracticeWhy
Use descriptive names"Production Backend - Tables R/W" is better than "API Key 1"
Scope narrowlyDon't use a Full workspace key when you only need Tables access
Set expiry datesKeys that never expire are a security risk. Set 90-day rotation.
Use read-only when possibleIf a service only reads data, give it a read-only key
Rotate regularlyRegenerate keys periodically, especially for production systems
Never commit to gitUse environment variables: TINYCOMMAND_API_KEY=your_key
Warning

API keys grant direct access to your workspace data. Treat them like passwords: never share them in Slack, email, or code repositories. If a key is compromised, revoke it immediately and generate a new one.

Note

API rate limits apply: 100 requests per minute per key on the free plan, 1,000 per minute on paid plans. If you hit rate limits, add delays between requests or contact support for higher limits.