Piloterr
API referenceDestinations

credits.insufficient event

A scheduled run could not start: not enough credits. Sent to every destination of the workspace subscribed to credits.insufficient (or *): posted to a webhook, signed with Standard Webhooks (webhook-id, webhook-timestamp, webhook-signature); the message body of a queue, topic or bus. Routing is per workspace and per topic only: a destination receives every event of its topics from every project of the workspace, with no per-project filter (filter on the payload's project.id, or use a project's alert channels). Alert channels subscribed to it receive the same payload, as a message.

Request Body

The event's payload (version: 1)

application/json
  1. body

A scheduled run could not start: not enough credits

id*string

The event's id, the same in every channel and destination and in a resend: deduplicate on it (webhooks: also webhook-id). run.completed uses the run id

version*1

The payload's version

Value in1
type*"credits.insufficient"
Value in"credits.insufficient"
occurred_at*string

When it happened (ISO 8601, UTC)

tenant*

The workspace

project*
run*|

The run as GET /v1/runs/{id} returns it; null for project events

data*
url*|

The run, or project, in the dashboard

Response Body

Any 2xx within 10 s acknowledges it; anything else, or no answer, is retried, then reported (GET /v1/destinations/notices)

Example Requests
POST/credits.insufficient

A scheduled run could not start: not enough credits

Request Body
application/json
{
  "id": "evt_c18ac16ee9a4c7bdc8aeebdf3298c319",
  "version": 1,
  "type": "credits.insufficient",
  "occurred_at": "2026-11-10T07:00:06.000Z",
  "tenant": {
    "id": "cm1a2b3c4000008jx7h2kq9mz",
    "slug": "acme"
  },
  "project": {
    "id": "cm4hz9r2k0003l208f1qd7vtx",
    "name": "Amazon price tracking"
  },
  "run": null,
  "data": {
    "required": 1200,
    "available": 300
  },
  "url": "https://app.piloterr.com/app/acme/dataflow/projects/cm4hz9r2k0003l208f1qd7vtx"
}