Meta
Create Meta number (Cloud API)
Manual Meta Cloud API onboarding: you already own the WABA + system-user token and pass the credentials directly. Returns the created number + the webhook URL/verifyToken you must configure in your Meta app. (No credentials yet? Use /api/v1/numbers/remote-pairing with provider=META.)
POST
/
v1
/
numbers
/
meta
Create Meta number (Cloud API)
curl --request POST \
--url https://pilotstatus.com.br/v1/numbers/meta \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "Atendimento",
"number": "5511999999999",
"metaPhoneId": "123456789012345",
"metaWabaId": "987654321098765",
"metaAccessToken": "EAAG...",
"metaAppSecret": "a1b2c3...",
"metaAppId": "100200300400500"
}
'import requests
url = "https://pilotstatus.com.br/v1/numbers/meta"
payload = {
"name": "Atendimento",
"number": "5511999999999",
"metaPhoneId": "123456789012345",
"metaWabaId": "987654321098765",
"metaAccessToken": "EAAG...",
"metaAppSecret": "a1b2c3...",
"metaAppId": "100200300400500"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Atendimento',
number: '5511999999999',
metaPhoneId: '123456789012345',
metaWabaId: '987654321098765',
metaAccessToken: 'EAAG...',
metaAppSecret: 'a1b2c3...',
metaAppId: '100200300400500'
})
};
fetch('https://pilotstatus.com.br/v1/numbers/meta', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://pilotstatus.com.br/v1/numbers/meta",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Atendimento',
'number' => '5511999999999',
'metaPhoneId' => '123456789012345',
'metaWabaId' => '987654321098765',
'metaAccessToken' => 'EAAG...',
'metaAppSecret' => 'a1b2c3...',
'metaAppId' => '100200300400500'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://pilotstatus.com.br/v1/numbers/meta"
payload := strings.NewReader("{\n \"name\": \"Atendimento\",\n \"number\": \"5511999999999\",\n \"metaPhoneId\": \"123456789012345\",\n \"metaWabaId\": \"987654321098765\",\n \"metaAccessToken\": \"EAAG...\",\n \"metaAppSecret\": \"a1b2c3...\",\n \"metaAppId\": \"100200300400500\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://pilotstatus.com.br/v1/numbers/meta")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Atendimento\",\n \"number\": \"5511999999999\",\n \"metaPhoneId\": \"123456789012345\",\n \"metaWabaId\": \"987654321098765\",\n \"metaAccessToken\": \"EAAG...\",\n \"metaAppSecret\": \"a1b2c3...\",\n \"metaAppId\": \"100200300400500\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/numbers/meta")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Atendimento\",\n \"number\": \"5511999999999\",\n \"metaPhoneId\": \"123456789012345\",\n \"metaWabaId\": \"987654321098765\",\n \"metaAccessToken\": \"EAAG...\",\n \"metaAppSecret\": \"a1b2c3...\",\n \"metaAppId\": \"100200300400500\"\n}"
response = http.request(request)
puts response.read_body{
"number": {
"id": "num_01HZX...",
"number": "5511999999999",
"name": "Atendimento",
"provider": "META",
"metaPhoneId": "123456789012345",
"metaWabaId": "987654321098765",
"isFullyConnected": true,
"createdAt": "2026-06-20T10:00:00.000Z"
},
"webhook": {
"url": "https://webhook.pilotstatus.com.br/meta",
"verifyToken": "ps_meta_verify_..."
},
"linkedApiKeyId": "key_01HZX..."
}{
"error": "Validation error"
}{
"error": "Unauthorized"
}{
"error": "Number already exists"
}{
"error": "Too many requests"
}Authorizations
apiKeyapiKeyId
Your ps_ API key
Body
application/json
Display name for the number.
Example:
"Atendimento"
Phone number (min 8 digits, optional +).
Example:
"5511999999999"
Meta Cloud API Phone Number ID.
Example:
"123456789012345"
WhatsApp Business Account (WABA) ID.
Example:
"987654321098765"
System-user access token.
Example:
"EAAG..."
Meta app App Secret.
Example:
"a1b2c3..."
Meta app App ID.
Example:
"100200300400500"
Link the number to the calling API key (default true).
Example:
"true"
Response
Create Meta number
Was this page helpful?
⌘I
Create Meta number (Cloud API)
curl --request POST \
--url https://pilotstatus.com.br/v1/numbers/meta \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "Atendimento",
"number": "5511999999999",
"metaPhoneId": "123456789012345",
"metaWabaId": "987654321098765",
"metaAccessToken": "EAAG...",
"metaAppSecret": "a1b2c3...",
"metaAppId": "100200300400500"
}
'import requests
url = "https://pilotstatus.com.br/v1/numbers/meta"
payload = {
"name": "Atendimento",
"number": "5511999999999",
"metaPhoneId": "123456789012345",
"metaWabaId": "987654321098765",
"metaAccessToken": "EAAG...",
"metaAppSecret": "a1b2c3...",
"metaAppId": "100200300400500"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Atendimento',
number: '5511999999999',
metaPhoneId: '123456789012345',
metaWabaId: '987654321098765',
metaAccessToken: 'EAAG...',
metaAppSecret: 'a1b2c3...',
metaAppId: '100200300400500'
})
};
fetch('https://pilotstatus.com.br/v1/numbers/meta', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://pilotstatus.com.br/v1/numbers/meta",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Atendimento',
'number' => '5511999999999',
'metaPhoneId' => '123456789012345',
'metaWabaId' => '987654321098765',
'metaAccessToken' => 'EAAG...',
'metaAppSecret' => 'a1b2c3...',
'metaAppId' => '100200300400500'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://pilotstatus.com.br/v1/numbers/meta"
payload := strings.NewReader("{\n \"name\": \"Atendimento\",\n \"number\": \"5511999999999\",\n \"metaPhoneId\": \"123456789012345\",\n \"metaWabaId\": \"987654321098765\",\n \"metaAccessToken\": \"EAAG...\",\n \"metaAppSecret\": \"a1b2c3...\",\n \"metaAppId\": \"100200300400500\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://pilotstatus.com.br/v1/numbers/meta")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Atendimento\",\n \"number\": \"5511999999999\",\n \"metaPhoneId\": \"123456789012345\",\n \"metaWabaId\": \"987654321098765\",\n \"metaAccessToken\": \"EAAG...\",\n \"metaAppSecret\": \"a1b2c3...\",\n \"metaAppId\": \"100200300400500\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/numbers/meta")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Atendimento\",\n \"number\": \"5511999999999\",\n \"metaPhoneId\": \"123456789012345\",\n \"metaWabaId\": \"987654321098765\",\n \"metaAccessToken\": \"EAAG...\",\n \"metaAppSecret\": \"a1b2c3...\",\n \"metaAppId\": \"100200300400500\"\n}"
response = http.request(request)
puts response.read_body{
"number": {
"id": "num_01HZX...",
"number": "5511999999999",
"name": "Atendimento",
"provider": "META",
"metaPhoneId": "123456789012345",
"metaWabaId": "987654321098765",
"isFullyConnected": true,
"createdAt": "2026-06-20T10:00:00.000Z"
},
"webhook": {
"url": "https://webhook.pilotstatus.com.br/meta",
"verifyToken": "ps_meta_verify_..."
},
"linkedApiKeyId": "key_01HZX..."
}{
"error": "Validation error"
}{
"error": "Unauthorized"
}{
"error": "Number already exists"
}{
"error": "Too many requests"
}