Skip to content

REST API

Manage Signals, Monitors, rules, incidents and callback endpoints over HTTPS. To send data, see Sending data to a Signal. Every operation is listed in the API reference.

  • Origin: https://api.signalsitter.com
  • Base path: /v1
  • Auth: Authorization: Bearer <your API credential>
  • Contract: the OpenAPI document, also served at GET /v1/openapi.json
  1. Create an API key in the project you want to work in. Choose Read for read-only work. Managing callback endpoints needs Full access.
  2. Copy the secret into your secret store. It’s shown once.
  3. Load it into SIGNALSITTER_API_KEY and set the origin:
Terminal window
export SIGNALSITTER_API_BASE=https://api.signalsitter.com

List your Signals:

Terminal window
curl --fail-with-body \
--header "Authorization: Bearer $SIGNALSITTER_API_KEY" \
"$SIGNALSITTER_API_BASE/v1/signals"

Create a Signal that expects a check-in every day, with ten minutes of late grace:

Terminal window
curl --fail-with-body \
--request POST \
--header "Authorization: Bearer $SIGNALSITTER_API_KEY" \
--header "Content-Type: application/json" \
--data '{"signalKey":"nightly-backup","settings":{"name":"Nightly backup","heartbeat":{"mode":"period","periodSeconds":86400,"lateGraceSeconds":600},"callback":{"kind":"organization_default"}}}' \
"$SIGNALSITTER_API_BASE/v1/signals"

The response carries publishUrl and signalId. Send data to publishUrl. To check values against rules, create a Monitor linked to the Signal key. A Signal can feed several Monitors. See Signals and Monitors.

An API credential belongs to the project it was created in. Every request made with it acts in that project. You don’t send a project ID.

  • To work in another project, create a credential in that project.
  • A Signalsitter-Project header naming a different project is refused with signalsitter.not_found.
  • Signed-in sessions name their project in Signalsitter-Project. Owners can select any project in the organization. Members can select only their assigned projects. Hidden and missing projects both return signalsitter.not_found.

Listing projects with a project credential returns only that credential’s project. An owner can issue an organization credential with the projects preset to create, list and rename projects across the organization. That key can’t issue credentials, so use a project credential to work inside a project. Project names are unique in an organization, ignoring case and extra spaces. Creating a duplicate returns signalsitter.conflict. See List projects, Create project and Rename project.

Owners manage membership on the Members screen or with these operations. Use a signed-in owner’s session, or an organization credential with organization:write. Project credentials can’t manage membership. The organization always comes from the verified credential or session.

Operation Purpose
List members Read members and pending or expired invitations
Invite member Send an email invitation with role and projectIds
Resend invitation Send a fresh seven-day invitation
Revoke invitation Cancel an invitation
Change member role Choose owner or member
Remove member End organization access
Assign projects Replace a member’s projectIds

Send an Idempotency-Key with retryable writes, and reuse it with the same body. A machine credential that changes a role or removes a member must also send confirm: true and a confirmUserId that matches the target user. The last owner can’t be removed or demoted. Members can’t change their own role or access.

Owners always see every project. A member with no assigned projects stays in the organization and sees No projects assigned. Members who joined before project access existed kept every project they had. A project’s creator becomes its member.

Alert recipients returns only people who can access the selected project. It needs callbacks:read. It doesn’t reveal project assignments or the organization’s full member list.

POST /v1/signals takes a Signal key and settings. Set the heartbeat mode when you want missing-data alerts. A Signal created without heartbeat starts with them disabled. Signal detail shows effective grace, status, recent missing-data incidents and the publish URL.

  • PATCH /v1/signals/{signalId} changes settings. Send the current expectedConfigurationVersion and only the settings you’re changing. A period change keeps a grace you set. An early grace left at its default follows the new period. To put late grace back to the 60-second default, send "lateGraceSeconds": 60. Alert emails show times in each reader’s own time zone, falling back to the organization’s time zone, so "emailTimeZone" is still accepted and stored but no longer changes emails.
  • POST /v1/signals/{signalId}/lifecycle takes an action (pause, resume, archive or restore) and the current expectedLifecycleGeneration.

POST /v1/monitors creates a Monitor with a nested signal object, which is required. Use {"kind":"link","signalKey":"nightly-backup"} to link an existing Signal. Use {"kind":"create",...} with explicit Signal settings to create both in one request. Creating a Monitor never sets a Signal’s heartbeat for you. Send data to publishUrl from the response. For a Monitor linked to a Signal it’s the Signal’s URL, the same as signal.publishUrl.

The Monitor owns its rules, evaluation schedule, rule incidents and rule callback. The Signal keeps its own missing-data callback. See Signals and Monitors for both creation orders and Create Monitor for the Monitor request.

A Monitor’s configuration includes:

  • rule definitions and an evaluation schedule;
  • onSignalTrip: skip by default, or catch_up to evaluate owed rule windows after the Signal recovers.

Two more settings live outside the configuration patch:

  • jurisdiction: unrestricted or eu, chosen at creation. It can’t change later.
  • callback: where rule alerts go. It has its own route. See callback bindings.

Then:

  • Check Signal status and recent missing-data incidents with GET /v1/signals/{signalId}.
  • Check a sample reading against a Monitor without recording anything with Test a reading.

To change a Monitor, read it first. The response’s ETag header carries its configuration version, such as "configuration-3". Send it back in If-Match:

Terminal window
curl --fail-with-body \
--request PATCH \
--header "Authorization: Bearer $SIGNALSITTER_API_KEY" \
--header "Content-Type: application/json" \
--header 'If-Match: "configuration-3"' \
--data '{"patch":{"onSignalTrip":"catch_up"}}' \
"$SIGNALSITTER_API_BASE/v1/monitors/nightly-backup"

Fields you leave out of patch keep their current values.

Change lifecycle takes one action and the same If-Match:

  • pause: this Monitor stops evaluating rules. Its Signal keeps accepting data and tracking missing data.
  • resume: this Monitor evaluates rules again.
  • archive: this Monitor stops evaluating. The readings stay with the Signal.
  • restore: counts against your plan’s active-monitor allowance. At the limit, free a slot or upgrade first.
  • enter_maintenance: needs a window with startsAt and endsAt, at most 30 days apart. Rule incidents are suppressed during the window.
  • exit_maintenance: ends the window early.

Delete monitor is permanent. It leaves the Signal and its readings in place.

Deleting a Signal also deletes every Monitor linked to it. Read GET /v1/signals/{signalId}/deletion-preview first, through every page. Then send POST /v1/signals/{signalId}/deletion-confirmations with the preview’s previewVersion and every linked Monitor ID in monitorIds. If the linked set changed since the preview, nothing is deleted.

Operation Returns
GET /v1/signals Feed identity, lifecycle and missing-data status
GET /v1/signals/{signalId} Settings, effective grace, publish URL and recent missing-data incidents
List monitors Linked rule evaluators and their status
Get monitor Monitor configuration and ETag
List observations Stored readings from the linked Signal, newest first
Read series Graph-ready minimum, maximum and mean per time bucket
List changes Configuration and lifecycle changes, with who made each one

Observations take optional since and until timestamps (RFC 3339) and a limit of up to 1,000 readings a page. The series needs both timestamps, up to 365 days apart. It plots each value at the time your reading says it happened.

If stored readings can’t be reached for a moment, history reads return signalsitter.history_unavailable with Retry-After. Nothing changed. Wait, then send the same request again.

If the same Monitor ID exists in two jurisdictions, a request returns signalsitter.conflict. Retry with ?jurisdiction=eu (or the one you mean).

POST /v1/signals/{signalId}/historical-observations takes 1 to 500 observations in time order, each { observedAt, payload }, and the Signal’s current expectedConfigurationVersion. The body can be up to 8 MiB.

An Idempotency-Key is optional. Send one, and reuse the same key and body if a response is lost. Without a key, a retry with the identical body resumes the same import.

Imported observations are stored under the Signal and count toward your organization’s pooled stored-event allowance. They don’t evaluate Monitor rules after the fact, and they don’t satisfy live heartbeat expectations. See Signals and Monitors.

Set a numeric rule directly with a configuration update. This one opens an incident when files drops below 1:

{
"patch": {
"measurements": {
"files": {
"metricType": "count",
"minimum": 1,
"mode": "heartbeat",
"ruleAction": { "mode": "active", "version": 1 }
}
}
}
}

Per-measurement rule fields are minimum, maximum, maximumAbsoluteDelta, maximumPercentageDelta, zeroExpectation and ratio. Fixed-window rules go in the configuration’s rules list. Rules explains each rule type.

To see what a change would have caught before it goes live, use a draft:

  1. Create draft. It freezes a window of recent history.
  2. Update draft with the current expectedDraftVersion. To remove a rule, set it to null or list it in disabledRules.
  3. Replay draft to compare the incidents your current and proposed rules produce over that window. Nothing changes.
  4. Apply draft with confirm: true, expectedDraftVersion and expectedConfigurationVersion. If either is stale, you get signalsitter.precondition_failed. Re-read both versions and apply with the new ones.

Cancel draft closes a draft without touching the Monitor.

List a Monitor’s open incidents:

Terminal window
curl --fail-with-body \
--header "Authorization: Bearer $SIGNALSITTER_API_KEY" \
"$SIGNALSITTER_API_BASE/v1/monitors/nightly-backup/incidents?state=open"

States are open, recovering, recovered and resolved. List all incidents covers every Monitor and Signal in the project.

Each takes an optional {"note": "..."} body. Read what happened with Get timeline. Check notifications with List deliveries. Send one again with Redeliver.

A Signal’s missing-data incidents have the same routes under /v1/signals/{signalId}/incidents, with the same bodies and responses. Start with List Signal incidents. A Signal incident carries signal with its signalId, signalKey and any name. Its violationFamily is missing_beat. Use signal.signalId to address it.

Acknowledging a missing-data incident keeps it open, and its alerts keep retrying. It still closes by itself when data comes back. Resolve Signal incident closes it now, with no alert sent. If the Signal is still quiet, its next missed check-in opens a new incident.

Send notifications with callback endpoints

Section titled “Send notifications with callback endpoints”

A callback endpoint is where alerts go, usually a webhook URL. Many Signals and Monitors can share one. Changing endpoints needs a manage credential.

Terminal window
curl --fail-with-body \
--request POST \
--header "Authorization: Bearer $SIGNALSITTER_API_KEY" \
--header "Content-Type: application/json" \
--data '{"alias":"operations","url":"https://hooks.example.com/signalsitter"}' \
"$SIGNALSITTER_API_BASE/v1/callbacks"

Alerts can also reach people through Slack, email or Telegram using WhooshBang. To reach one person with access to the selected project, set kind to whooshbang_subscriber and whooshbang.actorId to that person. To reach everyone with access to the project, including owners, set kind to whooshbang_group. Notification recipients lists the people you can pick. Each person first connects their own channel on the Your own alerts section. See Create endpoint for the fields.

  • The URL must be public HTTPS. A host that resolves to a private or reserved address is refused with signalsitter.callback_destination_rejected.
  • The response includes the signing secret once. Store it to verify deliveries.
  • Send test delivery sends one signed POST and reports what your receiver answered.
  • Set the project default with {"endpointId": "..."}, or null to clear it.
  • Update endpoint with "lifecycle": "disabled" stops deliveries. "active" starts them again.
  • Rotate signing secret keeps the old secret valid for overlapSeconds, 0 to 900 (default 300).
  • Remove endpoint is permanent.

A Monitor’s callback binding says which endpoint its rule alerts go to. Set it with Set monitor binding. A Signal takes the same binding shapes in settings.callback, for its missing-data alerts.

binding Alerts go to
{"kind":"organization_default"} The project’s default endpoint
{"kind":"named","alias":"operations"} That endpoint
{"kind":"inline","url":"https://..."} A URL used by this Monitor only
{"kind":"disabled"} Nowhere

An inline URL returns its own signing secret once. To replace a lost one, add "rotateSigningSecret": true. Get monitor binding shows where alerts will go today, or why they can’t: no_organization_default, alias_not_found, endpoint_disabled or endpoint_removed.

Terminal window
curl --fail-with-body \
--header "Authorization: Bearer $SIGNALSITTER_API_KEY" \
--output export.ndjson \
"$SIGNALSITTER_API_BASE/v1/organization/export"
  • The default is JSON Lines: one record per line, each with a type. It holds Signals (signal), each Signal’s missing-data incidents (signal_trip) and stored readings (signal_reading), Monitors, incidents, endpoint metadata and usage. A Monitor record’s signalId names the Signal it evaluates; that Signal’s readings appear once, under the Signal. It never holds secrets.
  • ?format=csv returns readings only, as a flat table: one row per measurement, with metadata and data as JSON text. A Signal’s rows fill signal_id and signal_key.
  • If the stream stops, pass the cursor from the last checkpoint record as ?cursor=. The last checkpoint has complete: true.
  • Usage needs a credential with usage:read. Without it, an omitted record says so.
  • JSON: send bodies as application/json, up to 16 KiB. Historical imports take up to 8 MiB. Gzip-compressed bodies (Content-Encoding: gzip) are accepted, and the limit applies after decompression. Other encodings get 415.
  • Pagination: lists take limit (1 to 200, default 50) and return nextCursor. Pass it back as cursor for the next page. No nextCursor means you’re on the last page.
  • ETags: reads return an ETag, such as "configuration-3" or "callback-endpoint-3". Changes to Monitors, endpoints, credentials and project names need it in If-Match. A stale tag gets 412. A missing one gets 428. Signal changes send their version in the body instead.
  • Tracing: every response has X-Request-ID. Send your own X-Correlation-ID and it comes back on the response.

Errors are application/problem+json:

{
"type": "https://docs.signalsitter.com/problems/not_found",
"title": "Resource not found",
"status": 404,
"detail": "Nothing with that ID was found. Check the ID and the project.",
"code": "signalsitter.not_found",
"correlationId": "example-monitor-1",
"retryable": false
}

Validation failures add fieldErrors. Retryable problems add retryAfterSeconds and a Retry-After header.

Status code What to do
400 signalsitter.validation_failed Fix the fields named in fieldErrors.
401 signalsitter.authentication_required Send a valid credential.
403 signalsitter.permission_denied Use a credential with the right preset.
404 signalsitter.not_found Check the ID and project. Other organizations’ resources also return this.
409 signalsitter.conflict Re-read the resource, or add ?jurisdiction=.
409 signalsitter.idempotency_conflict Use a new key for a different request.
412 signalsitter.precondition_failed Re-read and send the new ETag.
413 signalsitter.payload_too_large Keep the body under 16 KiB.
415 signalsitter.unsupported_media_type Send application/json, plain or gzip.
428 signalsitter.precondition_required Add If-Match.
429 signalsitter.rate_limited Wait for Retry-After. With a limit object and retryable: false, a plan limit applies: read detail, then free up capacity or upgrade. See When your plan is full.
503 signalsitter.temporarily_unavailable Wait for Retry-After, then retry.

Each code has a page that says what to do. See error codes.

Retry only when retryable is true, after Retry-After. For a write, retry with the same Idempotency-Key you sent the first time. Never make a new key for a retry.

The API allows credentialed browser requests only from the SignalSitter dashboard. Call it from your server, not from a browser page.