update_messaging_profile
Modify messaging profile settings for SMS and MMS delivery, including webhooks, number pools, spend limits, and destination controls.
Instructions
Update a messaging profile.
Args:
profile_id: Required. The ID of the messaging profile to update.
name: Optional. A user friendly name for the messaging profile.
enabled: Optional boolean. Specifies whether the messaging profile is enabled.
webhook_url: Optional. The URL where webhooks related to this messaging profile will be sent.
webhook_failover_url: Optional. The failover URL for webhooks if the primary URL fails.
webhook_api_version: Optional. Webhook format version ("1", "2", or "2010-04-01").
whitelisted_destinations: Optional list. Destinations to which messages are allowed (ISO 3166-1 alpha-2 country codes). Use ["*"] to allow all destinations.
v1_secret: Optional. Secret used to authenticate with v1 endpoints.
number_pool_settings: Optional dictionary. Number pool configuration with possible settings:
- use_pool: Boolean indicating whether to use number pool.
- sticky_sender: Boolean indicating whether to use sticky sender.
- pool_weights: Dictionary mapping phone number types to weights.
url_shortener_settings: Optional dictionary. URL shortener configuration with possible settings:
- enabled: Boolean indicating whether URL shortening is enabled.
- domains: List of domains to be shortened.
alpha_sender: Optional. The alphanumeric sender ID for destinations requiring it.
daily_spend_limit: Optional. Maximum daily spend in USD before midnight UTC.
daily_spend_limit_enabled: Optional boolean. Whether to enforce the daily spend limit.
mms_fall_back_to_sms: Optional boolean. Enables SMS fallback for MMS messages.
mms_transcoding: Optional boolean. Enables automated resizing of MMS media.
Returns:
Dict[str, Any]: Response data
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile_id | Yes | ||
| request | Yes |