For how long is message retention?
How long will messages stay in your DB? Can they be deleted automatically after a period of time?
Messages live in our DB open-endendly by default. Most people implementing with Cord want to give their users a commenting or chat experience that goes back as far as possible so that their users never "lose" messages.
That said, you can easily implement message deletion using our REST APIs. Using the list message API, you can fetch all the messages in a given application by calling curl "https://api.cord.com/v1/threads/<threadID>/messages" -H 'Authorization: Bearer <ACCESS_TOKEN>'". Or the equivalent in whatever server-side language your application is built in. You'll likely need to paginate through the returned list to go through all of the messages. With those message objects, you can check the timestamp of the message.
If the message is older than you'd like to keep in your system, you can call the message delete API.
At the moment we don't have an automated message retention policy. Hope that's useful!
That makes sense. thanks.
Another useful thing to know is that our thread REST API allows you to filter by the timestamp of either the first or most recent message in a thread. So that would let you quickly find all threads that haven't been updated in the past year, for example.