What API secrets do
An API secret is another service's API key or token, saved in Settings → API secrets. When Athean calls that service's API for you, Athean's servers add the secret to the request. The secret is sent only to the addresses you allow, and Athean works with the secret's name, never its value.
You can use API secrets from:
- Chat: ask Athean to read from or update another service.
- Agents and automations: their saved instructions or code can call the service on every run. See Agents and Event-triggered automations.
- Custom dashboards: a dashboard can show data it reads from the service. See Custom dashboards.
- Another AI assistant connected through MCP: it can use the secrets you can use, without receiving their values. See Use Athean from another AI assistant.
- No one can see a saved value. After you save a secret, its value is never shown again: not to you, not to organization administrators, and not in Chat. If an API response repeats the value, Athean hides it.
- Never paste a secret into Chat. Don't put an API key in a message, a file, or a link. Save it in Settings → API secrets, then tell Athean which secret to use by name.
- API requests are real and don't ask for approval. Athean makes API calls without an approval card, including requests that create, change, or delete data in the other service. Agree on exactly which requests Athean may make before it calls an API, and before you save an agent or automation that does.
- Public HTTPS services only. Athean calls APIs over HTTPS on the public internet. It can't reach services on a private network.
API secrets let Athean call other services. For the reverse, letting another tool call Athean, an organization administrator creates an organization API key; see API setup.
Add an API secret
Anyone in your organization can add an API secret. You become its owner.
- Open Settings → API secrets and select Add secret.
- Enter a Secret name, such as
reporting_api_key. The name must start with a letter and can have up to 64 letters, numbers, underscores, and hyphens. - Paste the key or token into Secret value. The value can be up to 8,192 bytes, and the field hides what you enter.
- In Allowed destinations, enter the HTTPS addresses the secret may be sent to, such as
https://api.example.com. Enter 1 to 10 addresses, separated by commas, without paths or query parameters. - Under Who can use this secret, keep Owner only or share it (see Choose who can use a secret).
- Select Save secret. Athean shows Secret saved. Authorized people can use it without seeing its value.
An allowed destination covers every path on that exact address. A secret allowed for https://api.example.com isn't sent to https://example.com or to any other subdomain. If a service redirects a request to a different address, Athean doesn't send the secret there.
To use the secret, ask Athean in Chat, or in an agent's or automation's conversation, to call the service, and name the secret to use. You don't need to set up a connection first. Athean can read the service's public API documentation, or you can share the documentation with it.
Rotate, edit, or remove a secret
Settings → API secrets lists every secret you can use or manage, with its Name, Owner, Who can use it, and Allowed destinations. Below each name, Can manage or Can use shows your access. Organization administrators see every secret in the organization.
To change a secret you manage, select its name, or open its row menu and select Manage secret:
- Rotate the value: enter the new key in New secret value (optional). Leave the field blank to keep the current value.
- Rename it or change where it can be sent: edit Secret name or Allowed destinations. You don't need to enter the value again.
- Change who can use it: update Who can use this secret.
- Transfer ownership: choose a person under Owner. The new owner can manage the secret. Afterward, your own access follows the secret's sharing settings unless you're an organization administrator.
Select Save secret to apply your changes. Renaming, rotating, changing access, and transferring ownership keep the secret's reference, so agents, automations, and dashboards that use it don't need to be updated.
Remove a secret
- Open the secret's row menu and select Remove.
- Select Remove secret to confirm.
Removal takes effect immediately: agents, automations, and dashboards that use the secret can no longer authenticate with it. Removing a secret can't be undone. Saving the same key again creates a new secret, so ask Athean to update anything that used the old one.
Troubleshoot API secrets
| Problem | What to check |
|---|---|
| Athean says a secret is unavailable or you don't have access | The secret was removed, or the person the request is for can't use it. Ask the owner or an organization administrator for access. For an agent, check every person it runs for; for an automation, check its owner. |
| Athean says a secret isn't allowed for this destination | The request's address isn't in Allowed destinations. Ask the owner or an organization administrator to add the exact HTTPS address. |
| A dashboard's API data shows an access error | The viewer needs access to the secret; sharing the dashboard doesn't grant it. API data never loads through an external share link. |
| Save secret is unavailable or shows an error | Check the name, value, and destinations against the rules in Add an API secret. With People and groups, select at least one person or group. |
| secret changed; reload before saving | Someone else saved the secret while you were editing. Select Reload latest. If you have unsaved changes, select Discard and reload to load the saved version, or Keep editing. |
| A secret or its Manage secret option is missing | The list shows only secrets you can use or manage. Only the owner and organization administrators see Manage secret and Remove. |
| A request timed out or failed | It may still have reached the service. Check the other service before asking Athean to try again, especially for a request that changes data. |
| Could not load your secrets | Select Retry. If it continues, contact support. |
| A key was pasted into Chat or a file | Chat messages and files are saved. Create a new key in the other service, revoke the exposed key there, and save the new key in Settings → API secrets. |