Waits until the user follows the link provided via email or SMS and returns the confirmation code for authentication. If you sent this call and after 20 seconds you didn't get the code, there was an error. In this case, resend the call immediately. The code lifetime is 3 minutes.
The workflow of using this call:
send_link
is true
, after this request, you should send this same request to make email or SMS contain the confirmation code and link.
b. If the parameter send_link
is false
or not passed, the email will contain the confirmation code only.projectId required | string <uuid> Login project ID from Publisher Account. |
login required | string Login identifier of the user. Can be either an email address or phone number. |
operation_id required | string ID of the confirmation code. You can find its value in the response to a previous request. |
OK
Deadline exceeded
Too Many Requests
curl --request GET \ --url 'https://login.xsolla.com/api/otc/code?projectId=SOME_STRING_VALUE&login=SOME_STRING_VALUE&operation_id=SOME_STRING_VALUE'
{- "code": "string"
}