These endpoints allow for users to get information about their sms campaigns and sms settings.
Get sms campaigns for account.
This endpoint will return a list of sms campaigns for the account ID.
| Returns : | A response with a list of of campaigns for the given account ID. |
|---|
Get specific sms campaign.
This endpoint will return a campaign for the account that matches the given campaign ID.
| Returns : | A response with a campaign for a specified campaign ID. |
|---|---|
| Raises : | Http404 if the given campaign id for that account does not exist. |
Get a list of deliveries for an sms campaign.
This endpoint will return a list of deliveries for the given campaign ID.
| Returns : | A response with a list of deliveries for a specified campaign ID. |
|---|---|
| Raises : | Http404 if the given campaign id for that account does not exist. |
Get a list of clicks for an sms campaign.
This endpoint will return a list of clicks for the given campaign ID.
| Returns : | A response with a list of clicks for a specified campaign ID. |
|---|---|
| Raises : | Http404 if the given campaign id for that account does not exist. |
Get sms credit usage for account.
This endpoint will return the credit usage for the account ID. You must specify query parameters 'from_date' and 'to_date'. The returned credit usage is inclusive of the 'from_date' and exclusive of the 'to_date'. The dates are based in the UTC timezone.
| Parameters: |
|
|---|---|
| Returns : | A response with an integer that is the credit usage for the given account ID. |
Get SMS account settings.
This endpoint returns an account's SMS settings if the requesting user has billing access.
| Returns : |
For the given ‘account_id’, a response with the SMS account settings, ‘sub_message_segment_limit’ and ‘sub_message_segment_limit_visible’, is returned. |
|---|---|
| Raises : | Http404 if the the ‘account_id’ does not exist. |
Update SMS account settings.
This endpoint allows users with access to billing to update an account's SMS settings.
| Parameters: |
|
|---|---|
| Returns : |
A response with the updated SMS account settings for the given ‘account_id’, ‘sub_message_segment_limit’ and ‘sub_message_segment_limit_visible’. |
| Raises : | Http400 if the fields requested are not ‘sub_message_segment_limit’ or ‘sub_message_segment_limit_visible’. |
| Raises : | Http400 if the value passed in for ‘sub_message_segment_limit_visible’ is not a boolean. |
| Raises : | Http400 if the value passed in for ‘sub_message_segment_limit’ is negative or not an integer. |
| Raises : | Http404 if the the ‘account_id’ does not exist. |