Generate a new messaging profile secret

Generates a new secret for an existing messaging profile.

Requests for sending and retrieving messages are authenticated using the secret of the messaging profile to which your sending phone number is assigned.

Request
path Parameters
profile_id
required
string <uuid>

ID of messaging profile

Responses
200

Updated messaging profile

post/messaging/profiles/{profile_id}/newsecret
Request samples
Response samples
application/json
{
  • "user_id": "834f3d53-8a3c-4aa0-a733-7f2d682a72df",
  • "profile_id": "834f3d53-8a3c-4aa0-a733-7f2d682a72df",
  • "name": "string",
  • "enabled": true,
  • "secret": "rq789onm321yxzkjihfEdcBAmmijjoik",
  • "incoming_webhook_url": "https://www.example.com/hooks",
  • "incoming_failover_url": "https://www.example.com/callbacks",
  • "webhook_api_version": "1",
  • "whitelisted_destinations": [
    ],
  • "alpha_sender": "Telnyx",
  • "number_pool_settings": null,
  • "url_shortener_settings": null
}