1. What you need
- A running Argus deployment, local or hosted.
- Either a browser signed in to it with Discord, or a service credential an administrator has issued to you.
- The permission the endpoint checks. A new account can use the civilian endpoints and nothing else; see Permissions.
Argus is an internal application API. There is nothing to sign up for, and no key you can generate yourself.
2. Base URL
Every path is under/api on the deployment’s own origin.
There is one API, with no version in the path.
3. A first request
- From the web application
- With a service credential
Code running on an Argus page is same-origin, so the session cookie is sent for you.A request that changes something needs a JSON body and nothing else. The browser adds the
Origin header Argus checks.4. Reading the response
A successful response wraps its result indata. The examples on this page are shortened; the reference shows each full shape.
meta. Page with limit (1 to 100, default 25) and offset (0 to 10,000). hasMore tells you whether another page exists.
data. It carries a stable code, a readable message, and the request’s ID.
error.code, not on the message.
5. Permissions
Each endpoint names the permission it checks.GET /api/me returns the permissions in effect for you right now, which is the reliable way to decide what to offer.
- Everyone signed in holds
civilians.createandcivilians.manage_own. - Everything else comes from staff roles an administrator assigns.
- Holding one permission never implies another.
6. Errors you will meet first
Errors lists every status and code. Optimistic concurrency explains the
version field behind most 409s.