Upload a new profile picture for the WhatsApp Business profile. The image will be uploaded to Meta and set as the profile picture.
curl --request POST \
--url https://api.zavu.dev/v1/senders/{senderId}/profile/picture \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"imageUrl": "https://example.com/profile.jpg",
"mimeType": "image/jpeg"
}
'{
"success": true,
"profile": {
"about": "Succulent specialists!",
"address": "1 Hacker Way, Menlo Park, CA 94025",
"description": "At Lucky Shrub, we specialize in providing a diverse range of high-quality succulents.",
"email": "contact@example.com",
"profilePictureUrl": "https://pps.whatsapp.net/v/t61.24...",
"websites": [
"https://www.example.com/"
],
"vertical": "UNDEFINED"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
curl --request POST \
--url https://api.zavu.dev/v1/senders/{senderId}/profile/picture \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"imageUrl": "https://example.com/profile.jpg",
"mimeType": "image/jpeg"
}
'{
"success": true,
"profile": {
"about": "Succulent specialists!",
"address": "1 Hacker Way, Menlo Park, CA 94025",
"description": "At Lucky Shrub, we specialize in providing a diverse range of high-quality succulents.",
"email": "contact@example.com",
"profilePictureUrl": "https://pps.whatsapp.net/v/t61.24...",
"websites": [
"https://www.example.com/"
],
"vertical": "UNDEFINED"
}
}