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.
7
Store the key safely
Paste the key into an environment variable or a secrets manager. Never put it in source files.
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:
skill_<slug> and workflow_<slug> tools it may use.
Create a key from code
A signed-in session can create a key withPOST /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 theAuthorization: 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:- Go to Settings → API Keys.
- Find the key by its name and the prefix shown in the Key column.
- Click the trash icon on that row.
- Confirm when prompted.
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
What do I do if a key leaks?
What do I do if a key leaks?
Revoke it at once in Settings → API Keys and create a new one. Check your run history for runs you did not start.
How many API keys can I create?
How many API keys can I create?
There is no fixed limit. One key per integration is a good habit, not a rule.
Do API key requests consume credits?
Do API key requests consume credits?
The key itself has no cost. Credits are used by the runs and other work the key starts.

