Edit a messageComing soon
Changes the text of a message the account sent. Everyone sees that it was edited. A message that went out by text cannot be edited.
Coming soon. Changes the text of a message the account sent. Everyone sees that it was edited. A message that went out by text cannot be edited.
Final action. When the connection is set to Ask me, this call returns 202 with an approval_url and does nothing until the account holder approves it in Matchai; Matchai then performs it exactly as sent and sends approval.resolved. When the connection is set to Allowed, it runs straight away.
Scopes: messages:send
Pricing: Included with the connection.
AuthorizationBearer <matchai_<base62>>A personal API key, sent as Authorization: Bearer matchai_…. Create keys in Matchai under Settings → Connectors → Advanced (for developers). A key starts with matchai_ followed by letters and digits, carries the scopes chosen when it was created, and can be revoked at any time. Keys reach only the account that created them: to serve other professionals, use Connect with Matchai.
Scope: messages:send
conversation_id*stringConversation id.
1 <= length <= 64message_id*stringMessage id.
1 <= length <= 64application/json- body
text*stringNew text for a message you sent.
1 <= length <= 4000The message.
application/json- response
id*stringMessage id.
1 <= length <= 64conversation_id*stringConversation id.
1 <= length <= 64type*string"text""image""file""audio""video""location""gif""system"text*stringThe text. Empty for a message that is only an attachment.
sender*A person as they appear in a conversation or on an appointment.
from_you*booleanSent by the account this connection acts for.
sent_via*reply_to_message_id?|The message this replies to.
1 <= length <= 64attachments*array<>Files sent with it.
delivery*sent_at*stringSent.
date-timeedited_at?|Last edited.
date-timecurl -X PATCH 'https://api.matchai.co/v1/conversations/string/messages/string' \ -H 'Content-Type: application/json' \ -d '{ "text": "string"}'{ "id": "string", "conversation_id": "string", "type": "text", "text": "string", "sender": { "user_id": "string", "contact_id": "string", "display_name": "string", "avatar_url": "http://example.com" }, "from_you": true, "sent_via": { "kind": "person", "app_name": "string" }, "reply_to_message_id": "string", "attachments": [ { "document_id": "string", "name": "string", "mime_type": "string", "size_bytes": 0 } ], "delivery": { "channel": "matchai", "state": "sent" }, "sent_at": "2019-08-24T14:15:22Z", "edited_at": "2019-08-24T14:15:22Z"}