Skip to content

Docs

Quick start

  1. Make a key in the API section of the Owner Hub.
  2. Call your server's own website address.
curl "https://your-site.com/api/v1/actions" \
  -H "Authorization: Bearer $SEQUENCE_KEY"

Keys

  1. Owner Hub, API, Keys: New key. Name it and pick what it can do.
  2. Copy it once. Send it as a Bearer header on every call.
curl "https://your-site.com/api/v1/server/status" \
  -H "Authorization: Bearer $SEQUENCE_KEY"

Scopes

server:read server:actServer
players:read players:actPlayers
dino:read dino:actLive dinos
garage:read garage:actGarage
economy:read economy:actEconomy
shops:read shops:actShops
stats:read stats:actStats
moderation:read moderation:actModeration
logs:read logs:actLogs
location:readDino positions.
chat:readChat lines.
power:actRestart, stop and start. Owner keys only.
rcon:actRCON commands. Owner keys only.

Requests

JSON in and out. Steam IDs are strings.

Authorization: Bearer sqm_live_...
GET  https://your-site.com/api/v1/...?cursor=<next>
POST https://your-site.com/api/v1/...
Idempotency-Key: <uuid>

X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
{
  "error": {
    "code": "needs_package",
    "message": "..."
  }
}
400Bad request
401Missing, wrong, expired or revoked key
403Missing scope or package
404Not found
429Over the cap: wait for X-RateLimit-Reset
5xxOur side: try again

Webhooks

  1. Add a URL under Webhooks in the API section of the Owner Hub.
  2. Check the signature on every delivery, then answer 2xx fast.
POST /your/url
Content-Type: application/json
Sequence-Signature: t=1761955200,v1=<hex signature>
Sequence-Event-Id: <event id>

{
  "id": "<event id>",
  "type": "player.joined",
  "at": 1761955200000,
  "server": "<your server>",
  "data": { }
}
import crypto from "node:crypto";

// secret: the endpoint's signing secret. rawBody: the body exactly as it arrived.
export function verify(secret, header, rawBody) {
  const parts = (header || "").split(",").map((part) => part.split("="));
  const t = parts.find(([k]) => k === "t")?.[1];
  const signatures = parts.filter(([k]) => k === "v1").map(([, v]) => v);
  if (!t || signatures.length === 0) return false;
  // Refuse replays: the signed time must be within 5 minutes of now.
  if (Math.abs(Date.now() / 1000 - Number(t)) > 300) return false;
  const expected = crypto.createHmac("sha256", secret).update(t + "." + rawBody).digest("hex");
  return signatures.some((v) => v.length === expected.length &&
    crypto.timingSafeEqual(Buffer.from(v), Buffer.from(expected)));
}

// Express: keep the raw body for the check.
app.post("/sequence", express.raw({ type: "application/json" }), (req, res) => {
  const body = req.body.toString("utf8");
  if (!verify(process.env.SEQUENCE_WEBHOOK_SECRET, req.get("Sequence-Signature"), body)) {
    return res.sendStatus(400);
  }
  res.sendStatus(200);
  const event = JSON.parse(body);
  // event.type, event.data ...
});

Feeds

Turn each feed on under Feeds in the API section of the Owner Hub. Live stats and Kills open only with a key that can read Stats.

/api/v1/feeds/metricsLive stats for dashboards (Prometheus). Needs a key.
/api/v1/feeds/statusDown alerts: 200 up, 503 down.
/api/v1/feeds/server.jsonServer list sites.
/api/v1/feeds/calendar.icsRestarts.
/api/v1/feeds/kills.rssKills (also kills.atom). Needs a key.
curl "https://your-site.com/api/v1/feeds/metrics" \
  -H "Authorization: Bearer $SEQUENCE_KEY"

Give log

Every give made by a key (points, items, dinos): who got it, what, and whether it landed. Owner Hub, API, Give log.

curl -X POST "https://your-site.com/api/v1/deliveries" \
  -H "Authorization: Bearer $SEQUENCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"steam_id":"<player>","grants":[{"kind":"points","amount":500}],"note":"Shop order 1042"}'

API log

Every call a key made: time, call, answer and how long it took. Owner Hub, API, API log. Each answer carries its own request id.

curl -i "https://your-site.com/api/v1/server/status" \
  -H "Authorization: Bearer $SEQUENCE_KEY"
# Sequence-Request-Id: the same id the API log shows

Events

player.joinedA player joined.
player.leftA player left.
dino.spawnedA dino spawned.
dino.diedA dino died, with the cause.
player.killedA kill: killer, victim, species and growth.
dino.grewA dino grew a stage.
chat.messageA chat line. Needs chat:read.
command.usedA chat command was used.
dino.parkedA dino was parked.
dino.taken_outA dino was taken out.
economy.changedA wallet changed.
shop.purchasedA shop purchase.
delivery.doneA delivery finished.
moderation.kickedA player was kicked.
moderation.bannedA player was banned.
moderation.unbannedA player was unbanned.
server.restart_warningA restart warning went out.
server.restartedThe server restarted.
server.statusThe server went up or down.

Libraries

npm install https://sequencemods.com/api/devkit/sequencemods-api-0.4.1.tgz
pip install https://sequencemods.com/api/devkit/sequencemods-0.4.1-py3-none-any.whl

All downloads

Examples

Server status

GET/api/v1/actions

curl "https://your-site.com/api/v1/actions" \
  -H "Authorization: Bearer $SEQUENCE_KEY"

Players

GET/api/v1/clans

curl "https://your-site.com/api/v1/clans" \
  -H "Authorization: Bearer $SEQUENCE_KEY"

Leaderboards

GET/api/v1/stats/achievements/{steam_id}

curl "https://your-site.com/api/v1/stats/achievements/{steam_id}" \
  -H "Authorization: Bearer $SEQUENCE_KEY"

An action

POST/api/v1/actions/moderation.ban

curl -X POST "https://your-site.com/api/v1/actions/moderation.ban" \
  -H "Authorization: Bearer $SEQUENCE_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"steam_id":"string","reason":"string","hours":0,"minutes":0}'

A delivery

POST/api/v1/deliveries

curl -X POST "https://your-site.com/api/v1/deliveries" \
  -H "Authorization: Bearer $SEQUENCE_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"steam_id":"string","grants":[{"kind":"points","amount":0,"species":"string","growth_pct":0,"prime":false,"entomb":0,"sex":"female","name":"string","mutations":[null],"parent_mutations":[null],"elder_mutations":[null],"item":"bundle","skin_id":"string","uses":0,"tier":0,"days":0}],"note":"string"}'

Changelog

November 2026: v1, first release.

Versions

v1 only grows. Breaking changes come as /api/v2, with v1 kept 6 months.