Set Profile Name
POST
https://api.wapim.io/api/v1/whatsapp/profile/name
Request Body
Recipient Phone Number or Group ID
{
"status": true,
"code": 200,
"phone_number": "*****",
"message_id": "3EB05F28F824A6F6D9E9",
"req_id": "11b80f89-fff7-487c-b33f-047daff89af6"
}
{
"status": false,
"code": 400,
"message": "Bad Request",
"error": {
"Send Text": [
"Malformed or missing phone id or message data!"
]
}
}
curl
-X POST https://api.wapim.io/api/v1/whatsapp/profile/name
-H 'Token: YOUR_WAPIM_TOKEN'
-d '{"name": "Name of WhatsApp Profile"}'
const axios = require('axios');
axios
.post(
'https://api.wapim.io/api/v1/whatsapp/profile/name',
{
name: 'Name of WhatsApp Profile'
},
{
headers: {
token: 'YOUR_WAPIM_TOKEN',
}
}
)
.then(response => console.log(response.data))
.catch(error => console.log(error.response.data))