Skip to main content
POST
/
v2
/
auth
/
providers
Create Oauth Provider
curl --request POST \
  --url https://api.example.com/v2/auth/providers \
  --header 'Content-Type: application/json' \
  --data '
{
  "provider_id": "<string>",
  "name": "<string>",
  "client_id": "<string>",
  "auth_url": "<string>",
  "token_url": "<string>",
  "client_secret": "<string>",
  "uses_pkce": false,
  "code_challenge_method": "S256",
  "token_endpoint_auth_method": "client_secret_post"
}
'
{
  "id": "<string>",
  "organization_id": "<string>",
  "provider_id": "<string>",
  "name": "<string>",
  "client_id": "<string>",
  "auth_url": "<string>",
  "token_url": "<string>",
  "uses_pkce": true,
  "code_challenge_method": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "provider_type": "<string>",
  "mcp_server_url": "<string>",
  "token_endpoint_auth_method": "client_secret_post",
  "is_dynamic_client": false
}

Body

application/json

Request model for creating OAuth provider manually.

provider_id
string
required
name
string
required
client_id
string
required
auth_url
string
required
token_url
string
required
client_secret
string | null
uses_pkce
boolean
default:false
code_challenge_method
string
default:S256
token_endpoint_auth_method
enum<string>
default:client_secret_post
Available options:
none,
client_secret_basic,
client_secret_post

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
auth_url
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
provider_type
string | null
mcp_server_url
string | null
token_endpoint_auth_method
string
default:client_secret_post
is_dynamic_client
boolean
default:false