API keys
Create, scope, and revoke a personal API key for the Developer API.
An API key authenticates a request to the Developer API. Every key is personal: it acts as the team member who issued it and stays bounded by that member's live team permissions.
Before you start
You need a team and a role that may issue personal API keys. A member without that permission can open the API keys page but cannot create or edit a key.
Create a key
- Open FactorAI and select the team.
- Open Settings, then API keys.
- Select Generate new key.
- Enter a name of at most 120 characters that identifies the caller, such as
production deploy. - Choose an expiration of 30, 60, 90, or 365 days. A new key defaults to 30 days.
- Allow only the API actions the caller needs.
- Select Generate key.
- Copy the token when it appears. It starts with
sk_live_and is shown once; the list shows only its prefix afterwards.
The key list shows the name, token prefix, permissions, issuer, expiration,
last use, and status: active, expired, or revoked.
Permissions
A key carries two layers of permission:
- A capability level for each family, from
noneup toreadormanage. - Action grants, the exact action ids a mutating request may attempt, such
as
workflow.controlorrun.dispatch.
Allowing an action raises its family capability to the level that action requires, so a key never carries a grant its capability cannot express. The team or project permission policy is still evaluated last and can deny the request or require approval. A grant never widens what the issuing member may do.
See API overview for the capability levels and the full action list.
Edit a key
Select a key and choose Edit to rename it, change its action permissions, or reset its expiration to 30, 60, 90, or 365 days from today. The token does not change.
Revoke a key
Select Revoke and confirm. Revocation takes effect immediately: applications using the key lose access, and the key cannot be restored. Create a new key instead.
Use the key
Send the token to https://api.factorai.ai as Authorization: Bearer <key> or
in the x-api-key header. GET /v1/me reports the key's effective team,
capabilities, and action grants.
Related docs
- API overview - base URLs, error contract, and endpoint families
- Start a workflow - a full request example
- Command-line interface - install and authenticate the CLI