WarmablyWarmablyDOCS
Search docs⌘K
Dashboard
API Reference/Endpoints

Edit a message

PATCH/api/linkedin/gateway/messages/{message_id}

Replaces the text of a message you've already sent — on a media message this rewrites its caption instead, when the provider supports that.

Providers only allow edits for a short window after sending: LinkedIn Classic messaging cuts it off around 60 minutes, WhatsApp around 15. Calls made after that window will fail even though the request itself is well-formed.

Authentication

Send your personal API key as a bearer token. A missing, malformed or revoked key returns 401.

Path parameters

FieldTypeDescription
message_id *stringThe id of the message to edit.

Body parameters

FieldTypeDescription
account_id *stringThe connected account this message belongs to. Must belong to the calling key.
text *stringThe message's new text (or new caption, for a media message).

Errors

·401 Unauthorized. The key is missing, malformed or has been rotated.·403 Forbidden. account_id doesn't belong to this key.·404 Not Found. No message exists with that id on that account.
CredentialsRequired
AuthorizationBearer wm_live_••••••••
RequestTry it
curl -X PATCH https://api.warmably.com/api/linkedin/gateway/messages/wCQ0j9dQXk2QGRLNJ8xE1w \
  -H "Authorization: Bearer wm_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "account_id": "459993d2-b0e7-4b19-baf9-45252ca324cf",
    "text": "Sounds great, let's set up a call next Tuesday."
  }'
Response
200 OK
{
  "object": "MessagePatched"
}
No key yet? Create one from Dashboard → API Keys.