HTTP API
Learn how to authenticate and send requests to the Enderdash HTTP API.
About this API
The HTTP API reads and changes dashboard resources, such as organizations, servers, alerts, and knowledge pages.
This API does not use the live browser-to-agent connection. Live panel actions, such as console commands and file edits, are not available over HTTP.
Authentication
The HTTP API accepts either:
- a signed-in Enderdash session cookie
- a user API key sent as
X-API-Key
It does not accept per-server agent keys or OAuth access tokens. Account OAuth and Game OAuth provide sign-in for other applications. Their access tokens belong to their respective OAuth endpoints.
Agent keys do not authenticate the HTTP API
Agent keys only register an agent to a server record. Use a browser session or user API key for HTTP requests.
OpenAPI documents
- Schema:
https://app.enderdash.com/openapi.json - Generated reference: OpenAPI
Import the schema into an OpenAPI tool to create requests. You can use tools such as Postman or Insomnia.
Base path and request model
The API uses the /api/http base path. The dashboard itself uses a different endpoint at /api/rpc. External clients must use /api/http.
| Operation type | Path shape | Input format |
|---|---|---|
| Query | GET /api/http/<router>/<procedure> | Individual URL query parameters |
| Mutation | POST /api/http/<router>/<procedure> | A JSON request body |
Successful responses contain the result as JSON, without an envelope.
An error response is a JSON body with the code, status, and message fields.
Use the generated schema as the source of truth. It defines all parameters, message bodies, and status codes.
What is included
The HTTP API includes procedures from these groups:
activityadminalertsauthchatintegrationsknowledgenotificationsocelotorganizationspwaservers
The admin group manages dashboard-account OAuth clients and requires an Enderdash platform admin.
Game OAuth client procedures belong to organizations and require organization owner or admin access.
The normal Enderdash access rules apply:
- organization membership
- server access
- admin-only procedures
- plan limits
What is not included
- WebRTC signaling and the browser-to-agent transport
- the dashboard's own transport at
/api/rpc - Ocelot streaming chat
Error behavior
| Status | Meaning |
|---|---|
400 | Invalid input |
401 | Missing authentication |
403 | Authenticated but not allowed |
404 | Resource not found |
409 | The resource state or plan limits blocked the request |
429 | Rate limit exceeded |
Make your first request
- Open your user menu in the dashboard, choose Settings, and select Security.
- In API keys, choose Create API key. Enter a Name, which is required, and choose an expiry appropriate to the script.
- Copy the secret when it is shown. Store it outside source control.
- Copy the organization slug from its dashboard URL, such as
my-teamin/@my-team. Use the slug, not the display name. - Run the following read-only request from your own shell:
export ENDERDASH_USER_API_KEY='<user-api-key>'
export ENDERDASH_ORGANIZATION_SLUG='<organization-slug>'
curl --fail-with-body \
-H "X-API-Key: $ENDERDASH_USER_API_KEY" \
--get \
--data-urlencode "organizationSlug=$ENDERDASH_ORGANIZATION_SLUG" \
'https://app.enderdash.com/api/http/servers/listServers'Expect a JSON array of accessible server records. An empty array can be a valid response when the organization has no accessible servers. Do not put the key into a URL or screenshot.
The key acts through its user's normal access. It does not grant an organization role or bypass server grants. Revoke a key through the same API Keys area when the script no longer needs it.
The schema at https://app.enderdash.com/openapi.json describes the deployed API. If the
generated reference shows an operation that the deployed schema does not have, the operation is
not released yet.
Diagnose a failed request
401: check the header, expiry, and whether the user key was revoked.403: check the user's membership, role, and server grants.400: compare the query parameters or JSON body with the generated operation.409: inspect the error message for the blocked state or plan limit.429: reduce request frequency and follow the response's retry information when available.
Use --get and --data-urlencode for query parameters. For a mutation, use the documented
POST operation and JSON body.
Related
Was this page helpful?
Send a quick note if anything is missing or unclear.
Last updated on