Business profiles
Get business profile
Protocols: Linked Device API · Meta Cloud API
Required scope: sessions:read
GET
/
graph
/
whatsapp
/
{version}
/
{phoneNumberId}
/
whatsapp_business_profile
Get business profile
curl --request GET \
--url https://api.polymorfa.com/graph/whatsapp/{version}/{phoneNumberId}/whatsapp_business_profile \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.polymorfa.com/graph/whatsapp/{version}/{phoneNumberId}/whatsapp_business_profile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.polymorfa.com/graph/whatsapp/{version}/{phoneNumberId}/whatsapp_business_profile"
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.polymorfa.com/graph/whatsapp/{version}/{phoneNumberId}/whatsapp_business_profile"
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))
}false{
"data": [
{
"messaging_product": "<string>",
"about": "<string>",
"address": "<string>",
"description": "<string>",
"email": "<string>",
"profile_picture_url": "<string>",
"websites": [
"<string>"
],
"vertical": "<string>"
}
]
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"fbtrace_id": "<string>",
"error_subcode": 123,
"error_data": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"fbtrace_id": "<string>",
"error_subcode": 123,
"error_data": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"fbtrace_id": "<string>",
"error_subcode": 123,
"error_data": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"fbtrace_id": "<string>",
"error_subcode": 123,
"error_data": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"fbtrace_id": "<string>",
"error_subcode": 123,
"error_data": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"fbtrace_id": "<string>",
"error_subcode": 123,
"error_data": "<unknown>"
}
}Authorizations
Polymorfa organization key (pmfa_ prefix) or project token (pmfa_pt_ prefix). Client tokens are not accepted by Graph operations.
Path Parameters
Specifies version for this path parameter.
Example:
"v21.0"
Identifier for the phone number.
Example:
"123456789012345"
Response
Business profile
Structured data carried by this object.
Show child attributes
Show child attributes
⌘I
Get business profile
curl --request GET \
--url https://api.polymorfa.com/graph/whatsapp/{version}/{phoneNumberId}/whatsapp_business_profile \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.polymorfa.com/graph/whatsapp/{version}/{phoneNumberId}/whatsapp_business_profile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.polymorfa.com/graph/whatsapp/{version}/{phoneNumberId}/whatsapp_business_profile"
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.polymorfa.com/graph/whatsapp/{version}/{phoneNumberId}/whatsapp_business_profile"
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))
}false{
"data": [
{
"messaging_product": "<string>",
"about": "<string>",
"address": "<string>",
"description": "<string>",
"email": "<string>",
"profile_picture_url": "<string>",
"websites": [
"<string>"
],
"vertical": "<string>"
}
]
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"fbtrace_id": "<string>",
"error_subcode": 123,
"error_data": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"fbtrace_id": "<string>",
"error_subcode": 123,
"error_data": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"fbtrace_id": "<string>",
"error_subcode": 123,
"error_data": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"fbtrace_id": "<string>",
"error_subcode": 123,
"error_data": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"fbtrace_id": "<string>",
"error_subcode": 123,
"error_data": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"fbtrace_id": "<string>",
"error_subcode": 123,
"error_data": "<unknown>"
}
}