Skip to main content
POST
CSharp (SDK)

Authorizations

Authorization
string
header
required

Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.

Headers

X-On-Behalf-Of
string

Optional external end-user identifier forwarded by the API gateway.

Body

application/json
state
string
required

The state query parameter the provider appended to redirect_uri.

Required string length: 1 - 512
code
string
required

The code query parameter the provider appended to redirect_uri.

Required string length: 1 - 4096

Response

201 - application/json

OK

id
string
required
object
any
required
server_id
string
required
name
string | null
required
auth_type
enum<string>
required

oauth credentials come only from the OAuth connect flow.

Available options:
bearer,
authorization,
headers,
none,
oauth
authorization_preview
string | null
required
header_names
string[]
required
status
enum<string>
required

needs_reauthorization when the OAuth provider no longer honors the credential.

Available options:
active,
needs_reauthorization
scopes
string[] | null
required

Scopes granted to an oauth credential; null for every other auth_type.

expires_at
string<date-time> | null
required
last_used_at
string<date-time> | null
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
revoked_at
string<date-time> | null
required