Users
Start account linking
POST
appIdbearerAuthheader
x-app-id<token>Your application ID. Required on app-tier and user-tier routes. Omitted on routes that authenticate with x-app-api-key only.
header
AuthorizationBearer <JWT>JWT access token from POST /auth/verify. Required with x-app-id on user routes. On the smart-route quote it is optional and turns a preview into an executable quote.
application/json- body
provider*stringValue in
"google""twitter""apple""email""siwe""siws"redirectUrl?stringFormat
uriemail?stringFormat
emailLength
length <= 254address?stringLength
1 <= length <= 64200
application/json- response
type*stringValue in
"redirect""magic_link""wallet_challenge"url?stringsuccess?trueValue in
truemessage?stringcurl -X POST 'https://api.t.sufwankhalid.com/users/me/link-account/start' \ -H 'Content-Type: application/json' \ -d '{ "provider": "google"}'Example Response
{ "type": "redirect", "url": "string", "success": true, "message": "string"}