Skip to main content
Every call the agent makes to your API carries the credentials you set under Tools → Server Side → Authentication. Pick a type, fill in its fields, and click Save Configuration.

Auth types

Argide ignores securitySchemes and security in your spec. Authentication is configured only here, and it applies to every enabled endpoint.

Which one to use

With Bearer Token or API Key, every user’s requests go out with the same credential. The agent can reach anything that credential can — for any user who asks. Don’t use a shared credential for endpoints that return per-user data; use JWT Forward.

Bearer Token

Paste the token only into Bearer Token — for example sk_live_abc123, not Bearer sk_live_abc123. Argide adds the Bearer prefix itself. There’s no header-name field: the token always goes in Authorization.

API Key

  1. Paste the key into API Key.
  2. Optionally set API Key Header to the header your API expects, such as X-Acme-Key. Leave it empty to use X-API-Key.
Argide sends the key as-is, with no prefix.

Saved credentials

  • Credentials are stored encrypted and never shown again. Once saved, the field shows “Credentials are already saved. Enter a value to replace them.” Leave it empty to keep the saved value.
  • Bearer Token and API Key need a credential the first time you save.
  • Switching to None or JWT Forward deletes any saved credential.
  • The agent can’t override your auth header. If your spec declares a header parameter named Authorization or the same as your API key header, Argide drops the agent’s value and sends yours.

JWT Forward

JWT Forward lets the agent call your API as the signed-in user. Your backend mints a short-lived token for each user, the widget passes it to Argide, and Argide forwards that exact token to your API as Authorization: Bearer <token>. Selecting JWT Forward has no fields — the token comes from the user’s browser session. Setting up the token is covered in Identity verification.

What your API receives

Verify the token in your API

Verify the signature with your ARGIDE_AUTH_SECRET and the HS256 algorithm, then read the user ID from sub, userId, or user_id — whichever your backend put in the token.
Return a clear 401 when the header is missing, the token is invalid, or it has no user ID. The agent sees the status and can tell the user to sign in.

Troubleshooting