Skip to content

WhatsApp Registration (v1)

Ben edited this page Mar 18, 2021 · 4 revisions

Version 1 of the WhatsApp Registration process. DEPRECATED: Use WhatsApp Verification (v2)

Base URL: https://r.whatsapp.net/v1

Exist

Check if this number exists on the WhatsApp server.

Request

URL: Base URL + /exist.php

Method: GET

Headers:

  • User-Agent

Parameters:

Parameter Description Optional/Required
cc Country Code Required
in Internal Number Required
udid Unique Device Identifier Required?

Response

OK:

<?xml version="1.0" encoding="UTF-8"?>
<exist>
	<response status="ok" result="{number}"/>
</exist>

FAIL:

<?xml version="1.0" encoding="UTF-8"?>
<exist>
	<response status="fail" result="incorrect"/>
</exist>

Code

Request a code.

Request

URL: Base URL + /code.php

Method: GET

Headers:

  • User-Agent

Parameters:

Parameter Description Optional/Required
cc Country Code Required
to To: Full phone number where to send the code to Required?
in Internal Number Required
udid Unique Device Identifier Required?
lg Language ?
lc Language Country ?
mnc Mobile Network Code ?
method Method of sending the code ?
reason Reason ?
token Token ?

Response

Success Sent:

<?xml version="1.0" encoding="UTF-8"?>
<code>
	<response status="success-sent" result="60"/>
</code>

Fail Too Recent:

<?xml version="1.0" encoding="UTF-8"?>
<code>
	<response status="fail-too-recent" result="180"/>
</code>

Fail Too Many:

<?xml version="1.0" encoding="UTF-8"?>
<code>
	<response status="fail-too-many"/>
</code>

Register

Register the number with the received code.

Request

URL: Base URL + /register.php

Method: GET

Headers:

  • User-Agent

Parameters:

Parameter Description Optional/Required
cc Country Code Required
in Internal Number Required
udid Unique Device Identifier Required?
code Code Required

Response

OK:

<?xml version="1.0" encoding="UTF-8"?>
<register>
	<response status="ok" login="{number}" result="new"/>
</register>

Mismatch:

<?xml version="1.0" encoding="UTF-8"?>
<register>
	<response status="mismatch" login="{number}" result="me={number} code={code}" />
</register>