Skip to main content
POST
Create an auth connection

Authorizations

Authorization
string
header
required

A workspace API key from Workspace settings > API keys, sent as Authorization: Bearer cl_api_.... A Read only key can call the GET endpoints; every other method needs a Full access key.

Body

application/json
name
string
required

A name that is unique in the workspace, ignoring case, such as Orders API.

Required string length: 1 - 100
type
string
required
Allowed value: "oauth2_client_credentials"
tokenUrl
string<uri>
required

The HTTPS address access tokens are requested from.

Maximum string length: 2048
clientId
string
required
Required string length: 1 - 500
clientSecret
string
required

The client secret. It is encrypted and never returned.

Required string length: 1 - 8192
provider
string

Who issues the credentials, such as GitHub or Orders API. Shown beside the name.

Maximum string length: 100
scopes
string[]

The scopes to request. Left empty, none are named.

Maximum array length: 50
Required string length: 1 - 200
Pattern: ^[\x21\x23-\x5B\x5D-\x7E]+$
extraParams
object

Extra form fields for the token request, such as {"audience": "https://api.example.com"}.

basicAuthInHeader
boolean
default:false

Send the client ID and secret in an HTTP Basic Authorization header instead of the request body.

tokenHeaders
object

Headers sent with each token request, such as an API key the token endpoint asks for. Their values are encrypted and never returned; on an update, an empty value keeps the stored one.

Response

Created.

data
object
required