Hello! This is the backend API for
echolotl.lol. You can use
these endpoints however you like, but please don't abuse them.
There are rate limits.
This is a mega WIP as I learn Elysia and backend stuff. You can view
the source code
here.
Gets echolotl's current playing song on Spotify.
15 requests over 1 minute
Provides a stripped down version of
Spotify's current playback information.
Omitted fields include: actions,
device, repeat_state,
shuffle_state, and context.
Gets echolotl's latest status.
15 requests over 2 minutes
Returns the latest status object.
{
"text": "sleepy",
"emoji": "😴",
"createdAt": 1741553075123
}
Gets recent statuses, newest first.
limit (optional number): Number of statuses to
return. Defaults to 10.
15 requests over 2 minutes
Returns a list of statuses and the count returned.
{
"total": 2,
"statuses": [
{
"text": "coding",
"emoji": "🧠",
"createdAt": 1741553075123
},
{
"text": "lunch",
"emoji": null,
"createdAt": 1741549075123
}
]
}
POST /status
lock
Creates a new status entry.
Authorization: required passkey token. (Defined in
server config)
{
"text": "string (1-100 chars)",
"emoji": "emoji (optional, nullable)"
}
15 requests over 2 minutes