POST /requestCodetriggers an OTP or auth code flow (body: access_token, session_name|instance_id, phone_number).
📌Use this if you need fast way to login without scan qr in case remote login as example.
UX best practices:
validate phone format client-side before submit,
show a “code sent” confirmation with a short expiry timer,
and provide a gentle resend throttle to prevent abuse.
Error handling: surface clear messages for invalid_instance, invalid_access_token, server_not_found, and wawp_upstream_error.Security: rate-limit attempts and require a valid access_token to avoid abuse.
Request
Query Params
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://wawp.net/wp-json/awp/v1/requestCode?instance_id=123456789&access_token=123456789&phone_number=447441429009'