Messages

Edit a message

Replaces the text of a text message this number sent, within WhatsApp's 15-minute window, and/or its context. Captions cannot be changed after sending. The first text is kept and audited. Editing the text does not change the context the AI answers from: send context too when the correction matters to it (a new gate, a new time). A context-only edit has no window and does not reach WhatsApp.

patch/v1/messages/{id}

Request

  • Base URL: https://www.chatrail.dev
  • URL: https://www.chatrail.dev/v1/messages/{id}
  • Auth: HTTP bearer

Path parameters

idstring required

Message id.

Request body

bodystring
contextobject
context_sensitivity'normal' | 'sensitive' | 'restricted'

Response

The message, with edited_at set.

Changes

No recorded changes to this operation across all 1 revision of this API.