Arslan-MD/IvaSms-api ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple Flask API for managing IVAS SMS messages and OTP retrieval.
I want a homepage route that returns a small JSON status message saying the API is alive, and an SMS route that lets me fetch OTP messages by date, or by a date range, with an optional limit on how many results come back. It should also include basic stats like total SMS, paid SMS, unpaid SMS, and revenue in the response.
Use a cookies.json file for login session authentication, and if the cookie is expired or invalid, return a clear error message instead of crashing. I also want helpful error logs so I can tell what went wrong. Please make it work nicely with compressed responses too if needed.
Set it up so I can run it locally with Python, and also deploy it easily on Vercel. If you need to check current docs online for anything, go ahead.
Are you gonna build this?
make sure you review the code using coderabbit