Skip to content
dimmiDocs

Conversations

Delete a message

DELETE/api/v1/conversations/{conversation}/messages/{message}

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the conversations:write ability

Path parameters

conversationstringrequired

Id of the conversation, such as conv_01jx2m8k4t, or its number, such as 1042 for #1042. Find it with GET /conversations or GET /search.

messagestringrequired

Id of the message, starting with msg_, such as msg_01jx2m8k4t. Find it with GET /conversations/{conversation}/messages.

Response 200

OK
dataobjectrequired
Show child attributes
bodystringrequired

The text of an undone reply, so it can be put back in the composer. Empty when the message was deleted rather than undone.

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

undonebooleanrequired

True when the message was a reply still waiting to leave and was undone; false when a message was deleted.

metaobjectrequired
Show child attributes
next_cursorstring | nullrequired

Cursor of the next page; send it back as the cursor to read on. Null on the last page.

per_pageintegerrequired

Page size: the most rows one page of this list holds.

Format: int64

prev_cursorstring | nullrequired

Cursor of the previous page. Null on the first page.

totalinteger

How many rows match in all, across every page. Left out when the endpoint did not count.

Format: int64

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.