Confirmation

Verify SMS code

Exchanges an OTP code sent via SMS for an action token that can be used to confirm that the action being executed is approved by the end-user

post/api/v1/confirmation/sms/verify

Request

  • Base URL
    https://api-baas.wirexapp.com
  • URL
    https://api-baas.wirexapp.com/api/v1/confirmation/sms/verify
  • Auth
    • API key in header Authorization
    • or API key in header X-Chain-Id and API key in header X-User-Wallet and API key in header Authorization

Request body */*

codestring required

Code is the SMS confirmation code entered by the user

session_idstring required

SessionId is the unique identifier for the users session created using Request Sms Code endpoint

Example request

{
  "code": "123456",
  "session_id": "00000000-0000-0000-0000-000000000001"
}

Response

OK

tokenstring required

Token Signed JWT token

Example response

{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJLaXdpIjoiV293LCBkaWRuJ3QgdGhpbmsgc29tZW9uZSB3b3VsZCBhY3R1YWxseSBkZWNvZGUgdGhpcy4gUHJvcHMgZm9yIGN1cmlvc2l0eSBtYXRlIiwiaWF0IjoxNzQ0MDAzNjE5fQ.9dtAkgB2NCP5xnAF0xhfqazoL5UOBBw5xji0r-PzGEU"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.