Get pairing code
curl --request GET \
--url https://api.notifique.dev/v1/whatsapp/instances/{instanceId}/pairing-code \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.notifique.dev/v1/whatsapp/instances/{instanceId}/pairing-code', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.notifique.dev/v1/whatsapp/instances/{instanceId}/pairing-code"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.notifique.dev/v1/whatsapp/instances/{instanceId}/pairing-code"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"data": {
"status": "PENDING",
"method": "pairing",
"pairingCode": "FNPG5AYK",
"phoneNumber": "5511999999999"
}
}Instâncias
Get pairing code
QR alternative for UNOFFICIAL mode: pass phoneNumber in the query and receive an alphanumeric code (e.g. FNPG5AYK) for the user to enter on WhatsApp (Linked devices → Link with phone number instead). Use after create without pairingPhoneNumber, or to refresh the code. Scope: whatsapp:instances:list.
GET
/
v1
/
whatsapp
/
instances
/
{instanceId}
/
pairing-code
Get pairing code
curl --request GET \
--url https://api.notifique.dev/v1/whatsapp/instances/{instanceId}/pairing-code \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.notifique.dev/v1/whatsapp/instances/{instanceId}/pairing-code', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.notifique.dev/v1/whatsapp/instances/{instanceId}/pairing-code"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.notifique.dev/v1/whatsapp/instances/{instanceId}/pairing-code"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"data": {
"status": "PENDING",
"method": "pairing",
"pairingCode": "FNPG5AYK",
"phoneNumber": "5511999999999"
}
}Authorizations
ntfWaBearerAuthntfWaApiKeyHeader
API Key no header Authorization. Exemplo: Authorization: Bearer sk_live_xxxxx
Path Parameters
Query Parameters
International phone number (E.164 / digits) that will confirm pairing on the device.
Required string length:
10 - 20Was this page helpful?

