# Exactly what is sent

> The exact format of what a package sends to Pulse and how the API responds, including its limits and the secrets filter.

- Section: Packages
- Availability: The same protocol in every package.
- URL: https://pulse-app.si/en/docs/packages/payload

## Where it goes

Everything is sent by `POST` to `https://api.pulse-app.si`, or to `PULSE_ENDPOINT` with [Pulse Relay](https://pulse-app.si/en/docs/team/relay), which has the same routes. Each request has 10 seconds to complete.

| Route | Content |
| --- | --- |
| `/ingest/report` | A report, at the app’s pace. |
| `/ingest/logs` | A batch of logs. |
| `/ingest/report/sealed` | An encrypted report. |
| `/ingest/logs/sealed` | An encrypted batch of logs. |

**Headers**

```text
content-type: application/json
x-pulse-key: pk_live_…
user-agent: pulse-nest/0.0.7
```

`/ingest/heartbeat` is for the [heartbeat signal](https://pulse-app.si/en/docs/apps/signal) without a package. Packages don’t use it. For them, the heartbeat is the report itself, which is sent even when everything is turned off.

## A report

**POST /ingest/report**

```json
{
  "packageName": "pulse-nest",
  "packageVersion": "0.0.7",
  "framework": "nestjs",
  "frameworkVersion": "11.2.7",
  "appVersion": "2.3.0",
  "deployedAt": "2026-10-20T08:00:00.000Z",
  "checks": [
    {
      "name": "PostgreSQL",
      "kind": "database",
      "engine": "postgresql",
      "ok": true,
      "latencyMs": 4
    }
  ],
  "crons": [
    {
      "name": "renew-subscriptions",
      "schedule": "0 * * * *",
      "lastRunAt": "2026-10-20T12:00:00.000Z",
      "nextRunAt": "2026-10-20T13:00:00.000Z",
      "lastRunOk": false,
      "error": "ETIMEDOUT"
    }
  ]
}
```

With a reduced `PULSE_SEND`, `checks` and `crons` are sent empty, and `frameworkVersion`, `appVersion` and `deployedAt` disappear without `versions`. `deployedAt` is the process’s start time. No query and no data from your tables appears here, because checks only read a state.

## What the API accepts

| Field | Values |
| --- | --- |
| `packageName` | `pulse-nest`, `pulse-next`, `pulse-laravel`, `pulse-symfony`, `pulse-python`, `pulse-go` |
| `packageVersion` | From 1 to 30 characters |
| `framework` | `nestjs`, `nextjs`, `laravel`, `symfony`, `django`, `fastapi`, `flask`, `python`, `go`, `gin`, `echo`, `chi`, `fiber` |
| `frameworkVersion`, `appVersion` | Optional, 30 and 60 characters at most |
| `deployedAt` | Optional, ISO date |
| `checks` | 20 at most |
| `checks[].name`, `.engine` | 60 characters, and 40 for `engine`, optional |
| `checks[].kind` | `database`, `redis`, `cache`, `queue`, `http`, `custom` |
| `checks[].ok`, `.latencyMs`, `.error` | Boolean, integer from 0 to 3600000 (optional), 300 characters (optional) |
| `crons` | 50 at most |
| `crons[].name`, `.schedule` | 80 characters each |
| `crons[].lastRunAt`, `.nextRunAt`, `.lastRunOk`, `.error` | ISO dates, boolean, 300 characters |

> **One bad field rejects the whole report**
>
> The API answers `400` to an unknown or out-of-range field. The PHP, Python and Go packages cut names that are too long. Node packages send your own probe’s name as is, so keep it under 60 characters.

## What Pulse does with it

A failing check, `lastRunOk: false` or a `nextRunAt` more than 5 minutes past turns the app **Degraded**. A new `appVersion` creates a deployment entry.

## A batch of logs

**POST /ingest/logs**

```json
{
  "entries": [
    {
      "at": "2026-10-20T12:12:56.000Z",
      "level": "ERROR",
      "context": "payments",
      "message": "Payment declined token=***"
    }
  ]
}
```

From 1 to 200 lines per batch. `level` is `DEBUG`, `INFO`, `WARN`, `ERROR` or `FATAL`, `context` is optional and 80 characters at most, `message` 4000. At most 1000 lines wait in the package, which drops the oldest. On the server, an app can’t exceed 3000 lines per minute, and the account can’t exceed its quota: 1 GB on Pro, 5 to 10 GB on Team depending on the tier. Beyond that, lines are lost.

## An encrypted send

**POST /ingest/report/sealed**

```json
{
  "sealed": {
    "v": 1,
    "kid": "3f9a1c7e5b2d8046",
    "enc": "…",
    "ct": "…"
  },
  "clear": {
    "status": { "ok": false, "problems": 1 }
  }
}
```

`sealed` holds the report encrypted with HPKE (RFC 9180: DHKEM X25519, HKDF-SHA256, AES-256-GCM). `clear` carries what `PULSE_CLEAR` leaves visible, so Pulse can alert you. An encrypted batch of logs has no `clear`: only `sealed`, `count` and `at`. See [secure mode](https://pulse-app.si/en/docs/packages/variables#secure-mode), coming soon in the apps.

## The response

**202 Accepted**

```json
{
  "accepted": true,
  "intervalSeconds": 30,
  "keyId": null,
  "live": false,
  "logs": true
}
```

`intervalSeconds` sets the pace. The package keeps it between 10 and 3600 seconds, and starts at 30. `live` turns `true` when a device is viewing the app and the plan keeps logs. `logs` says whether the plan keeps them. For logs, the response adds `stored`, `throttled` and `overQuota`.

| Response | Meaning | What the package does |
| --- | --- | --- |
| `202`, `accepted: false` | App paused, locked or suspended | Keeps the same pace. |
| `401 invalid_ingest_key` | Key refused | Stops: `Pulse key refused`. |
| `409 secure_mode_required` | Secure mode on, sent in the clear | Stops. |
| `409 seal_key_mismatch` | `PULSE_PUBLIC_KEY` replaced | Warns. |
| `409 secure_mode_off` | Encrypted send, mode off | Warns. |
| `400 validation_failed` | Unknown or out-of-range field | Warns once, retries. |
| `429` | More than 1200 requests per minute from one address | Warns once, retries. |
| `5xx` | Outage on Pulse’s side | Warns once, retries. |

## The secrets filter

Before anything is sent, the package cleans errors and logs. This filter is a safeguard, not a guarantee, so don’t put secrets in your messages.

| What’s written | What’s sent |
| --- | --- |
| `postgres://user:password@db:5432/app` | `postgres://***@db:5432/app` |
| `password=`, `passwd=`, `pwd=`, `secret=`, `token=`, `key=` | `password=***` |
| `Bearer eyJ…`, `Basic dXNlcjo…` | `Bearer ***` |
| `pk_live_…`, `pk_test_…`, `pk_agent_…` | `pk_live_***` |
| Parameters of an address in an error | Removed |

- [All variables](https://pulse-app.si/en/docs/packages/variables): Every setting and its default.
- [Overview](https://pulse-app.si/en/docs/packages/overview): What a package does, and how to choose one.
- [Secure mode](https://pulse-app.si/en/docs/apps/secure-mode): What encryption changes for you.
