Edit your business profile
curl --request PATCH \
--url https://api.getreply.in/v1/profile \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"about": "Open 9 am to 9 pm, every day.",
"websites": [
"https://example.com"
]
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({about: 'Open 9 am to 9 pm, every day.', websites: ['https://example.com']})
};
fetch('https://api.getreply.in/v1/profile', 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://api.getreply.in/v1/profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'about' => 'Open 9 am to 9 pm, every day.',
'websites' => [
'https://example.com'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}import requests
url = "https://api.getreply.in/v1/profile"
payload = {
"about": "Open 9 am to 9 pm, every day.",
"websites": ["https://example.com"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"about": "<string>",
"address": "<string>",
"description": "<string>",
"email": "<string>",
"websites": [
"<string>"
],
"category": "<string>"
}Account
Edit your business profile
Changes only the fields you give; the rest stay. The app’s rules: about at most 139 characters, address 256, description 512, email 128; one website (https or http); category one of WhatsApp’s categories (e.g. retail).
Permission: A Full key.
PATCH
/
v1
/
profile
Edit your business profile
curl --request PATCH \
--url https://api.getreply.in/v1/profile \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"about": "Open 9 am to 9 pm, every day.",
"websites": [
"https://example.com"
]
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({about: 'Open 9 am to 9 pm, every day.', websites: ['https://example.com']})
};
fetch('https://api.getreply.in/v1/profile', 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://api.getreply.in/v1/profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'about' => 'Open 9 am to 9 pm, every day.',
'websites' => [
'https://example.com'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}import requests
url = "https://api.getreply.in/v1/profile"
payload = {
"about": "Open 9 am to 9 pm, every day.",
"websites": ["https://example.com"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"about": "<string>",
"address": "<string>",
"description": "<string>",
"email": "<string>",
"websites": [
"<string>"
],
"category": "<string>"
}Authorizations
Your API key, e.g. gr_live_…
Body
application/json