v53

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-041,1941,9384.1 MB
Profiles

Update a messaging profile

patch/messaging_profiles/{id}

Path parameters

idstring uuid required

The id of the messaging profile to retrieve

Request body

ai_assistant_idstring nullable

The ID of the AI assistant associated with this messaging profile.

alpha_senderstring nullable

The alphanumeric sender ID to use when sending to destinations that require an alphanumeric sender ID.

created_atstring date-time

ISO 8601 formatted date indicating when the resource was created.

daily_spend_limitstring

The maximum amount of money (in USD) that can be spent by this profile before midnight UTC.

daily_spend_limit_enabledboolean

Whether to enforce the value configured by daily_spend_limit.

enabledboolean

Specifies whether the messaging profile is enabled or not.

idstring uuid

Identifies the type of resource.

mms_fall_back_to_smsboolean

enables SMS fallback for MMS messages.

mms_transcodingboolean

enables automated resizing of MMS media.

mobile_onlyboolean

Send messages only to mobile phone numbers.

namestring

A user friendly name for the messaging profile.

record_type'messaging_profile'

Identifies the type of the resource.

smart_encodingboolean

Enables automatic character encoding optimization for SMS messages. When enabled, the system automatically selects the most efficient encoding (GSM-7 or UCS-2) based on message content to maximize character limits and minimize costs.

updated_atstring date-time

ISO 8601 formatted date indicating when the resource was updated.

v1_secretstring

Secret used to authenticate with v1 endpoints.

webhook_api_version'1' | '2' | '2010-04-01'

Determines which webhook format will be used, Telnyx API v1, v2, or a legacy 2010-04-01 format.

webhook_failover_urlstring url nullable

The failover URL where webhooks related to this messaging profile will be sent if sending to the primary URL fails.

webhook_urlstring url nullable

The URL where webhooks related to this messaging profile will be sent.

whitelisted_destinationsstring[]

Destinations to which the messaging profile is allowed to send. The elements in the list must be valid ISO 3166-1 alpha-2 country codes. If set to ["*"], all destinations will be allowed.

This field is required if the messaging profile doesn't have it defined yet.

Example request

{
  "enabled": true,
  "name": "Updated Profile for Messages",
  "number_pool_settings": {
    "geomatch": false,
    "long_code_weight": 2,
    "skip_unhealthy": false,
    "sticky_sender": true,
    "toll_free_weight": 10
  },
  "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"
  ]
}

Response

Successful response with details about a messaging profile.

Example response

{
  "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,
    "mobile_only": 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"
    ]
  }
}