Credentials¶
Create and manage API credentials for connecting to AI model providers, speech services, search engines, and other external integrations.
Overview¶
Credentials store the API keys and authentication details needed to connect the fifthelement.ai platform to external services. Once a credential is configured, it becomes available for selection when setting up language models, batch models, ASR/TTS models, realtime voice models, embeddings, and tools.
Credentials are managed at the workspace level under Settings > Security & Access > Credentials.
Workspace Secrets
You can reference workspace secrets in credential fields and tool configurations using {{SECRETS.KEY}} syntax.
Managing Credentials¶

The Credentials page displays all configured credentials with:
| Column | Description |
|---|---|
| Credential Name | The name you assigned to the credential |
| Type | The provider type (e.g., OpenAI API, Azure OpenAI API) |
| Created On | Date and time the credential was created |
| Actions | Edit or Delete the credential |
Use the Search field to filter credentials by name.
Adding a Credential¶

- Navigate to Settings > Security & Access > Credentials
- Click "Create Credential"
- Search for and select a credential type from the chooser
- Fill in the required fields (varies by provider)
- Click "Save"
Several Keys on One Credential¶
A credential for an AI model or speech provider can hold several API keys. The platform picks a healthy key for each call and moves to the next one when a key is refused, runs out of credit, is rate limited or reaches the monthly cap you set, so a single exhausted key no longer stops the agents.

Edit Credential with two active keys, Add a Key and the How Keys Are Used section. A credential name that identifies a person is blurred in the list behind.
Keys list¶
Open Settings > Security & Access > Credentials, click Edit on a provider credential, and use the Keys list:
- Each key shows its label, the last four characters of its value, a status chip (Active, Paused, Invalid Key, Out of Quota, rate limited or cap reached) and, when it is down, an info icon with a tooltip saying what happened and when the key is back.
- Add a Key opens the dialog below. The pencil opens Edit Key; the bin removes a key after you save. Drag the handle to reorder keys. The last key cannot be removed.
- Saved keys are never shown again; a key that references a workspace secret shows the whole
{{SECRETS.KEY}}placeholder.

Add a Key with Label, the provider's API key, Paused, Monthly Cap (USD) and Requests per Minute.
| Field | Required | Description |
|---|---|---|
| Label | No | A name for the key, for example Primary or Backup |
| API Key | Yes | The provider's key. The field is named after the provider, for example OpenAI API Key |
| Paused | No | A paused key gets no new calls. Batch jobs already started with it keep using it |
| Monthly Cap (USD) | No | Spend through this platform in the calendar month (UTC). Leave empty for no cap |
| Requests per Minute | No | The key's own rate limit. Leave empty for no limit |
Edit Key shows the same fields plus the key's spend this month against its cap (a link that opens the Usage page filtered to that key and month), when it was last used and its last error. Leave the key field as it is to keep the current value; a new value clears the key's error.

Edit Key for a refused key: the spend link, Last used and the provider's last error, with the secret redacted.
How keys are used¶
| Setting | Options |
|---|---|
| How Keys Are Picked | In Priority Order (the first active key; the next only when it fails or is paused), Spread Evenly (each call takes a random active key; the default for new credentials) or Least Spent This Month |
| Stop a Key at (% of Its Cap) | A key with a monthly cap leaves rotation at this share of it. Default 95 |
A conversation stays on its key while that key is healthy; batch jobs and voice calls keep the key they started with. A task run stays on one key for the whole run.
Automatic failover¶
| What happened | What the platform does | Chip |
|---|---|---|
| The provider refused the key | The same call is retried on the next key at once. The key stays out until you Resume it or paste a new value in Edit Key | Invalid Key |
| The key is out of credit | The call moves on at once; the key rests for a day | Out of Quota |
| The provider rate-limited the key | The key rests for the time the provider asks, then serves again | Rate limited |
| The key reached its own Requests per Minute | The key is skipped for the rest of the minute | — |
| The key reached its monthly cap | The key rests until the first of the next month (UTC) | Cap reached |
| You paused the key | No new calls until you Resume it and save | Paused |
Errors that are not the key's fault, such as an unknown model, are not retried on another key. Resume puts a key back in rotation; the next call tests it.

After a refused call: the Primary key marked Invalid Key with its Resume link, and the Backup key still Active.
When every key is down
The call is refused with No healthy key for this provider. A credential with a single key behaves as before: the call fails with the provider's error.
Existing credentials open with their key as Primary in priority order and behave exactly as before. Each key's spend for the month is shown on the key and, in full, on the Usage page (By Key, Spend per Day by Key and the Credential and Key filters), which is where the per-key caps are measured.
Supported Providers¶
The Add Credential chooser provides these types. Existing credentials can retain older types that are no longer offered for new setup. AI model and speech provider credentials hold a Keys list; Atlassian API, MCP Server Token, Twilio and Cognitive Search credentials hold a single value.
| Provider | Used For |
|---|---|
| Atlassian API | Jira and Confluence crawls, signed in with an account email and API token |
| MCP Server Token | A bearer token for an external MCP server used by a Connector |
| Moonshot AI | Kimi chat models |
| Twilio | Ending a live phone call through a voice-agent tool |
| Google Batch AI | Vertex AI batch prediction with Cloud Storage inputs and results |
| Fireworks AI | Chat and embeddings |
| X AI | Grok chat and batch jobs |
| DeepSeek | Chat models |
| Google AI | Gemini chat and embeddings |
| Anthropic | Claude chat and batch jobs |
| Cognitive Search | Azure-hosted knowledge base embeddings |
| Azure OpenAI | GPT chat, embeddings and realtime voice |
| OpenAI | GPT chat, embeddings, realtime voice and moderation |
| Open Router | Chat models through a shared provider endpoint |
| LiveKit Inference | Chat, transcription, speech and realtime models |
| Google Cloud | Speech-to-text and text-to-speech |
| ElevenLabs | Voice replies and transcription |
| Speechmatics | Transcription |
| Sarvam | Indic-language transcription and voice replies |
| Groq | Chat, transcription and speech |
| Azure Speech | Transcription and voice replies |
| AssemblyAI | Transcription |
Provider Configuration Examples¶
Each provider requires different fields. Below are examples for common providers.
Simple API Key Providers¶
Providers like Google AI, OpenAI, Anthropic, ElevenLabs, and others require:

| Field | Required | Description |
|---|---|---|
| Credential Name | Yes | A descriptive name for this credential |
| API Key | Yes | The API key from the provider. On an existing credential it appears as the Primary key in the Keys list, where more keys can be added |
Azure OpenAI API¶

| Field | Required | Description |
|---|---|---|
| Credential Name | Yes | A descriptive name |
| Azure OpenAI API Key | Yes | Your Azure OpenAI API key |
| Azure OpenAI API Instance Name | Yes | Your Azure instance name (e.g., YOUR-INSTANCE-NAME) |
| Azure OpenAI API Version | Yes | API version with -preview suffix (e.g., 2024-08-01-preview) |
API Version
For batch models, use an Azure API version that includes the -preview suffix (minimum version: 2023-04-01-preview).
Atlassian API¶

Used by the Jira and Confluence crawls. The crawl looks the credential up on every run, so the job never stores the login and rotating the token in the credential is enough.
| Field | Required | Description |
|---|---|---|
| Credential Name | Yes | A descriptive name |
| Yes | The email address of the Atlassian account that owns the API token | |
| API Token | Yes | An Atlassian API token for this account, classic or scoped |
Classic or scoped tokens
One classic token can serve both Jira and Confluence crawls. A scoped token is created for one Atlassian app, so Jira and Confluence crawls each need their own scoped credential. The crawl forms list the scopes each app needs.
MCP Server Token¶

Used by a Connector whose authentication is Use an API token.
| Field | Required | Description |
|---|---|---|
| Credential Name | Yes | A descriptive name |
| Authorization Token | Yes | The bearer token for the MCP server. Leave it blank when the server uses sign-in instead |
To rotate a connector's token, edit the credential's value here, then use Refresh Tools List on the connector.
Vertex AI API¶
Existing Vertex AI credentials may still appear in the list. This type is not offered in the current Add Credential chooser. For new Gemini batch credentials, select Google Batch AI and follow that form's requirements.
LiveKit Inference API¶

Unified gateway for accessing STT, LLM, and TTS services.
| Field | Required | Description |
|---|---|---|
| Credential Name | Yes | A descriptive name |
| LiveKit API Key | Yes | API key for LiveKit Inference services |
| LiveKit API Secret | Yes | API secret for authentication |
Using Credentials¶
Once configured, credentials are referenced when creating:
- Language Models — select a credential for the model provider
- Batch Models — select a credential via "Connect Credential"
- ASR Models — select a credential for speech-to-text providers
- TTS Models — select a credential for text-to-speech providers
- Realtime Voice Models — select a credential for realtime processing
- Embeddings — select a credential for embedding providers
- Tools — some tools (e.g., Salesforce, HubSpot) use credentials for authentication
- Connectors — MCP Server Token credentials
- Web Crawling — Atlassian API credentials for Jira and Confluence crawls
Related Topics¶
- Usage — spend per credential and key
- API Keys — Platform API keys for external access
- DLP Policies — Data loss prevention settings
- Back to Settings