OAuth 2.0
OAuth 2.0 credentials manage access tokens with automatic refresh — for APIs that issue short-lived tokens via authorization code or client credentials grants.
Supported flows
Section titled “Supported flows”| Flow | Use when |
|---|---|
| Client credentials | Machine-to-machine, no user login |
| Authorization code | User-delegated access to a provider (CRM, calendar, etc.) |
Exact provider fields depend on your OAuth server — Chatevo stores client ID, client secret, token URL, and scopes encrypted.
Create (client credentials)
Section titled “Create (client credentials)”- Credentials → Create → OAuth 2.0.
- Name — e.g.
CRM API OAuth. - Grant type — Client credentials.
- Token URL — provider token endpoint.
- Client ID and Client secret.
- Scopes — space-separated if required.
- Save → Chatevo fetches and refreshes tokens automatically.
Create (authorization code)
Section titled “Create (authorization code)”- Register redirect URI with your OAuth provider (Chatevo shows the callback URL).
- Enter authorization URL, token URL, client ID, secret, and scopes.
- Click Authorize in the dashboard to complete consent.
- Attach credential to tools.
Runtime behavior
Section titled “Runtime behavior”Chatevo requests or refreshes tokens before tool calls. The model never sees access or refresh tokens.
When to use OAuth vs Bearer
Section titled “When to use OAuth vs Bearer”| OAuth 2.0 | Bearer token |
|---|---|
| Expiring access tokens | Long-lived static token |
| Provider requires refresh | Simple PAT from vendor dashboard |
Troubleshooting
Section titled “Troubleshooting”| Issue | Check |
|---|---|
| 401 after weeks | Re-authorize; confirm refresh token valid |
| invalid_client | Client ID/secret mismatch |
| insufficient_scope | Add scopes on credential |