Requests, errors and limits

A few rules apply to every request. Each is short, and following them makes your program behave well when something goes wrong.

Ids

  • Your server: in the path, your Discord server id, or Technified’s own id for it (starts with gld_). Use either exactly as it is; gld_123456789012345678 is neither and answers 404.
  • Discord and Roblox accounts: always their number, sent as a string: "156", not 156. Discord ids are too long for a number in JavaScript.
  • What Technified makes has an id with a prefix that says what it is: pun_ punishment, tkt_ ticket, sub_ submission, frm_ form, gsv_ game server.
  • Times are ISO 8601 strings in UTC, like 2026-11-01T18:00:00.000Z. Lengths are in seconds: 604800 is 7 days.

Errors

When something is refused, the answer has an HTTP status and a JSON body with a stable code. Check the code in your program, never the words, which may change.

A refusal · 403
{
  "type": "https://docs.technified.dev/errors/missing_permission",
  "title": "Missing permission",
  "status": 403,
  "code": "missing_permission",
  "detail": "This needs the moderation.write permission."
}
A wrong field · 422
{
  "type": "https://docs.technified.dev/errors/validation_failed",
  "title": "Validation failed",
  "status": 422,
  "detail": "The request body failed validation.",
  "code": "validation_failed",
  "errors": [
    { "path": "durationSeconds", "message": "Number must be greater than or equal to 60" }
  ]
}
StatusWhat it meansWhat to do
400The request itself is wrong, for example broken JSON.Read detail.
401No key, a wrong one, or a revoked one.Check the Authorization header.
403The key may not do this (missing_permission), or the endpoint is for people only.Give the key the permission, or do it in the dashboard.
404It does not exist, or belongs to another server.Check the ids.
409Not possible right now: already lifted, already decided. code says which.Read it again; often nothing is left to do.
412Somebody changed it since you read it.Read it again, then retry.
422A field is wrong. errors lists each field and why.Fix the fields.
429Too many requests.Wait retryAfter seconds.
5xxSomething went wrong on Technified’s side, or Discord or Roblox did not answer.Retry a little later.

Retrying without doing it twice

A network can drop the answer after Technified already banned somebody. If you retry, you would ban twice. Endpoints marked Retry safely in the reference take an Idempotency-Key header: any random text, the same on every retry of that one action. Technified then answers the retry with the first answer instead of doing it again.

Header
Idempotency-Key: 3f1c9a52-8b0e-4d1f-9a77-2c5e6d8b1f40

Lists come in pages

A list answers with items and a nextCursor, a bookmark. To get the next page, send the bookmark back as cursor. When nextCursor is null, you have everything. limit sets the page size, up to 100.

Two pages
GET /guilds/YOUR_SERVER_ID/moderation/punishments?limit=100
→ { "items": [ … 100 … ], "nextCursor": "pun_01J9Z4T7C2Q8M3N5V6W7X8Y9Z0" }

GET /guilds/YOUR_SERVER_ID/moderation/punishments?limit=100&cursor=pun_01J9Z4T7C2Q8M3N5V6W7X8Y9Z0
→ { "items": [ … 37 … ], "nextCursor": null }

How many requests

Each key has a budget per minute, and every answer says how large it is. When it is used up, the answer is 429 with retryAfter, at most 60 seconds.

Response header
x-ratelimit-limit: 300
Kind of requestPer minute
Reading300
Changing something60
Ban check (moderation/status)1200
Sending to every game server at once5

Over the budget you get 429 with retryAfter in seconds. Wait that long, then try again.

Changing settings

Settings carry a version, so two people cannot overwrite each other. Read the server with GET /guilds/YOUR_SERVER_ID, then send its settingsVersion as an If-Match header on PATCH /guilds/YOUR_SERVER_ID/settings. If somebody changed them in between, you get 412: read again and retry.

Still stuck? Get help from the Technified team.