Perfil de WhatsApp

Gestiona tu perfil de WhatsApp: nombre, estado (about) y foto de perfil.

Obtener perfil

http
GET /api/{session}/profile
jsonResponse
{
  "id": "5215551234567@c.us",
  "name": "Mi Nombre",
  "picture": "https://pps.whatsapp.net/v/t/123.jpg"
}

Cambiar nombre

http
PUT /api/{session}/profile/name
jsonBody
{ "name": "Nuevo Nombre" }
jsonResponse
{ "success": true }

Cambiar estado (About)

http
PUT /api/{session}/profile/status
jsonBody
{ "status": "Disponible por WhatsApp API" }
jsonResponse
{ "success": true }

Cambiar foto de perfil

http
PUT /api/{session}/profile/picture

Con URL:

jsonBody
{
  "file": {
    "url": "https://ejemplo.com/foto.jpg"
  }
}

O con datos en base64:

jsonBody
{
  "file": {
    "data": "BASE64_DE_LA_IMAGEN"
  }
}
jsonResponse
{ "success": true }

Eliminar foto de perfil

http
DELETE /api/{session}/profile/picture
jsonResponse
{ "success": true }