POST
/
sdk
/
{environmentId}
/
providers
/
{providerType}
/
initAuth
curl --request POST \
  --url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/providers/{providerType}/initAuth \
  --header 'Content-Type: application/json' \
  --data '{
  "state": "<string>",
  "redirectUrl": "https://website-sample.com"
}'
This response has no body data.

Path Parameters

environmentId
string
required

ID of the environment

Required string length: 36
providerType
enum<string>
required

Type of external auth provider

Available options:
emailOnly,
magicLink,
apple,
bitbucket,
coinbasesocial,
discord,
epicgames,
facebook,
farcaster,
github,
gitlab,
google,
instagram,
linkedin,
microsoft,
twitch,
twitter,
blocto,
banxa,
dynamic,
alchemy,
zerodev,
telegram,
turnkey,
coinbaseWaas,
sms,
spotify,
tiktok,
line,
steam,
shopify

Body

application/json
OAuth temporary auth code
state
string
required

Temporary auth state for oauth2 access

redirectUrl
string