Skip to main content
X-Auth-Proxy-Config-Id
string
required
Your Auth Proxy config ID, found in Dashboard → AUTH. See Auth Proxy reference for setup.
oidcToken
string
required
Base64 encoded OIDC token
publicKey
string
required
Client-side public key generated by the user, which will be conditionally added to org data based on the validity of the oidc token associated with this request
invalidateExisting
boolean
Invalidate all other previously generated Login API keys
organizationId
string
Unique identifier for a given Organization. If provided, this organization id will be used directly. If omitted, uses the OIDC token to look up the associated organization id.
A successful response returns the following fields:
session
string
required
Signed JWT containing an expiry, public key, session type, user id, and organization id
curl --request POST \
  --url https://authproxy.turnkey.com/v1/oauth_login \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header "X-Auth-Proxy-Config-Id: <string> (see Authorizations)" \
  --data '{
    "oidcToken": "<string>",
    "publicKey": "<string>",
    "invalidateExisting": "<boolean>",
    "organizationId": "<string>"
}'
{
  "session": "<string>"
}