Redact a message
Redact the body of a previously sent message. This endpoint clears the message body for compliance, privacy, or moderation purposes — it does not support arbitrary updates to message attributes. The only accepted value for body is an empty string (""); any other value is rejected.
Messages that are still in progress (queued or initiated) cannot be redacted. Messages in terminal states such as delivered, undelivered, or failed are eligible. Once redacted, the original body is overwritten and cannot be recovered.
The :message_id path parameter is the message segment ID — the same ID returned by the create endpoint and shown in /api/messaging/logs.
Use this SignalWire REST operation for message redaction by message segment ID. Integrations built around Message SIDs can use the Compatibility API's Update message operation instead.
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Messaging.
Learn more about API scopes.
Path parameters
Universal Unique Identifier.
The message segment ID — the same ID returned by the create endpoint and shown in /api/messaging/logs.
Request body
Response
Response returned when a message has been successfully redacted.
Example response
{
"from": "+15559876543",
"to": "+15551234567",
"body": "Your order #12345 has shipped!",
"media": [],
"number_of_segments": 1,
"created_at": "2024-05-06T12:20:00Z",
"message_uri": "/api/messaging/logs/c2d3e4f5-a6b7-8901-cdef-234567890abc"
}Changes
Changed in 5 of the 137 revisions of this API.32
- ●
added the new
whatsappenum value to thekind/allOf[Message.MessageKind]/response property for the response status200response-property-enum-value-added
- ●
- ○
removed the
whatsappenum value from thekind/allOf[Message.MessageKind]/response property for the response status200response-property-enum-value-removed
This revision also has 42 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ●
added the new
whatsappenum value to thekind/allOf[Message.MessageKind]/response property for the response status200response-property-enum-value-added
- ●
- ○
removed the
whatsappenum value from thekind/allOf[Message.MessageKind]/response property for the response status200response-property-enum-value-removed
This revision also has 42 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ●
added the new
whatsappenum value to thekind/allOf[Message.MessageKind]/response property for the response status200response-property-enum-value-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
Of the 137 revisions, 3 have a changelog that could not be searched.