Campaigns & Bulk Dispatch

Create campaign

post/campaigns

Request

  • Base URL: https://api.envoisms.ma/v1
  • URL: https://api.envoisms.ma/v1/campaigns
  • Auth: HTTP bearer

Request body

namestring required
channel'sms' | 'whatsapp' | 'telegram' | 'voice' | 'rcs'
list_idstring
template_idstring
bodystring
sender_idstring
scheduled_atstring date-time
metadataobject

Custom metadata (e.g. throttling options: { throttling: '50_min' })

Example request

{
  "sender_id": "ENVOISMS",
  "buttons": [
    {
      "type": "copy",
      "text": "Copier le code",
      "copy_code": "123456",
      "url": "https://example.com",
      "phone_number": "+212612345678"
    }
  ],
  "metadata": {
    "throttling": "50_min"
  }
}

Response

Campaign created

Changes

No recorded changes to this operation across all 1 revision of this API.