Skip to main content
The ERM API implements uses RESTful principles to provide consistent, basic data about servers data that you can integrate with your services.

Authentication Protocol

The API implements stateless authentication using cryptographically secure tokens.

Implementation Pattern

Requests must include the token in the Authorization header and the Guild in the Guild header:

Response Schema

The API implements a normalized response envelope pattern:

Cursor-Based Pagination Implementation

The API implements resource-specific pagination mechanisms:

Resource-Specific Cursor Types

Shifts

  • Type: Unix Timestamp (float)
  • Format: Base-10 decimal timestamp
  • Example: 1736302471.07677
  • Usage: Time-based ordering of shift records

Moderations

  • Type: Discord Snowflake (int64)
  • Format: Discord-generated unique ID
  • Example: 1090340521350131742
  • Usage: Discord event sequencing

Leaves

  • Type: Unix Epoch (int64)
  • Format: Seconds since Unix epoch
  • Example: 1702544876
  • Usage: Chronological ordering of leave records

Query Parameters

Implementation Examples

Error Handling

When an error occurs, you’ll receive: