HydraCore
API by router

Whatsapp embedded signup

Embedded Signup Callback

GET
/v1/channels/whatsapp/callback

Query Parameters

code*Code
state*State

Response Body

Successful Response

application/json
  1. response
display_phone?string|null
error?string|null
instance_id*Instance Id
Formatuuid
phone_number_id?string|null
success*Success
waba_id?string|null
Example Request
curl -X GET 'https://example.com/v1/channels/whatsapp/callback?code=string&state=string'
Example Response
{  "display_phone": "string",  "error": "string",  "instance_id": "06587974-2dbe-4e10-8bf9-38cce0f5a366",  "phone_number_id": "string",  "success": true,  "waba_id": "string"}

Initiate Embedded Signup

POST
/v1/instances/{instance_id}/channels/whatsapp/connect

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

instance_id*Instance Id
Formatuuid

Header Parameters

X-Api-Key?string|null

Response Body

Successful Response

application/json
  1. response
oauth_url*Oauth Url
state*State
Example Request
curl -X POST 'https://example.com/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/channels/whatsapp/connect'
Example Response
{  "oauth_url": "string",  "state": "string"}