RelayAPI

Request verification code via SMS or voice

POST
/v1/whatsapp/phone-numbers/{phone_number_id}/request-code
AuthorizationBearer <token>

API key (rlay_live_* or rlay_test_). Invite redemption also accepts a server-derived rlay_session_ bearer for a current user session.

In: header

Path Parameters

phone_number_id*string

Phone number resource ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/whatsapp/phone-numbers/string/request-code" \  -H "Content-Type: application/json" \  -d '{    "method": "sms"  }'
{  "success": true}

Found something wrong? Help us improve this page.