Server SDKs
Build AI agents, control calls, send messages, and more
Update a message (e.g., redact the body of a sent message). Uses POST (Twilio convention).
format: "uuid"
<=0 characters
1{2 "account_sid": "ea108133-d6b3-407c-9536-9fad8a929a6a",3 "api_version": "2010-04-01",4 "body": "Hello World!",5 "num_segments": 1,6 "num_media": 1,7 "date_created": "Mon, 13 Aug 2018 21:38:46 +0000",8 "date_sent": "Mon, 13 Aug 2018 21:38:46 +0000",9 "date_updated": "Mon, 13 Aug 2018 21:38:46 +0000",10 "direction": "inbound",11 "error_code": "30001",12 "error_message": "Queue overflow",13 "from": "+15551234567",14 "price": 0.005,15 "price_unit": "USD",16 "sid": "0a059168-ead0-41af-9d1f-343dae832527",17 "status": "queued",18 "to": "+15557654321",19 "messaging_service_sid": "b3877c40-da60-4998-90ad-b792e98472ms",20 "uri": "/api/laml/2010-04-01/Accounts/ea108133-d6b3-407c-9536-9fad8a929a6a/Messages/0a059168-ead0-41af-9d1f-343dae832527.json",21 "subresource_uris": {22 "media": "/api/laml/2010-04-01/Accounts/ea108133-d6b3-407c-9536-9fad8a929a6a/Messages/0a059168-ead0-41af-9d1f-343dae832527/Media.json"23 }24}
1import { RestClient } from "@signalwire/sdk";23const client = new RestClient({4 project: "your-project-id",5 token: "your-api-token",6 host: "your-space.signalwire.com",7});89await client.compat.messages.update("SM...", { Body: "" });