WABA Profile Info
This document describes how to manage your WABA Profile Info
You can use the following endpoints to set your WhatsApp profile info in the same manner as described in the official WhatsApp documentation on the topic.
get
https://[base-path]
/v1/settings/profile/about
Profile: About
patch
https://[base-path]
/v1/settings/profile/about
Profile: About
post
https://[base-path]
/v1/settings/profile/photo
Profile: Photo
Example using Postman
post
https://[base-path]
/v1/settings/business/profile
Business Profile
You can use the following endpoints to set your WhatsApp profile info in the same manner as described in the official WhatsApp documentation on the topic.
get
https://[base-path]
/whatsapp_business_profile?fields=about,address,description,email,profile_picture_url,websites,vertical
Retrieve Business Profile information
post
https://[base-path]
/whatsapp_business_profile
Update Business Profile Information
The Resumable Upload API allows you to upload profile pictures and essentially large files to the Cloud API. Once uploaded, you can use a file's handle fetched in step 2 to update your
profile_picture_handle
.Please note that to access and utilize the Resumable Upload API, it is mandatory to include the 360dialog-API-key within the header.
Send a
POST
request that describes your file to the endpoint /uploads.
Upon success, an upload session ID will be returned that you can use in the next step to initiate the upload.Request Syntax
POST-https://waba-v2.360dialog.io/uploads
&file_length={file-length}
&file_type={file-type}
Parameters
Parameter | Description |
---|---|
file_length int64 | The file length in bytes |
file_type RegexParam | The MIME type of the file to be uploaded |
Response
{id}
— Upload session ID.
Sample Request
curl -X POST \
"https://waba-v2.360dialog.io/uploads?file_length=109981&file_type=image/png"
Sample Response
{
"id": "upload:MTphd..."
}
Initiate the upload session by sending a
POST
request and append your upload session {id}
along with the authentication header. Upon success, a file handle {h},
is returned that you can then use the {h} value to update your profile picture. Request Syntax
POST waba-v2.360dialog.io/{session_id}
--header 'file_offset: 0'
--data-binary @{file-name}
Placeholder Values
{session_id}
— Upload session ID returned in step 1.{file-name}
— Name of the file to upload.
Response
{
"h": "{h}"
}
Response property values:
{h}
— The uploaded file's file handle
Sample Request
curl -X POST \
"https://waba-v2.360dialog.io/upload:MTphd..." \
Sample Response
{
"h": "2:c2FtcGxl..."
}
You can then use the Update Business Profile information endpoint to update the profile photo using the
{h}
value.Remember
The
[base-path] for Cloud API is https://waba-v2.360dialog.io
.
Every request to WhatsApp API needs to be authorized using API Key authentication. Adding theD360-API-KEY
header with your API Key as a value will give you permission.