HTTP API
The client libraries call these endpoints for you. This page is for custom integrations and for
debugging. All endpoints are under /api, accept and return JSON, and are rate limited.
Base URL: https://api.plugboard.cloud
Authentication
Section titled “Authentication”| Endpoints | Credential |
|---|---|
| Usage events, CI uploads | The workspace API key: Authorization: Bearer aut_… or X-Api-Key: aut_… |
| Update check | The API key, or a plugin login token (Authorization: Bearer …) |
| Plugin login check / logout | The plugin login token (Authorization: Bearer …) |
An invalid or missing API key returns 401 with Invalid or missing API key. The API key allows
600 requests per minute.
Usage events
Section titled “Usage events”POST /api/usage-events
Section titled “POST /api/usage-events”Stores one event, or a batch of up to 500 as {"events": [ … ]}.
| Field | Type | |
|---|---|---|
tool_name |
string | Required, max 255 |
user_name |
string | Required, max 255 (Windows user name) |
pc_name |
string | Required, max 255 |
event_name |
string | Required, max 255, e.g. plugin_run_completed |
data |
object | Optional, up to 16 KB |
occurred_at |
datetime | Optional |
curl -X POST "https://api.plugboard.cloud/api/usage-events" \ -H "X-Api-Key: $PLUGBOARD_API_KEY" -H "Content-Type: application/json" \ -d '{"events":[{"tool_name":"Rebar Exporter","user_name":"jdoe","pc_name":"WS-042","event_name":"export_done","data":{"bars":120}}]}'Response: 202 {"stored": 1}. Invalid events return 422, with errors keyed
events.<index>.<field>. A workspace whose email isn’t verified yet gets 403.
The event names and their data are listed in the event reference.
Update check
Section titled “Update check”GET /api/app-updates/check
Section titled “GET /api/app-updates/check”Query: file_hash (SHA-256 of the running DLL/EXE), pc_name, user_name.
{ "update_available": true, "current": { "version": "1.3.0" }, "latest": { "version": "1.4.0", "published_at": "2026-11-20T10:00:00Z", "release_notes": "…", "file_name": "PurlinDesigner.dll", "file_size": 482304, "download_url": "https://…" }}An unknown hash returns no update. download_url is a signed link, valid for 15 minutes; for
applications in a group it downloads the whole .tsep. 30 requests per minute.
Plugin login
Section titled “Plugin login”The login library uses these. Plugins are identified by the hash of their DLL, which must be an uploaded, unblocked version.
| Endpoint | Body / credential | Success response |
|---|---|---|
POST /api/app-auth/login |
email, password, file_hash, pc_name |
{"status":"authenticated","token","token_type":"Bearer","expires_at","user","application","version"} or {"status":"2fa_required","challenge_id","challenge_expires_at"} |
POST /api/app-auth/2fa |
challenge_id, code (authenticator or recovery code) |
as login |
POST /api/app-auth/token |
Browser login (PKCE): grant_type=authorization_code, code, code_verifier, redirect_uri |
as login |
POST /api/app-auth/check |
Bearer token | {"valid": true, "expires_at", "update"} |
POST /api/app-auth/logout |
Bearer token | 204 |
GET /api/app-auth/public-key |
— | {"active_kid", "keys": [ … ]}: token signing keys with their certificates |
Login errors return {"error": "<code>", "message": "…"}:
| Code | HTTP |
|---|---|
invalid_credentials |
401 |
invalid_challenge, invalid_code |
401 |
invalid_grant |
400 |
not_allowed |
403 |
version_not_recognised |
403 |
version_blocked |
403 |
application_inactive |
403 |
tenant_inactive |
403 |
Check failures return 401 {"valid": false, "reason": "<reason>", "message": "…"}, where reason
is one of invalid_token, expired, logged_out, logged_out_remotely, user_removed,
user_deactivated, version_blocked, application_deactivated, application_deleted or
tenant_deactivated.
Upload a version from CI
Section titled “Upload a version from CI”POST /api/ci/applications/{application}/versions
Section titled “POST /api/ci/applications/{application}/versions”API key. {application} is the application’s id in your workspace. Multipart form:
| Field | |
|---|---|
file |
The DLL or EXE (required) |
version |
Optional; read from the file when empty |
release_notes |
Optional, Markdown |
publish |
1 to publish now, otherwise uploaded as a draft |
Response: 201 with the version (id, version, file_name, sha256, status,
publish_status, published_at, …). A file that is already registered, or isn’t a Windows DLL or
EXE, returns 422.