Skip to main content
How Argide authenticates when calling your API.

Auth Types


API Key

Your agent sends a static key in a custom header. OpenAPI spec:
Dashboard config:
  1. Select API Key
  2. Enter header name (X-API-Key)
  3. Enter your key

Bearer Token

Your agent sends a static token in the Authorization header. OpenAPI spec:
Dashboard config:
  1. Select Bearer Token
  2. Enter your token

JWT Forward

Your agent forwards the user’s Argide identity token to your API. This enables user-specific actions like “check my orders” or “cancel my subscription.”
This is not your app’s session JWT. It’s an Argide-scoped identity token your backend mints with ARGIDE_VERIFICATION_SECRET. See Identity Verification.

How it works

  1. Your backend mints an Argide identity token (JWT signed with Argide secret)
  2. Frontend passes it to widget: window.argide('identify', { token })
  3. When calling your API, Argide forwards that same token
  4. Your API verifies it (same secret) and identifies the user
OpenAPI spec:
Dashboard config:
  1. Select JWT Forward
  2. No additional config — token comes from widget user

Your API must verify the token

JWT Forward only works for authenticated widget users. Anonymous users won’t have a token to forward.

Which to Use?


Troubleshooting