Create auth config

Create a new authentication configuration.

Body Params

Schema for creating an auth config.

Required fields vary by auth_type:

  • NONE: No additional fields required. Use custom_headers for API key auth.
  • BASIC: Requires username and password.
  • CLIENT_CREDENTIALS: Requires token_url, client_id, and client_secret.
  • AUTHORIZATION_CODE: Requires authorization_url, token_url, and client_id.

string
required
length ≥ 1

Display name for this auth config.

string
enum
required

Authentication type. Determines which other fields are required.

Allowed:
object | null

Custom HTTP headers to include with requests. Can be used with any auth type.

Username for BASIC authentication.

Password for BASIC authentication.

OAuth token endpoint URL. Required for CLIENT_CREDENTIALS and AUTHORIZATION_CODE.

OAuth client ID. Required for CLIENT_CREDENTIALS and AUTHORIZATION_CODE.

OAuth client secret. Required for CLIENT_CREDENTIALS.

Space-separated OAuth scopes to request.

OAuth authorization endpoint URL. Required for AUTHORIZATION_CODE.

array | null

Allowed redirect URIs for OAuth authorization code flow.

boolean
Defaults to true

Whether to use PKCE for AUTHORIZATION_CODE flow. Defaults to true.

Responses

Language
Credentials
URL
LoadingLoading…
Response
Choose an example:
application/json