DELETE /requests/{requestId}/messages/{messageId}

Delete a message.

Path parameters

  • requestId string Required

    The ID of the request

  • messageId string Required

    The ID of the message

Responses

  • 200 application/json

    Message deleted successfully

    Hide response attribute Show response attribute object
    • deleted boolean
  • 401

    Unauthorized -- Your API key is wrong.

  • 403

    Forbidden -- The object requested is hidden for administrators only.

  • 404

    Not Found -- The specified object could not be found.

  • 429

    Too Many Requests -- You're requesting too many objects! Slow down!

  • 500

    Internal Server Error -- We had a problem with our server. Try again later.

  • 503

    Service Unavailable -- We're temporarily offline for maintenance. Please try again later.

DELETE /requests/{requestId}/messages/{messageId}
curl \
 --request DELETE 'https://api.usecollect.com/v1/requests/{requestId}/messages/{messageId}' \
 --user "username:password"
Response examples (200)
{
  "deleted": true
}