Get a connection
curl --request GET \
--url https://lazyapp.in/v1/connections/{connection} \
--header 'Authorization: Bearer <token>'import requests
url = "https://lazyapp.in/v1/connections/{connection}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://lazyapp.in/v1/connections/{connection}', 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://lazyapp.in/v1/connections/{connection}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://lazyapp.in/v1/connections/{connection}"
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))
}HttpResponse<String> response = Unirest.get("https://lazyapp.in/v1/connections/{connection}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://lazyapp.in/v1/connections/{connection}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"phone_number_id": "106540352242922",
"display_phone_number": "+919812345670",
"verified_name": "<string>",
"waba_id": "<string>",
"messaging_account_id": "<string>",
"mode": "live",
"is_default": true,
"status": "active",
"connected_via": "embedded_signup",
"coexistence": true,
"quality_rating": "GREEN",
"messaging_limit": "TIER_2K",
"throughput_level": "STANDARD",
"code_verification_status": "VERIFIED",
"registration_status": "registered",
"two_step_pin_set": true,
"marketing_messages_status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"live": {
"display_name_status": "APPROVED",
"requested_display_name": "<string>",
"requested_display_name_status": "PENDING_REVIEW",
"phone_status": "CONNECTED",
"platform_type": "CLOUD_API",
"is_official_business_account": true,
"business_verification_status": "verified",
"account_review_status": "<string>",
"account_name": "<string>",
"timezone": "Asia/Kolkata"
},
"live_error": "<string>"
}{
"message": "<string>",
"code": "<string>"
}{
"message": "The API is on the Pro plan. Upgrade in Billing to use live keys. Test keys keep working.",
"code": "plan_limit_reached"
}{
"message": "<string>",
"code": "<string>"
}{
"message": "<string>",
"code": "<string>"
}{
"message": "<string>",
"errors": {}
}{
"message": "<string>",
"code": "<string>"
}{
"code": "meta_rejected",
"message": "This number was registered or deregistered too many times. Meta blocks further attempts for 72 hours.",
"meta": {
"code": 133016,
"message": "<string>",
"fbtrace_id": "<string>"
}
}Connections
Get a connection
The stored record plus Meta’s live view (display name review, blue tick, phone status), cached for five minutes.
Required scope: messages:read
GET
/
v1
/
connections
/
{connection}
Get a connection
curl --request GET \
--url https://lazyapp.in/v1/connections/{connection} \
--header 'Authorization: Bearer <token>'import requests
url = "https://lazyapp.in/v1/connections/{connection}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://lazyapp.in/v1/connections/{connection}', 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://lazyapp.in/v1/connections/{connection}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://lazyapp.in/v1/connections/{connection}"
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))
}HttpResponse<String> response = Unirest.get("https://lazyapp.in/v1/connections/{connection}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://lazyapp.in/v1/connections/{connection}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"phone_number_id": "106540352242922",
"display_phone_number": "+919812345670",
"verified_name": "<string>",
"waba_id": "<string>",
"messaging_account_id": "<string>",
"mode": "live",
"is_default": true,
"status": "active",
"connected_via": "embedded_signup",
"coexistence": true,
"quality_rating": "GREEN",
"messaging_limit": "TIER_2K",
"throughput_level": "STANDARD",
"code_verification_status": "VERIFIED",
"registration_status": "registered",
"two_step_pin_set": true,
"marketing_messages_status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"live": {
"display_name_status": "APPROVED",
"requested_display_name": "<string>",
"requested_display_name_status": "PENDING_REVIEW",
"phone_status": "CONNECTED",
"platform_type": "CLOUD_API",
"is_official_business_account": true,
"business_verification_status": "verified",
"account_review_status": "<string>",
"account_name": "<string>",
"timezone": "Asia/Kolkata"
},
"live_error": "<string>"
}{
"message": "<string>",
"code": "<string>"
}{
"message": "The API is on the Pro plan. Upgrade in Billing to use live keys. Test keys keep working.",
"code": "plan_limit_reached"
}{
"message": "<string>",
"code": "<string>"
}{
"message": "<string>",
"code": "<string>"
}{
"message": "<string>",
"errors": {}
}{
"message": "<string>",
"code": "<string>"
}{
"code": "meta_rejected",
"message": "This number was registered or deregistered too many times. Meta blocks further attempts for 72 hours.",
"meta": {
"code": 133016,
"message": "<string>",
"fbtrace_id": "<string>"
}
}Authorizations
Your API key, e.g. sk_live_... or sk_test_....
Path Parameters
The connection uuid.
Query Parameters
Ask Meta again instead of using the five-minute cache.
Response
The connection.
Example:
"106540352242922"
Example:
"+919812345670"
Display name customers see.
WhatsApp Business Account (Meta’s Messaging account) id.
Available options:
live, test Available options:
active, attention_required, disconnected, revoked, phone_registration_pending, signup_started, code_exchange_pending, asset_discovery, webhook_subscription_pending, authorization_received, draft Available options:
embedded_signup, manual, platform_sync, platform_claim, null Also used in the WhatsApp Business app (fixed 20 messages a second).
Example:
"GREEN"
Shared by every number in the business portfolio.
Example:
"TIER_2K"
Example:
"STANDARD"
Example:
"VERIFIED"
Available options:
registered, deregistered, pending, null Meta’s current view, cached for five minutes.
Show child attributes
Show child attributes