Skip to main content
POST
/
api
/
v2
/
{portalId}
/
submission
/
oauth
/
{provider}
/
verify
OAuth Verification
curl --request POST \
  --url https://api.example.com/api/v2/{portalId}/submission/oauth/{provider}/verify \
  --header 'Content-Type: application/json' \
  --data '
{
  "authorizationCode": "<string>",
  "state": "<string>",
  "codeVerifier": "<string>"
}
'
{
  "account": {
    "value": "<string>",
    "isEligible": true,
    "description": "<string>"
  }
}

Path Parameters

portalId
string<uuid>
required

unique portal id (provided by Magna)

provider
string
required

OAuth provider

Body

application/json

Body

authorizationCode
string
required

OAuth authorization code

state
string
required

OAuth state parameter

codeVerifier
string
required

code verifier for PKCE flow

Response

200

account
object
required