Skip to main content
POST
/
environments
/
{environmentId}
/
settings
/
providers
Creates a new provider for the project environment
curl --request POST \
  --url https://app.dynamicauth.com/api/v0/environments/{environmentId}/settings/providers \
  --header 'Content-Type: application/json' \
  --data '{
  "provider": "emailOnly",
  "clientId": "<string>",
  "clientSecret": "<string>",
  "providerProjectId": "<string>",
  "defaultChainId": 123,
  "defaultChain": "eip155:1",
  "keyExportUrl": "<string>",
  "termsUrl": "<string>",
  "useDynamicCredentials": true,
  "scopes": "<string>",
  "appleKeyId": "<string>",
  "appleTeamId": "<string>",
  "shopifyStore": "<string>",
  "accountSid": "<string>",
  "twilioNumber": "<string>",
  "enabledCountries": [
    {
      "isoCountryCode": "US",
      "phoneCountryCode": "An example name"
    }
  ],
  "sendgridIpPoolName": "<string>",
  "multichainAccountAbstractionProviders": [
    {
      "clientId": "<string>",
      "chain": "<string>",
      "default": true
    }
  ],
  "entryPointVersion": "v6",
  "kernelVersion": "v2_4",
  "ecdsaProviderType": "zerodev_signer_to_ecdsa",
  "enableKernelV3Migration": true,
  "enableEIP7702": true,
  "factoryAddress": "<string>",
  "paymasterAddress": "<string>",
  "passkeyAddress": "<string>",
  "sessionAddress": "<string>",
  "zerodevBundlerProvider": "STACKUP",
  "zerodevBundlerRpcUrl": "<string>",
  "zerodevPaymasterRpcUrl": "<string>",
  "zerodevKernelDelegationAddress": "<string>",
  "domain": "<string>",
  "returnUrl": "<string>",
  "cancelUrl": "<string>"
}'
{
  "id": "95b11417-f18f-457f-8804-68e361f9164f",
  "provider": "emailOnly",
  "enabledAt": "2023-11-07T05:31:56Z",
  "clientId": "<string>",
  "clientSecret": "<string>",
  "providerProjectId": "<string>",
  "authorizationUrl": "<string>",
  "redirectUrl": "<string>",
  "defaultChainId": 123,
  "defaultChain": "eip155:1",
  "keyExportUrl": "<string>",
  "termsAcceptedByUser": {
    "termsUrl": "<string>",
    "email": "[email protected]",
    "userId": "95b11417-f18f-457f-8804-68e361f9164f",
    "createdAt": "2023-11-07T05:31:56Z"
  },
  "scopes": "<string>",
  "baseAuthUrl": "<string>",
  "appleKeyId": "<string>",
  "appleTeamId": "<string>",
  "shopifyStore": "<string>",
  "domain": "<string>",
  "accountSid": "<string>",
  "twilioNumber": "<string>",
  "enabledCountries": [
    {
      "isoCountryCode": "US",
      "phoneCountryCode": "An example name"
    }
  ],
  "sendgridIpPoolName": "<string>",
  "entryPointVersion": "v6",
  "kernelVersion": "v2_4",
  "factoryAddress": "<string>",
  "paymasterAddress": "<string>",
  "passkeyAddress": "<string>",
  "sessionAddress": "<string>",
  "salt": "<string>",
  "multichainAccountAbstractionProviders": [
    {
      "clientId": "<string>",
      "chain": "<string>",
      "default": true
    }
  ],
  "ecdsaProviderType": "zerodev_signer_to_ecdsa",
  "createNewAccounts": true,
  "enableKernelV3Migration": true,
  "enableEIP7702": true,
  "zerodevBundlerProvider": "STACKUP",
  "zerodevBundlerRpcUrl": "<string>",
  "zerodevPaymasterRpcUrl": "<string>",
  "zerodevKernelDelegationAddress": "<string>",
  "returnUrl": "<string>",
  "cancelUrl": "<string>"
}

Path Parameters

environmentId
string
required
Required string length: 36
Example:

Body

application/json
provider
enum<string>
required
Available options:
emailOnly,
magicLink,
apple,
bitbucket,
coinbasesocial,
discord,
epicgames,
facebook,
farcaster,
github,
gitlab,
google,
instagram,
linkedin,
microsoft,
twitch,
twitter,
blocto,
banxa,
coinbaseOnramp,
cryptoDotCom,
dynamic,
alchemy,
zerodev,
telegram,
turnkey,
coinbaseWaas,
sms,
spotify,
tiktok,
line,
steam,
shopify,
zksync,
kraken,
blockaid,
passkey,
okta,
sendgrid,
resend
clientId
string
clientSecret
string
providerProjectId
string
defaultChainId
integer
defaultChain
string
Required string length: 5 - 41
Example:
keyExportUrl
string
termsUrl
string
useDynamicCredentials
boolean
scopes
string
appleKeyId
string
appleTeamId
string
shopifyStore
string
accountSid
string
twilioNumber
string
enabledCountries
object[]
sendgridIpPoolName
string
multichainAccountAbstractionProviders
object[]
entryPointVersion
enum<string>
Available options:
v6,
v7
kernelVersion
enum<string>
Available options:
v2_4,
v3_0,
v3_1,
v3_2,
v3_3
ecdsaProviderType
enum<string>
Available options:
zerodev_signer_to_ecdsa,
zerodev_multi_chain
enableKernelV3Migration
boolean
enableEIP7702
boolean
factoryAddress
string
paymasterAddress
string
passkeyAddress
string
sessionAddress
string
zerodevBundlerProvider
enum<string>
Available options:
STACKUP,
PIMLICO,
ALCHEMY,
GELATO
zerodevBundlerRpcUrl
string
zerodevPaymasterRpcUrl
string
zerodevKernelDelegationAddress
string
domain
string
returnUrl
string
cancelUrl
string

Response

provider
enum<string>
required
Available options:
emailOnly,
magicLink,
apple,
bitbucket,
coinbasesocial,
discord,
epicgames,
facebook,
farcaster,
github,
gitlab,
google,
instagram,
linkedin,
microsoft,
twitch,
twitter,
blocto,
banxa,
coinbaseOnramp,
cryptoDotCom,
dynamic,
alchemy,
zerodev,
telegram,
turnkey,
coinbaseWaas,
sms,
spotify,
tiktok,
line,
steam,
shopify,
zksync,
kraken,
blockaid,
passkey,
okta,
sendgrid,
resend
id
string
Required string length: 36
Example:
enabledAt
string<date-time> | null
clientId
string
clientSecret
string
providerProjectId
string
authorizationUrl
string
redirectUrl
string
defaultChainId
integer
defaultChain
string
Required string length: 5 - 41
Example:
keyExportUrl
string
termsAcceptedByUser
object
scopes
string
baseAuthUrl
string
appleKeyId
string
appleTeamId
string
shopifyStore
string
domain
string
accountSid
string
twilioNumber
string
enabledCountries
object[]
sendgridIpPoolName
string
entryPointVersion
enum<string>
Available options:
v6,
v7
kernelVersion
enum<string>
Available options:
v2_4,
v3_0,
v3_1,
v3_2,
v3_3
factoryAddress
string
paymasterAddress
string
passkeyAddress
string
sessionAddress
string
salt
string
multichainAccountAbstractionProviders
object[]
ecdsaProviderType
enum<string>
Available options:
zerodev_signer_to_ecdsa,
zerodev_multi_chain
createNewAccounts
boolean
enableKernelV3Migration
boolean
enableEIP7702
boolean
zerodevBundlerProvider
enum<string>
Available options:
STACKUP,
PIMLICO,
ALCHEMY,
GELATO
zerodevBundlerRpcUrl
string
zerodevPaymasterRpcUrl
string
zerodevKernelDelegationAddress
string
returnUrl
string
cancelUrl
string