प्रोफ़ाइल

Change the profile picture

PUT
/profile/picture

The picture must be JPEG (preferably square, up to 640×640), via url or base64. Changes the profile of the entire number, everywhere it appears (not only in this integration). Each change is recorded in the Wappfy audit log, with the connection and the key used.

ऑथराइज़ेशन

X-Api-Key: wpf_YOUR_KEY

The connection's API key (wpf_...), generated in the dashboard.

Authorization: Bearer wpf_YOUR_KEY

The same key in Authorization: Bearer wpf_... (what n8n, Make and HTTP libraries support out of the box).

हेडर पैरामीटर

Idempotency-Key?string

Optional. Repeating the same value within 24 h, with the same API key, returns the first response without sending again. See Idempotency in the introduction.

अनुरोध की बॉडी

application/json
  1. body
url*string

Public http(s) address of the file. The Wappfy server downloads it (up to 50 MB, 30 s, up to 3 redirects); internal addresses are rejected. Provide url or base64, never both. The photo must be JPEG: the file is not converted.

लंबाईlength <= 2048
base64?string

The file in base64, raw or as a data URL (data:image/png;base64,...). Counts toward the request body limit; for large files, prefer url. The photo must be JPEG.

लंबाई1 <= length

रिस्पॉन्स बॉडी

Picture changed.

application/json
  1. response
data*
curl -X PUT 'https://app.wappfy.io/api/v1/profile/picture' \  -H 'X-Api-Key: wpf_YOUR_KEY' \  -H 'Content-Type: application/json' \  -d '{  "url": "https://exemplo.com/logo.jpg"}'
{  "data": {    "picture_updated": true  }}