Technical specification for the ERM Open API
curl -X GET \ -H "Authorization: ${TOKEN}" \ -H "Guild: $GUILD_ID" \ -H "Content-Type: application/json" \ https://core.ermbot.xyz/api/v1/shifts
interface ResponseEnvelope<T> { data: T[]; // Resource collection pagination: { next_cursor: number; // Temporal cursor position limit: number; // Result set boundary has_more: boolean; // Collection continuation flag } }
1736302471.07677
1090340521350131742
1702544876
after
limit
integer
# Shifts - Unix timestamp cursor GET /api/v1/shifts?after=1736302471.07677&limit=50 # Moderations - Snowflake cursor GET /api/v1/moderations?after=1090340521350131742&limit=50 # Leaves - Epoch timestamp cursor GET /api/v1/leaves?after=1702544876&limit=50
{ "status": 400, "message": "Error description", "error_code": "ERROR_TYPE" }