Docs

Type a word or a question. Esc closes the search.

Sign in Start free

Create a scheduled job

Stores name, expected interval, grace period, signing, group, client and metadata settings.

POST https://app.upfour.io/v1/heartbeats
POST https://app.upfour.io/v1/heartbeats

A real request. What it creates runs in your up4 account and uses credit, like anything you add in the app.

Authorization
AuthorizationA pls_ key. It stays in this browser tab. Needs heartbeat.write.
Body
More fields6
enable_signing

1 more field is only available in JSON.

Headers

Sent directly from your browser to https://app.upfour.io/v1. Mutating calls get an automatic Idempotency-Key when the field is empty.

Request
Responsenot sent yet
Fill in a key and press Send request (⌘↵).
The answer appears here.
scope heartbeat.write stable Idempotency-Key supported returns 201

Body

application/json required 8 fields

namestringrequired

Display name

In the app: Name
All other fields7 fields
client_iduuid · nullable

Create inside a client (agency mode)

In the app: Client
enable_signingboolean
expected_interval_secondsinteger

How often the job should check in

In the app: Expect a check-in every
grace_period_secondsinteger

Slack on top before the silence alerts

In the app: with a grace period of
heartbeat_group_iduuid · nullable

Optional folder

In the app: Group
metadatamap of stringmax 100 keyseach value max length 4096

On update, omitted or null leaves the stored metadata unchanged, {} removes all keys and any other object replaces them.

In the app: Metadata
signing_secretstring · nullable

With enable_signing and no secret, up4 generates one.

Returns

A successful request returns 201 with application/json.

Response fields 1 top-level fields
FieldTypeDescription
data Heartbeat
Heartbeat · 26 fields
FieldTypeDescription
created_at string (date-time)
expected_interval_seconds integer
first_ping_at string (date-time) · nullable
grace_period_seconds integer
has_signing_secret boolean
id uuid
last_outcome_cause string
last_ping_at string (date-time) · nullable
name string
organization_id uuid
slug string
status string one ofupdownpausedpending
updated_at string (date-time)
billing_paused_at string (date-time)
billing_pauses BillingPause[]
Each item · 2 fields
FieldTypeDescription
paused_at string (date-time) · nullable
resumed_at string (date-time) · nullable
billing_resumed_at string (date-time)
client_id uuid
flapping HeartbeatFlap
HeartbeatFlap · 3 fields
FieldTypeDescription
changes_last_hour integer
next_notice_at string (date-time)
since string (date-time)
heartbeat_group_id uuid
ping_url string
signing_secret string Only in the answer to the create or update that set it; has_signing_secret says whether one is set.

Errors

Only the errors this operation can return. Every error uses the same envelope.

Status Code Meaning
400 bad_request The request is malformed or fails validation.
402 payment_required The account does not have the credit or plan required for this action.
403 permission_denied The credentials do not permit this action.

Every call can also return unauthorized (401), rate_limit_exceeded (429) or internal_error (500 / 502). See Responses and errors.