Docs
Quick start
- Make a key in the API section of the Owner Hub.
- Call your server's own website address.
curl "https://your-site.com/api/v1/actions" \
-H "Authorization: Bearer $SEQUENCE_KEY"Keys
- Owner Hub, API, Keys: New key. Name it and pick what it can do.
- 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:act | Server |
players:read players:act | Players |
dino:read dino:act | Live dinos |
garage:read garage:act | Garage |
economy:read economy:act | Economy |
shops:read shops:act | Shops |
stats:read stats:act | Stats |
moderation:read moderation:act | Moderation |
logs:read logs:act | Logs |
location:read | Dino positions. |
chat:read | Chat lines. |
power:act | Restart, stop and start. Owner keys only. |
rcon:act | RCON 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": "..."
}
}400 | Bad request |
401 | Missing, wrong, expired or revoked key |
403 | Missing scope or package |
404 | Not found |
429 | Over the cap: wait for X-RateLimit-Reset |
5xx | Our side: try again |
Webhooks
- Add a URL under Webhooks in the API section of the Owner Hub.
- 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/metrics | Live stats for dashboards (Prometheus). Needs a key. |
/api/v1/feeds/status | Down alerts: 200 up, 503 down. |
/api/v1/feeds/server.json | Server list sites. |
/api/v1/feeds/calendar.ics | Restarts. |
/api/v1/feeds/kills.rss | Kills (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 showsEvents
player.joined | A player joined. |
player.left | A player left. |
dino.spawned | A dino spawned. |
dino.died | A dino died, with the cause. |
player.killed | A kill: killer, victim, species and growth. |
dino.grew | A dino grew a stage. |
chat.message | A chat line. Needs chat:read. |
command.used | A chat command was used. |
dino.parked | A dino was parked. |
dino.taken_out | A dino was taken out. |
economy.changed | A wallet changed. |
shop.purchased | A shop purchase. |
delivery.done | A delivery finished. |
moderation.kicked | A player was kicked. |
moderation.banned | A player was banned. |
moderation.unbanned | A player was unbanned. |
server.restart_warning | A restart warning went out. |
server.restarted | The server restarted. |
server.status | The 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.whlExamples
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.