Integration authentication
How connectors sign in to outside services — OAuth, API keys, and connection strings — and how to keep those credentials safe.
En esta página
Every connector needs a way to prove to the outside service who you are. This page explains the three common ways and how to rotate secrets safely. It is for anyone choosing or maintaining credentials for a connector.
In all cases the credentials live in a connection, stored in the Vault. A connector uses them through the active config profile on its MCP instance. Never paste secrets into a workflow graph or a script.
Which method does my connector use?
| Method | Typical connectors | What you do |
|---|---|---|
| OAuth sign-in | Google connectors (Gmail, Drive, Sheets, Calendar, and others) | Sign in and approve permissions |
| Meta sign-in or access token | Use Connect with Meta, or paste an access token | |
| API key or token | Resend, GitHub, Shopify, Notion, ClickUp, Exa, ActiveCampaign, and many more | Create a key in the service, then paste it into a connection |
| Connection string | Database connectors such as Postgres, MySQL, MongoDB, and Redis | Paste the connection string or credentials the connector asks for |
Each connector page lists the exact fields it needs.
OAuth sign-in (Google)
OAuth lets you approve access without sharing your password. AgentRuntime keeps the tokens and refreshes them for you.
- Open Connections and click Sign in with Google.
- Enter a Display name and pick the Google services you need.
- Click Continue to Google, sign in, and approve the permissions.
The permissions you approve decide which tools work. To add a service later, open the account and click Update permissions. If access is revoked or expires, open the account and click Reconnect.
Other services that offer OAuth sign-in appear under Accounts when you click Add from template, with a Connect button.
WhatsApp can use Meta's signup (Connect with Meta) or pasted keys (Paste API keys: access token, WhatsApp Business Account ID, and optionally a phone number ID). See the WhatsApp connector.
API keys and personal access tokens
API keys are the most common method for developer tools, email providers, and search services.
- Create a key in the outside service
Give it the fewest permissions that still let your workflow work.
- Save it as a connection
On Connections, click Add from template (or New custom connection), paste the key, and click Save.
- Attach it to the instance
On the instance's Instance config page, choose the connection in the profile you use for workflows.
Rotate a key safely
- Create the new key in the outside service. Keep the old one active for now.
- In AgentRuntime, open the connection, click Rotate, enter the new key, and click Save to Vault.
- Click Test, then run a small workflow to confirm it works.
- Revoke the old key in the outside service.
If you revoke the old key before updating the connection, tool calls in active runs fail. Update the connection first.
Database connection strings
Database connectors use a connection string or similar credentials. Good habits:
- Create a database user with read-only access when the workflow only reads data.
- Use separate connections for test and production databases.
Signing in to AgentRuntime itself
Connector credentials are separate from how you sign in to AgentRuntime:
| Method | Used for |
|---|---|
| Console sign-in | Using the web Console |
| Personal access token (PAT) | Scripts, CI, and the API |
| Webhook signature | External systems that start workflows through an inbound webhook |
See API authentication for PATs.
Common problems
| Problem | What to do |
|---|---|
| A tool fails with 401 or 403 | The key may be wrong, expired, or missing permissions. Click Rotate to enter a new one. |
| A Google connector stops working | Open the Google account and click Reconnect. |
| The connector cannot find credentials | Check that the instance's active profile uses the connection. |