get
https://api.octopush.com/v1/public/campaign/parameters
Encoding : UTF-8
Authentication
Your "api-key" and "api-login" identifiers must be added in the headers.
Definition
Allows you to change your default configuration for SMS campaigns.
Special parameters
| Name | Type | Description |
|---|---|---|
| sms_campaign_alert_parameters | array | Table containing alert parameters { "alert_type": "string", "alert_bound": 0, "alert_emails_to": ["string"], "alert_phone_number_to": "string"} |
| campaign_parameters | array | Table containing parameters { "phone_number_for_test_sms": "string", "sender_for_sms_premium": "string", "sender_for_voice_sms": "string"} |
| callbacks | array | Table containing callbacks { "email_for_inbounds": "string", "callback_url_for_inbounds": "string", "callback_url_for_deliveries": "string", "callback_url_for_blacklisted_numbers": "string", "callback_url_for_visits": "string", "api_version": string, "use_metadata_node_for_inbound": "boolean"} |
How Our API Deals With Incorrect Data
The API we provide will try to interpret your request as best it can. If a parameter has the wrong value, we will try to understand it anyway. If the parameter has the wrong type, we will try to format it as best we can. Thus, we have determined default values, which are indicated in our documentation. If a parameter could not be recognized or "fixed", we will ignore it, but your request will be sent.
If one of your parameters does not have the right value, or does not have the right type, we will try to:
- "cast" (convert) it so that it can be understood.
- format it (delete prohibited characters for example)
Server Response Example in JSON
Success
{
"sms_campaign_alert_parameters": {
"alert_type": "sms_premium",
"alert_bound": "12000",
"alert_emails_to": ["[email protected]"],
"alert_phone_number_to": "+37378190226"
},
"campaign_parameters": {
"sender_for_sms_premium": "+37378190226",
"sender_for_voice_sms": "sender",
"phone_number_for_test_sms": "sender"
},
"callbacks": {
"callback_url_for_inbounds": "https://dns.com/call-back-url-1",
"callback_url_for_deliveries": "https://dns.com/call-back-url-2",
"callback_url_for_blacklisted_numbers": "https://dns.com/call-back-url-3",
"callback_url_for_visits": "https://dns.com/call-back-url-4",
"email_for_inbounds": "[email protected]",
"api_version": "v1",
"use_metadata_node_for_inbound": true
}
}