Skip to main content

Create OAuth2 Secret

Creates an OAuth2-type secret. KnoxCall stores the OAuth2 configuration encrypted at rest and manages token refresh automatically. After creation, complete the authorization flow by redirecting your user to the redirect_uri returned in the response. Supported providers: google, github, salesforce, microsoft, slack, custom For custom providers, you must supply auth_url and token_url.
OAuth2 secrets require a Pro or Enterprise plan.

Request Body

Response

Register the returned redirect_uri as an authorized redirect URL in your OAuth2 provider’s app settings before redirecting users through the authorization flow.
You can also create OAuth2 secrets via POST /v1/secrets with secret_type: "oauth2" and the same body fields.

Errors