Auto
EN

Send a WhatsApp Web image

Before you start

Use a connected WhatsApp session and a public HTTPS image URL accessible to the provider.

Required. Send the account API key in the X-API-Key header. Never expose the key in a public browser or git repository.

cURL

curl --request POST 'https://raselsms.com/api/v2/messages/send' \  -H "X-API-Key: $RASEL_API_KEY" \  -H 'Content-Type: application/json' \  --data-binary @- <<'RASEL_JSON'{  "to": "+963912345678",  "channel": "user_whatsapp_session",  "messageType": "free_text",  "content": {    "text": "Product photo"  },  "attachment": {    "type": "image",    "publicUrl": "https://cdn.example.com/catalog/sku-100.png",    "mimetype": "image/png",    "fileName": "sku-100.png"  }}RASEL_JSON

Test locally with a mock response first. Confirm the recipient and cost before sending a live request.