curl --location --request POST '/messaging_profiles' \
--header 'Content-Type: application/json' \
--data-raw '{
"enabled": true,
"name": "My name",
"number_pool_settings": {
"geomatch": false,
"long_code_weight": 1,
"skip_unhealthy": true,
"sticky_sender": false,
"toll_free_weight": 10
},
"url_shortener_settings": {
"domain": "example.ex",
"prefix": "",
"replace_blacklist_only": true,
"send_webhooks": false
},
"webhook_api_version": "2",
"webhook_failover_url": "https://backup.example.com/hooks",
"webhook_url": "https://www.example.com/hooks",
"whitelisted_destinations": [
"US"
]
}'
{
"data": {
"created_at": "2019-01-23T18:10:02.574Z",
"daily_spend_limit": "100.00",
"daily_spend_limit_enabled": false,
"enabled": true,
"health_webhook_url": null,
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"mms_fall_back_to_sms": false,
"mms_transcoding": false,
"name": "Profile for Messages",
"number_pool_settings": {
"geomatch": false,
"long_code_weight": 2,
"skip_unhealthy": false,
"sticky_sender": true,
"toll_free_weight": 10
},
"record_type": "messaging_profile",
"redaction_enabled": false,
"redaction_level": 2,
"updated_at": "2019-01-23T18:10:02.574Z",
"url_shortener_settings": {
"domain": "example.ex",
"prefix": "cmpny",
"replace_blacklist_only": true,
"send_webhooks": false
},
"v1_secret": "rP1VamejkU2v0qIUxntqLW2c",
"webhook_api_version": "2",
"webhook_failover_url": "https://backup.example.com/hooks",
"webhook_url": "https://www.example.com/hooks",
"whitelisted_destinations": [
"US"
]
}
}
Authorization: Bearer ********************