Update a specific sender information like OTP Code, Webhook, Profile information.
A Sender resource represents a messaging channel sender of WhatsApp.
Update a specific sender information like OTP Code, Webhook, Profile information.
Path parameters
-
A 34 character string that uniquely identifies this Sender.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^XE[0-9a-fA-F]{32}$
.
Body
-
Configuration settings for creating a sender, e.g., {"waba_id": "1234567890", "verification_method": "sms"}
-
Webhook specific configurations, e.g., {"callback_url": "https://xxx", "callback_method": "POST", "fallback_url": "https://xxx", "fallback_method": "POST", "status_callback_url": "https://xxx", "status_callback_method": "POST"}
-
Sender profile specific configurations, e.g., {"name": "xxx", "about": "xxx", "address": "xxx", "description": "xxx", "emails": "xxx@xxx", "logo_url": "https://xxx", "vertical": "xxx", "websites": ["https://xxx", "..."]}
curl \
--request POST 'https://messaging.twilio.com/v2/Channels/Senders/{Sid}' \
--user "username:password" \
--header "Content-Type: application/json" \
--data '{"profile":{"name":"Example Business","about":"Example about text","emails":[{"email":"email@email.com","label":"Email"}],"address":"123 Example St, Example City, EX 12345","logo_url":"https://logo_url.com","vertical":"Automotive","websites":[{"label":"Website","website":"https://example.com"},{"label":"Website","website":"http://example.org"}],"description":"Example description"},"webhook":{"callback_url":"https://callback.com","fallback_url":"https://fallback.com","callback_method":"POST","fallback_method":"POST","status_callback_url":"https://statuscallback.com","status_callback_method":"POST"},"configuration":{"verification_code":"123456","voice_application_sid":"APaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}}'
{
"profile": {
"name": "Example Business",
"about": "Example about text",
"emails": [
{
"email": "email@email.com",
"label": "Email"
}
],
"address": "123 Example St, Example City, EX 12345",
"logo_url": "https://logo_url.com",
"vertical": "Automotive",
"websites": [
{
"label": "Website",
"website": "https://example.com"
},
{
"label": "Website",
"website": "http://example.org"
}
],
"description": "Example description"
},
"webhook": {
"callback_url": "https://callback.com",
"fallback_url": "https://fallback.com",
"callback_method": "POST",
"fallback_method": "POST",
"status_callback_url": "https://statuscallback.com",
"status_callback_method": "POST"
},
"configuration": {
"verification_code": "123456",
"voice_application_sid": "APaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
}
{
"sid": "XEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"status": "VERIFYING",
"profile": {
"name": "Example Business",
"about": "Example about text",
"emails": [
{
"email": "email@email.com",
"label": "Email"
}
],
"address": "123 Example St, Example City, EX 12345",
"logo_url": "https://logo_url.com",
"vertical": "Automotive",
"websites": [
{
"label": "Website",
"website": "https://example.com"
},
{
"label": "Website",
"website": "http://example.org"
}
],
"description": "Example description"
},
"webhook": {
"callback_url": "https://callback.com",
"fallback_url": "https://fallback.com",
"callback_method": "POST",
"fallback_method": "POST",
"status_callback_url": "https://statuscallback.com",
"status_callback_method": "POST"
},
"sender_id": "whatsapp:+999999999XX",
"configuration": {
"waba_id": "1234567XXX",
"verification_code": null,
"verification_method": "sms",
"voice_application_sid": "APaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
}