API Keys
Overview#
An API key lets your own code use 7en.ai — creating agents, managing knowledge sources, and talking to your agents from your own application.
Keys are created and revoked under Settings → API keys.
Creating a key#
- Open Settings → API keys.
- Create a key, give it a Name you will recognise later, and choose when it expires.
- The key is shown once, immediately after it is made.
You see the key once
Copy it straight away and store it somewhere safe. It is never shown again — if you lose it, the only option is to revoke it and make another.
Name keys after where they are used — website-backend, nightly-import — not after the person who made them. When you come to revoke one, you want to know what will break.
Expiry#
Each key has an expiry, shown in the list as Expires in. When a key expires it stops working, and anything using it stops with it.
Set a date you will actually notice, and replace keys before they lapse rather than after.
Revoking a key#
Revoking takes effect immediately and cannot be undone — anything using that key stops working at once.
Revoke a key when it has been exposed, when the integration using it is retired, or when someone with access to it leaves.
Availability#
API keys are part of some plans and not others. If the tab tells you to upgrade to create keys, your current plan does not include API access — Plan & billing shows what does.
Using your key#
Once you have a key, the API Reference covers authentication, the available endpoints and example requests in several languages.