Skip to main content
POST
Create Oauth Provider

Body

application/json

Create an authorization_code provider (the default when grant_type is omitted).

provider_id
string
required
name
string
required
client_id
string
required
token_url
string
required
auth_url
string
required
Minimum string length: 1
grant_type
string
default:authorization_code
Allowed value: "authorization_code"
client_secret
string | null
uses_pkce
boolean
default:false
code_challenge_method
string
default:S256
provider_type
enum<string> | null
Available options:
microsoft,
salesforce,
slack,
x
token_endpoint_auth_method
enum<string>
default:client_secret_post
Available options:
none,
client_secret_basic,
client_secret_post
authorization_params
Authorization Params · object
allowed_redirect_uris
string[]
default_redirect_uri
string | null

Response

Successful Response

Response model for OAuth provider.

id
string
required
organization_id
string
required
provider_id
string
required
name
string
required
client_id
string
required
token_url
string
required
uses_pkce
boolean
required
code_challenge_method
string | null
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
auth_url
string | null
grant_type
enum<string>
default:authorization_code

OAuth 2 grant a provider uses to obtain access tokens.

Available options:
authorization_code,
client_credentials
scopes
string[]
token_params
ClientCredentialsTokenParams · object

Optional extra fields for a client_credentials token request.

provider_type
string | null
mcp_server_url
string | null
token_endpoint_auth_method
string
default:client_secret_post
authorization_params
Authorization Params · object
is_dynamic_client
boolean
default:false
allowed_redirect_uris
string[]
default_redirect_uri
string | null