Skip to main content
An API key lets your code, or an AI assistant, call Valendata as you. Each key carries scopes: it can do only what its scopes allow, so a leaked key that can only read a skill cannot run one. This page covers managing keys in the app. How to send a key, and the full list of scopes, are in Authentication and scopes.

Create an API key

1

Open API Keys settings

Go to app.valendata.com and open Settings → API Keys.
2

Create a new key

Click Create key. A dialog asks for a name, the scopes, and an expiry.
3

Name your key

Name it after where it will be used, for example Production Server, Zapier Integration, or CI Pipeline. A clear name helps you find and revoke the right key later.
4

Pick the scopes and expiry

Tick only what this integration needs (see Scopes). The defaults let a key make, run, and read skills and workflows, read your credits, and use the universal web API. Everything else is opt-in. The default scopes are listed there. Pick an expiry (7, 30, or 90 days, 1 year, or never). An expired key stops working, like a revoked one.
5

Limit it to some skills or workflows (optional)

Under Limit to, pick the skills and/or workflows this key may use. Leave a list empty to allow all. See Limit a key to some skills or workflows.
6

Copy the key now

Valendata shows the full key once. Copy it now.
This is the only time the key is shown. Valendata does not keep a copy it can show again. If you lose it, revoke the key and create a new one.
7

Store the key safely

Paste the key into an environment variable or a secrets manager. Never put it in source files.
Keys created before scopes existed show a Full access badge. They keep every scope, so nothing that used them breaks. Replace them with scoped keys when you can.

Limit a key to some skills or workflows

A key can also be limited to a list of skills (allowed_skill_ids) and a list of workflows (allowed_workflow_ids). The two limits are separate: a key limited to some skills can still run every workflow unless you also pick workflows, and the other way round. An empty list means no limit. The keys list shows a N skills only or N workflows only badge on a limited key. Using it on anything else returns 403:
The limits apply to every API route for that skill or workflow, including its runs and schedules, and to the MCP tools: a limited key only sees the skill_<slug> and workflow_<slug> tools it may use.

Create a key from code

A signed-in session can create a key with POST /api/keys. Leave out scopes to get the default set. allowed_skill_ids limits the key to those skills only, and allowed_workflow_ids to those workflows only (up to 200 each). An id you cannot use returns 422. The 201 response holds the key in raw_key. It is returned only this once.

Use your API key

Send it in the Authorization: Bearer header. See Authentication and scopes. Keep it in an environment variable or a secrets manager, never in source code. Add .env to .gitignore.

Revoke an API key

To stop a key for good:
  1. Go to Settings → API Keys.
  2. Find the key by its name and the prefix shown in the Key column.
  3. Click the trash icon on that row.
  4. Confirm when prompted.
It stops working at once. Every later request with that key returns 401 Unauthorized. So does a request with an expired key.

Good habits

One key per integration

Make a separate key for each service or environment (production, staging, CI). Then you can revoke one without breaking the others.

Least privilege

Give each key only the scopes it needs, and an expiry. A dashboard that only reads results needs skills:read and runs:read, nothing that spends credits.

Rotate keys

Make a new key, switch your integration to it, check it works, then revoke the old one. Rotate keys when someone leaves the team.

Keep keys out of source control

Store keys in environment variables or a secrets manager. Use .gitignore and pre-commit hooks so a key is not committed by mistake.

Review your keys

Settings → API Keys lists every key with its name, prefix, creation date, and last use. Check it from time to time and revoke keys you no longer use.

Frequently asked questions

Revoke it at once in Settings → API Keys and create a new one. Check your run history for runs you did not start.
There is no fixed limit. One key per integration is a good habit, not a rule.
The key itself has no cost. Credits are used by the runs and other work the key starts.