rizamodocs
Inbox

Delete a comment

DELETE
/inbox/threads/{id}/messages/{messageId}

Deletes the comment from its network, as the account, with the replies under it, and from the thread: it no longer shows in Get a thread. When it is the thread's first comment (first), the thread goes too, and leaves every list and count. One already gone from the network counts as deleted, so a delete that failed can be asked again. Errors: 400, before any call, when it is not a comment (a message) or its network does not allow it for this comment, with why (moderationProblem); 422 capability_missing when the account's login does not allow managing comments (on Threads, until Meta approves Rizamo's access to replies); 409 when the account needs a new login or is not active, the reply is still sending, or the network refused, with its reason; 404 for a thread or comment the caller does not reach. On Threads, 422 too for the profile's own reply until Meta approves Rizamo's access to deletes.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the web app, under Developers. It starts with rz_live_.

Path Parameters

id*string

The thread's id (thr_).

Lengthlength <= 100
messageId*string

The comment's message id (msg_), from Get a thread.

Lengthlength <= 100

Response Body

OK

application/json
  1. response
id*string

The comment deleted.

threadDeleted*boolean

True when it was the thread's first comment: the thread is gone from the inbox with it.

Example Request
curl -X DELETE 'https://api.rizamo.com/v1/inbox/threads/thr_01m4bvs7w0fmf9g0mrdy7j6bc5/messages/msg_01m4e3wc00ecj9ez6jrr2c6eaj'
Example Response
{  "id": "msg_01m4e3wc00ecj9ez6jrr2c6eaj",  "threadDeleted": false}