Skip to content

Start attaching Google or GitHub to the currently signed-in member.

GET
/account/security/oauth/{provider}/start
curl --request GET \
--url https://api.siteqwality.com/account/security/oauth/example/start \
--header 'Authorization: Bearer <token>'

Returns an org-scoped Stytch start URL (not discovery). The SPA navigates the browser there; after consent Stytch redirects to the dashboard callback with a token that complete_oauth_connect consumes.

provider
required
string

“google” or “github”

OAuth start URL

Media type application/json

Start URL for attaching an OAuth provider while already signed in.

object
url
required

Stytch public OAuth start URL. The browser navigates here directly.

string
Example generated
{
"url": "example"
}

Missing or invalid authentication

Endpoint requires a user session

Unknown provider

Internal server error