API reference
A REST API for creating projects and running builds. Every request is scoped to your account, and streaming uses Server-Sent Events.
Base URL
https://api.pingless.org
Authentication
There are two ways to authenticate, depending on where the request comes from.
Browser: session cookie
On login or signup, Minely sets an httpOnly session cookie. The web app sends it automatically, so there is nothing to configure and no signing required.
Programmatic: API key
Every account gets a personal API key (forge_sk_...) at signup. It is shown once (store it securely), and you can manage keys under Settings. Send it as a bearer token:
Authorization: Bearer forge_sk_...
API-key requests must also be signed (see below).
Signed requests
Every API-key call must include three extra headers in addition to Authorization:
X-Forge-Timestamp: unix milliseconds, within ±5 minutes of server time.X-Forge-Nonce: a unique random string, usable exactly once. Replays are rejected.X-Forge-Signature: hexHMAC-SHA256(apiKey, canonicalString).
The canonical string is built by joining these five parts with newlines:
canonicalString = METHOD PATH TIMESTAMP NONCE sha256(rawBody)
Copy-pasteable Node.js signer:
import crypto from "node:crypto";
function signedHeaders(apiKey, method, path, body = "") {
const ts = Date.now(), nonce = crypto.randomUUID();
const bodyHash = crypto.createHash("sha256").update(body).digest("hex");
const canonical = [method.toUpperCase(), path, ts, nonce, bodyHash].join("\n");
const sig = crypto.createHmac("sha256", apiKey).update(canonical).digest("hex");
return {
Authorization: `Bearer ${apiKey}`,
"X-Forge-Timestamp": String(ts),
"X-Forge-Nonce": nonce,
"X-Forge-Signature": sig,
};
}curl example
Create a project with signed headers (compute $SIG with the signer above):
TS=$(node -e 'console.log(Date.now())')
NONCE=$(node -e 'console.log(crypto.randomUUID())')
# compute X-Forge-Signature = hex HMAC-SHA256(apiKey, canonicalString)
# canonicalString = METHOD\nPATH\nTIMESTAMP\nNONCE\nsha256(rawBody)
curl https://api.pingless.org/api/projects \
-H "Authorization: Bearer forge_sk_..." \
-H "X-Forge-Timestamp: $TS" \
-H "X-Forge-Nonce: $NONCE" \
-H "X-Forge-Signature: $SIG" \
-H "Content-Type: application/json" \
-d '{"name":"my-plugin","mcVersion":"1.21.8","prompt":"a /kit command"}'Webhooks
Register an https endpoint with POST /api/webhooks and every finished build posts a signed generation.completed event to it, with no polling needed. Verify the signature with the secret shown once at creation:
// Verify an inbound webhook (Express/Node):
const sig = req.headers["x-minely-signature"]; // "sha256=<hex>"
const expected = "sha256=" + crypto
.createHmac("sha256", process.env.PINGLESS_WEBHOOK_SECRET) // whsec_... from POST /api/webhooks
.update(req.rawBody) // the RAW body, not re-serialized
.digest("hex");
if (sig !== expected) return res.sendStatus(401);
// Event: { id, type: "generation.completed", createdAt,
// data: { generationId, projectId, status, version, costCredits, failureReason, summary } }Errors
signature_invalidThe X-Forge-Signature did not match the canonical string.
replay_detectedThe nonce was already used, or the timestamp is outside the ±5 minute window.
invalid_api_keyThe API key is unknown, revoked, or malformed.
rate_limitedYou exceeded a rate limit. Check the x-ratelimit-* response headers.
Rate limits
Generally 300 requests/min per identity. Auth endpoints are tighter, for example signup is 10/hr and login is 30 per 5 minutes. Every response includes x-ratelimit-* headers so you can see your remaining budget and reset time.
Endpoints
OpenAPI 3.1 spec/api/projectsCreate a project. Body: { name, mcVersion?, prompt? }. Returns the new project.
/api/projectsList the caller's projects.
/api/projects/:id/generateStart a build. Body: { prompt, tier?, planOnly?, plan?, swarm?, goal? }. Returns { generationId }.
/api/generations/:id/streamServer-Sent Events for a generation: phase, thought, file, log, attempt, diagnostics, build, done. Reconnect with Last-Event-ID.
/api/projects/:id/chatConversational turn with optional visual image attachments. Body: { message, attachments?, history? }. Returns a reply and, when the user asks to build, a normalized spec.
/api/diagnoseLog doctor. Body: { log } (a Minecraft server log excerpt). Returns a plain-English diagnosis { summary, cause, fix, fixPrompt, kind }. Billed like a chat question.
/api/chatbotsList the caller's Discord chatbots. POST /api/chatbots creates one (max 3 per user): { name }.
/api/chatbots/:id/tokenStore the Discord bot token (encrypted at rest, never returned). PATCH /api/chatbots/:id updates name/guildId/channelId/systemPrompt.
/api/chatbots/:id/knowledgeAdd a knowledge file { filename, content } (txt/md, 256 KB max, 25 files). DELETE /api/chatbots/:id/knowledge/:kid removes one.
/api/chatbots/:id/startStart the bot: charges 300 credits for 30 days up front (auto-refunded if the token/intents fail). POST /api/chatbots/:id/stop stops it and clears billing.
/api/teamsCreate a team (Pro/Team plan): { name, description? }. GET /api/teams lists my teams and pending invites. POST /api/teams/:id/invite { email } invites any user.
/api/teams/:id/projectsGrant the team access to one of your projects: { projectId }. DELETE /api/teams/:id/projects/:projectId revokes it.
/api/generations/:id/cancelCancel an in-flight generation. 204 on success.
/api/projects/:id/rebuildRecompile the current files with no model call.
/api/builds/:id/jarGet a link to the compiled jar. Returns { url }; the URL streams the jar.
/api/projects/:id/zipGet a link to the project source. Returns { url }; the URL streams a zip.
/api/projects/:id/bannerRedirects to a short-lived signed URL for the project's generated wide key-art banner.
/api/billing/generationsPaginated build and credit history. Query: ?limit=&cursor=.
/api/billing/balanceCurrent credit balance.
/api/billing/transactionsCredit transaction history.
/api/keysList your API keys (metadata only; the secret is shown once at creation).
/api/keysCreate a new API key. The forge_sk_ secret is returned once: store it now.
/api/keys/:idRevoke an API key.
/api/projects/:id/versionsVersion history: every successful build, newest first, with its version stamp (1.0.0 → 1.0.1 → …), generationId and buildId.
/api/projects/:id/restoreRestore a project to a past version. Body: { generationId } (from /versions). Replaces the project's files with that build's snapshot.
/api/usageYour API usage: request counts per day (30d), top endpoints, recent calls, and the 30-day total.
/api/webhooksList your webhook endpoints (secrets masked).
/api/webhooksRegister a webhook URL. Body: { url } (https). Returns the signing secret ONCE. Max 10 endpoints.
/api/webhooks/:idDelete a webhook endpoint.
SSE event types: phase, thought, file, log, attempt, diagnostics, build, done.
