logo

Ejemplos

Last update: a month ago by Irais Aguirre

Obtener información del perfil

Petición HTTP obtener información del perfil

curl --location 'https://{{url}}/whatsapp-bsp-admin-ext-endpoint-ws/services/v1/profile' \
--header 'Content-Type: application/json' \
--header 'phone_number_id: 5212212003769' \
--header 'Authorization: Bearer {{token}}' \
--header 'Cookie: ROUTEID=.node1'

Actualizar perfil

Petición HTTP actualizar perfil

curl --location 'https://{{url}}/whatsapp-bsp-admin-ext-endpoint-ws/services/v1/profile' \
--header 'Content-Type: application/json' \
--header 'phone_number_id: 5215500000000' \
--header 'Authorization: Bearer {{token}}' \
--header 'Cookie: ROUTEID=.node1' \
--data '{
"about": "<Business Profile About>",
"address": "<Business Profile Address>",
"description": "<Business Profile Description>",
"email": "<Business Profile Email>",
"vertical": "<Business Profile Vertical>",
"websites": ["https://www.whatsapp.com", "https://www.facebook.com"]
}
'

Body actualizar perfil

{
"about": "<Business Profile About>",
"address": "<Business Profile Address>",
"description": "<Business Profile Description>",
"email": "<Business Profile Email>",
"vertical": "<Business Profile Vertical>",
"websites": ["https://www.web1.com", "https://www.web2.com"]
}


Actualizar foto

Petición HTTP actualizar foto

curl --location 'https://{{url}}/whatsapp-bsp-admin-ext-endpoint-ws/services/v1/profile/photo' \
--header 'phone_number_id: 5212212003769' \
--header 'Content-Type: image/jpeg' \
--header 'Authorization: Bearer {{token}}' \
--header 'Cookie: ROUTEID=.node1' \
--data-binary '@/image/path/image.jpg
Whatsapp — Anterior
Objetos
Siguiente — Whatsapp
Respuestas