For more information on using API

GET https://webapi.mymarketing.co.il/api/smscampaign/Campaign/{id}/estimate

Calculating the estimated number of messages for a given campaign. Can be used only for campaigns that were not sent yet

Request Information

URI Parameters

Name

Description

Type

Additional information

id

SMS campaign id. Can be found using the endpoint "Get account's sms campaigns.." or in the UI (go to Mobile -> SMS -> SMS list -> inspect/F12)

integer

Required

Body Parameters

None.

Response Information

Resource Description

ApiEstimatedMessagesContainer

Name

Description

Type

Additional information

estimated_messages

integer

Response Formats

application/json, text/json

Sample:
{
  "estimated_messages": 1
}

application/xml, text/xml

Sample:
<ApiEstimatedMessagesContainer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models.SmsCampaignReport">
  <estimated_messages>1</estimated_messages>
</ApiEstimatedMessagesContainer>