Ingestion API reference
This is the platform-neutral HTTP API that every client integrates against. If you are building or maintaining a client package, implement against this contract. All routes are JSON over HTTPS.
Base path and versioning
The ingestion endpoints live under /api/v1. Send and accept application/json (the backup upload is the one multipart/form-data exception, and the browser endpoint takes text/plain).
Authentication
Every request authenticates with a project API key (lm_...), except the browser endpoint, which is addressed by a public browser key and checked against an origin list (see below). Two header styles are accepted; the bearer form is preferred:
Authorization: Bearer lm_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxX-Monitor-Key: lm_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxThe key is matched by its SHA-256 hash and resolves to a single project. Authentication failures return 401:
{ "message": "Missing API key." }{ "message": "Invalid API key." }Rate limits
- Ingestion (
/ingest,/logs,/dependencies): 300 requests per minute, keyed by project token. - Heartbeats (
/heartbeats/*): 300 requests per minute, keyed by project token, on a budget separate from ingestion so an exception storm cannot delay heartbeats. - Backups (
/encryption-key,/backups*): 60 requests per minute. - Browser errors (
/browser/*): 120 requests per minute per browser key, and 10 per minute per browser key from one address. The address is used for this count only and never stored.
Exceeding a limit returns 429 Too Many Requests.
When ingestion is suspended
While a payment is outstanding on the team's subscription, /ingest, /logs and /dependencies answer 402 Payment Required and store nothing:
{ "message": "Ingestion is suspended while a payment is outstanding. Your existing data stays readable in the dashboard." }Heartbeat pings keep being recorded during that window, so a suspended team's scheduled tasks do not start looking broken. Treat a 402 as a state to log and surface, not as an error to retry: it clears on its own when the payment goes through.
One vault endpoint answers 402 in the same window, with its own message: POST /backups. Reading stays open, the key material included, so a restore of what you have already paid for keeps working.
{ "message": "Backup uploads are suspended while a payment is outstanding. Existing backups stay downloadable." }Listing, downloading and deleting a backup stay open, and so does the key endpoint, which serves the material monitor:restore needs: an archive already stored can still be fetched, and decrypted.
Credentials masked by the server
The client masks before sending, and the server masks a second time on arrival, because a client installed before a shape was known keeps sending it in clear: a version 0.5.0 SDK sends a Stripe key, a GitHub token or the password of a DSN written into an exception message as it is. This second net looks for credentials only, by their shape, with the same code as the clients (the ValueRedactor::CREDENTIALS group of the core's scrubbing page):
- a
-----BEGIN ... PRIVATE KEY-----block, a signed JWT, and the prefixed tokens of Stripe, AWS (the access key id, and the secret key when it follows that id or the nameaws_secret_access_key), GitHub, GitLab and Slack (the address of an incoming webhook included); - a Laravel application key (
base64:and forty-four characters) and a Quiet Guard project key (lm_and forty characters); - the password of a
user:password@hostaddress, whatever its scheme, the scheme, the user and the host staying readable.
Each is replaced by a mark that names its shape, [redacted:stripe] for instance. The net applies:
- to an exception's message, before it is sealed or written, the issue's own included;
- to an exception's context, after the masking by key name described below, and to a log's context: every key and every string value, at any depth;
- to a log's message;
- to the lines of the trace's code snippets. Each line also goes through the core's source-line rule, with the server's own key list: a line that names a secret and gives it a value, or that hands a literal to a call whose arguments are credentials (
new PDO($dsn, 'root', 'hunter2')), is replaced whole with[scrubbed]. The rest of a frame (path, class, function) is not read.
A mark is longer than what it replaces: a message or a snippet line that comes out past its validated length (8192 characters for a message, 500 for a line) is cut again. The net never looks for the personal shapes (email address, IBAN, social security number, card, phone): a client may have switched those off on purpose (redact => []), and that decision belongs to the data controller. Sealed or in clear, what is written is the masked value.
POST /api/v1/ingest, report an exception
Reports a single exception occurrence.
Request body
{
"exception": {
"class": "RuntimeException",
"message": "Undefined array key \"id\"",
"code": 0,
"file": "/app/Http/Controllers/OrderController.php",
"line": 88,
"trace": [
{
"file": "/app/Http/Controllers/OrderController.php",
"line": 88,
"function": null,
"class": null,
"type": null,
"code": { "start": 83, "lines": [" public function show(int $id)", " {", " $order = $this->orders[$id];", "", " return view('orders.show', [", " 'order' => $order,", " ]);", " }", "", " public function store(Request $request)", " {"] }
},
{ "file": "/vendor/laravel/framework/src/Illuminate/Routing/Controller.php", "line": 54, "function": "show", "class": "App\\Http\\Controllers\\OrderController", "type": "->" }
]
},
"context": {
"environment": "production",
"release": "9f2c1ab3d4e5",
"occurred_at": "2026-06-28T10:15:00+00:00"
}
}Field rules
| Field | Required | Type / limit |
|---|---|---|
exception.class | yes | string, max 255 |
exception.message | no | string, max 8192 |
exception.code | no | any |
exception.file | no | string, max 1024 |
exception.line | no | integer ≥ 0 |
exception.trace | no | array, cut to its first 500 frames |
exception.trace[].code.start | with code | integer ≥ 1, number of the snippet's first line |
exception.trace[].code.lines | with code | array of strings, max 40 lines of max 500 characters |
context.environment | no | string, max 100 |
context.release | no | string, max 255 (hex SHA enables commit correlation) |
context.occurred_at | no | string, max 64 (parseable date) |
skipped | no | integer from 0 to 1,000,000: the occurrences of the same exception the client held back since its last report (deduplication window, Laravel SDK 0.9.0). Added to the issue's count, never to the quota |
The context. The table names only the three context keys the server validates and files into columns of their own. The context is stored whole all the same, with every key the client sends (url, method, request, user...), and it does not reach the database as it came:
- it is first masked on arrival, with Quiet Guard's own list, which takes the secrets of the Laravel SDK's default list, and by the clients' rule: case-insensitive substring, a hyphen counting as an underscore, a name also looked for without its inner separators (
api_keymasksapikeyandapiKey), a JSON string opened, or masked whole when it does not decode and a quoted name followed by a:in it matches, the query parameters and token-shaped path segments of a URL, and the password of auser:password@, a DSN's (mysql://...) included (see the core's scrubbing page). A secret of that list which a client removed from its own is masked all the same, and so is what a client installed before version 0.3.1 could not mask under those names: it still sends the URL unmasked, a closed Livewire snapshot and hyphenated headers. The headers of that list that carry the visitor's IP address (x-forwarded-for,x-real-ip...) are not taken: they are personal data rather than secrets, and keeping or masking them is for the data controller to decide. The server stores them as they arrive; - it then goes through the credentials net, keys and values, at any depth, unless it is still past the bound below once masked by name: it is then replaced at once, without being read for credentials;
- it is finally bounded to 65,535 bytes of encoded JSON and to 30 levels of nesting, since MariaDB refuses a JSON document 32 levels deep in a
jsoncolumn: past either bound, or when it cannot be encoded at all, the stored context is{"_truncated": true}.
environment, release and occurred_at are read before that bound and keep their columns: an oversized context does not take them with it. Sealed or in clear, what is written is this masked and bounded context, and a team whose encrypted storage is on never seals the raw value.
Frames. The server keeps only file (cut at 1024 characters), line, function and class (255 characters each), type (8), is_site and, of code, only start and lines of each frame. A value of another type than the one expected is dropped rather than converted, except for line, which accepts any number, even written as a string ("88"), and keeps it as an integer, and for code.start, which accepts an integer written as a string ("40", validation refusing any other number) and keeps it as an integer too; any other key, call arguments first of all, never reaches the database.
A trace past 500 frames is cut to its first 500 before it is validated, frame zero (the throw site) first among them: the report is kept, the frames past it are not stored. A recursion is the usual reason for a trace that long.
Frame zero and the source snippet. From version 0.3, the clients put the throw site at the head of trace: a frame reduced to the exception's own file and line, since PHP's trace starts at the caller and never held the failing line. A trace_limit counts that frame (1 = the site alone). Each frame may carry an optional code object: start, the number of its first line, and lines, the source lines around the frame's line. The clients send the five lines on each side (eleven at most), each cut at 500 characters, on at most ten frames per report, never for a path containing /vendor/, and mask whole as [scrubbed] any line that names a key of their scrub list and gives it a value. The server goes over each of these lines again on arrival (see credentials masked by the server); it refuses a snippet past 40 lines or 500 characters a line, and seals snippets at rest with the rest of the trace when the team's encrypted storage is on.
Responses
202 Accepted: stored:
``json { "message": "accepted", "stored": true, "issue_id": "01kw6tkrd8wjbfv2pktr7ssw43" } ``
202 Accepted: over the exception quota, acknowledged but not stored:
``json { "message": "accepted", "stored": false } ``
422 Unprocessable Entity: validation failed.
issue_id is the issue's public identifier, a ULID. It is the same value the dashboard URL carries, so you can log it and paste it into the address bar. It is not a row number, and there is no event counter in the response: those would have told every project how many exceptions the whole platform had stored.
POST /api/v1/logs, report application logs (batch)
Stores a batch of log entries. Gated by the logs plan feature.
Request body
{
"logs": [
{
"level": "error",
"message": "Payment gateway timed out",
"context": { "order_id": 1234 },
"channel": "payments",
"environment": "production",
"release": "9f2c1ab",
"logged_at": "2026-06-28T10:15:00+00:00"
}
]
}Field rules
| Field | Required | Type / limit |
|---|---|---|
logs | yes | array, 1–500 entries |
logs.*.level | no | string, max 20 |
logs.*.message | yes | string, max 8192 |
logs.*.context | no | array |
logs.*.channel | no | string, max 100 |
logs.*.environment | no | string, max 100 |
logs.*.release | no | string, max 255 |
logs.*.logged_at | no | string, max 64 |
A log's context. The server does not mask it by key name: it is what your application chose to write in its own log, and your client's scrub list is what applies to it, before sending. It does mask the credentials in it by their shape, keys and values, as in the log's message. The server bounds it by the same rule as an exception's context: past 65,535 bytes of encoded JSON it is replaced with {"_truncated": true}, and the entry is stored with the rest of the batch. A batch reads at most 2 MB of context for credentials (LogIngestor::CONTEXT_SCAN_BUDGET): the contexts past that budget are replaced with the same marker, never stored unread.
Responses
202 Accepted:
``json { "message": "accepted", "stored": 137 } ``
stored is how many entries were actually saved (a partial batch is stored when the log line quota, separate from the exception quota, is nearly full).
403 Forbidden: plan does not include logs:
``json { "message": "Application logs are not available on your current plan." } ``
POST /api/v1/dependencies, report composer.lock
Replaces the project's dependency snapshot and triggers a background vulnerability scan.
Request body
{
"packages": [
{ "name": "laravel/framework", "version": "11.9.0", "is_dev": false },
{ "name": "phpunit/phpunit", "version": "11.2.0", "is_dev": true }
]
}Field rules
| Field | Required | Type / limit |
|---|---|---|
packages | yes | array, 1–5000 entries |
packages.*.name | yes | string, max 255 |
packages.*.version | yes | string, max 100 |
packages.*.is_dev | no | boolean |
Response
202 Accepted:
``json { "message": "accepted", "dependencies": 142 } ``
POST /api/v1/heartbeats/{slug}, ping a scheduled task
Signals that a scheduled task has just run. The body is optional: without one, the ping behaves as it always has. The Laravel SDK sends, for its automatic heartbeats:
{ "auto": true, "kind": "queue", "period": 1, "grace": 9, "queue": "redis/emails", "lag_ms": 1840 }auto must be true to be taken into account; any other value leaves the ping behaving as if it carried no body. kind is scheduler or queue. queue carries up to 100 characters. A heartbeat created by a ping carrying auto, kind, period (1 to 1440) and grace (0 to 1440) is born armed; an existing heartbeat is never re-armed. lag_ms (0 or more; a value above 86,400,000, one day, is stored as one day) is recorded only for a queue heartbeat, and a queue ping with no lag_ms clears the previous value. An unreadable field is ignored, never refused: the ping is always recorded.
{slug} is normalised to lowercase letters, digits and dashes. The first ping on an unknown slug registers the heartbeat, armed when the body above is enough to arm it, unarmed otherwise: recorded either way, it never alerts until an expected period is set. See Heartbeats.
Responses
202 Accepted:
``json { "message": "pong", "armed": true } ``
armed says whether an expected period has been set, so a client can tell a recorded ping from a watched one.
422 Unprocessable Entity: the slug normalises to an empty string, or the project already holds the maximum number of heartbeats.
POST /api/v1/browser/{key}, report a browser error
Called by the SDK's browser script (see Browser errors), not by your server. {key} is the project's public browser key, never a project API key: this endpoint takes no Authorization header. The request must carry an Origin header equal to one of the project's allowed origins. The body is JSON sent as text/plain (a CORS simple request, so no preflight), 64 KB at most:
{
"name": "TypeError",
"message": "Cannot read properties of undefined (reading 'id')",
"stack": "TypeError: ...\n at showOrder (https://app.example.com/build/assets/app-AbC123de.js:1:2345)",
"url": "https://app.example.com/orders/42",
"ua": "Mozilla/5.0 ...",
"release": "9fceb02",
"environment": "production",
"livewire": true,
"alpine": "open = !open"
}Every field is optional. message up to 8,192 characters, stack 16,384, ua 255, alpine 500. The server parses the stack (Chrome, Firefox and Safari formats), removes the query string and fragment of url and of every frame, drops the frames of browser extensions, and masks personal values and credentials. The issue is grouped by the server alone: a fingerprint field is ignored.
The Origin check only stops other websites from posting through a visitor's browser. It does not stop a forged request: the key is public and any client can send any Origin. What contains a forger is the rate limits (per address whatever the key, per key and address, and per project once the origin is checked), a daily cap per team at a quarter of the monthly exception quota spread over thirty days (5,000 on a plan with no quota), counted before the quota so a forger never spends more than that quarter, key rotation, the alert throttling of every channel, and the rule that a browser error never opens a GitHub issue automatically.
Responses
202 Acceptedwith an empty body: stored, or deliberately ignored (an opaqueScript error., an error raised only by an extension).202 Acceptedwith{"message": "accepted", "stored": false}: over the team's daily cap of browser reports, or over quota.402 Payment Required: ingestion suspended.403 Forbidden: theOriginheader is missing or not allowed.404 Not Found: unknown key, or browser errors turned off for the project.413 Payload Too Large: body over 64 KB.422 Unprocessable Entity: the body is not a report.429 Too Many Requests: more than 120 reports a minute for the key, or 10 a minute for the key from one address.
Backup vault endpoints
These power the encrypted backup vault. All require the backups plan feature. While a payment is outstanding, the upload routes (POST /backups and POST /backups/uploads) answer 402 Payment Required; fetching the key material, listing, downloading and deleting stay open, so monitor:restore keeps working on the archives you already have.
GET /api/v1/encryption-key
Serves the team's key material so the client can seal and (with the passphrase, locally) unwrap.
{
"public_key": "base64...",
"private_key_wrapped": "base64...",
"kdf_salt": "base64..."
}403if the plan does not include backups.404if the team has not configured encryption keys.
GET /api/v1/backups
{
"backups": [
{
"id": "9b1c...uuid",
"type": "database",
"name": "nightly",
"size_bytes": 10485760,
"checksum": "sha256...",
"created_at": "2026-06-28T03:00:00+00:00"
}
]
}POST /api/v1/backups
multipart/form-data upload of an already-encrypted blob.
| Field | Required | Notes |
|---|---|---|
type | yes | database or files |
name | no | string, max 255 |
file | yes | the encrypted archive |
201 Createdreturns the stored backup's metadata (same shape as a list entry).403if the plan does not include backups.413 Request Entity Too Largeif the upload would exceed the storage quota:
``json { "message": "Backup storage quota exceeded.", "used_bytes": 5012345678, "limit_bytes": 5000000000 } ``
POST /api/v1/backups/uploads
Opens a direct upload in parts (SDK v0.8.0 and later): the client then puts each part on a signed address, straight to the storage, and completes the upload. A server with no storage configured answers 503, and the client falls back to POST /api/v1/backups.
{ "type": "database", "name": "nightly", "size_bytes": 10485760, "checksum": "sha256 hex, 64 characters", "part_size": 8388608 }part_size is a wish: the server clamps it and answers the size it chose.
201 Createdreturnsid,part_size,parts(the number of parts),urls(signed addresses for the first parts, keyed by part number, each valid for 60 minutes and good for that one part only) andexpires_at(the upload's deadline, 24 hours).- The declared size is reserved in the storage quota until the upload completes, is aborted or passes its deadline.
402while a payment is outstanding,403if the plan does not include backups,413if the declared size would exceed the quota (same body asPOST /backups),422on validation,409(withRetry-After) if another upload of the team is being opened,503if no storage is configured.
POST /api/v1/backups/uploads/{uuid}/parts
Signs more addresses: { "parts": [9, 10, 11] } (1 to 100 part numbers, within the upload's own range). Answers 200 with { "urls": { "9": "https://…" } }. Also used to get a fresh address for a part whose address expired or was refused. 404 if the upload is not pending for this project, 409 while it is still being opened, 410 Gone past its deadline, 422 on validation.
POST /api/v1/backups/uploads/{uuid}/complete
Assembles the parts: { "parts": [{ "part": 1, "etag": "…" }] }, every part once, with the ETag the storage returned for it. The server re-reads the size actually stored.
201 Createdreturns the backup's metadata (same shape as a list entry).200 OKwith the same metadata when the upload was already completed: a client that lost the first answer can ask again.422if the stored size is not the declared one: the object and the reservation are deleted and the upload must be started again (expected_bytesandstored_bytesare in the body). Also422on validation.404,409and410as for the parts route.
DELETE /api/v1/backups/uploads/{uuid}
Aborts the upload and releases the space it reserved. Returns 204 No Content; still allowed past the deadline, since that is the cleanup. 404 if the upload is not pending for this project, 409 if it is being completed at the same moment.
GET /api/v1/backups/{uuid}
Streams the encrypted blob as a download (<name>.enc).
GET /api/v1/backups/{uuid}/download-url
Answers 200 with a read address for the blob, to download without going through the server:
{ "url": "https://…", "checksum": "sha256...", "size_bytes": 10485760, "expires_at": "2026-11-03T10:15:00+00:00" }The address is signed and valid for 15 minutes. For a backup still held on the server's own disk (not yet moved to the storage), url is the GET /api/v1/backups/{uuid} address and expires_at is null. 404 if the backup is unknown or not complete.
DELETE /api/v1/backups/{uuid}
Deletes the backup. Returns 204 No Content.
Error summary
| Status | Meaning |
|---|---|
202 Accepted | Ingested (check stored to see whether/how much was kept). |
201 Created | Backup uploaded. |
204 No Content | Backup deleted. |
401 Unauthorized | Missing or invalid API key. |
402 Payment Required | Ingestion and backup uploads suspended while a payment is outstanding. |
403 Forbidden | Feature not on the team's plan. |
404 Not Found | Encryption keys not configured (key endpoint). |
409 Conflict | A direct upload of the team is being opened, completed or aborted: retry after Retry-After. |
410 Gone | A direct upload is past its 24 hour deadline: start a new one. |
413 Payload Too Large | Backup storage quota exceeded. |
422 Unprocessable Entity | Validation failed. |
429 Too Many Requests | Rate limit exceeded. |
503 Service Unavailable | Direct uploads: no storage configured on this server (fall back to POST /backups). |
You are reading the Quiet Guard v1.0 documentation.