API V1 · REFERENCE

Pliing API

Pliing sends notifications from your scripts, servers and AI agents to the recipient's iPhone, iPad, Mac and Android, and lets the recipient answer with buttons, text, voice, pictures or location. Nobody can send to a recipient before the recipient has approved the sender.

Base URL: https://api.pliing.app/v1. JSON in and out, with a Bearer token in the Authorization header. Your first notification: create a project and an API key in the app or the console, and send the call under Send a notification, or try it from this page below.

This reference describes API 1.48.0 and was last updated on 28 November 2026. The changelog shows what is new in each version.

Try your own notification

An ID alone is not enough. Use an API key from the app or console. Your key is sent directly to the Pliing API and is not stored by the playground.

Pliing

Important and Critical are Time Sensitive on Apple devices and break through Focus when you allow it. No level overrides silent mode. Push follows your device permissions.

The playground sends a real notification. The recipient must approve the project. App-created keys are locked to your own ID.

Show JSON

API response


Recipient and access are separate

PliingID is the recipient's address, for example pliing-7m3k9-xr2n8-q4v6. It is not a secret and does not grant permission to send. The API key authenticates the integration and grants access to one project only. The recipient must approve the project before sending.

The ID format is pliing-xxxxx-xxxxx-xxxx, and the recipient copies it from PliingID in the app. Do not use an Apple ID, email address or APNs device token as to.

Your own scripts

Create a project and API key in the Pliing app. App-created keys are locked to your own PliingID and cannot send to others. Your ID goes in to; the key is secret and goes in Authorization. The free plan includes one project and 1 000 notifications a month; Pliing Personal gives ten projects and 10 000. Past the allowance the API answers 402 monthly_notification_limit until the first of next month. You get a message from "Pliing" in the app when 80% of the allowance is used, and when it is used up.

Connect another service

For services that notify their own users. Register your business at console.pliing.app: verify your email, choose Start/Growth/Scale, pay through Stripe and set up two-factor authentication before creating a project and API key. Contact us for Enterprise. An organization's keys require an active subscription; personal projects in the app have a free plan, see Your own scripts.

  1. The user selects Pliing in your service's notification settings and pastes their PliingID.
  2. Your backend creates a consent request using its own API key, or you add the ID under Recipients in the console. Never ask for the user's API key.
  3. The user gets a message from “Pliing” with a “View request” button, opens Senders and approves. Display “Waiting for approval” in your service meanwhile.
  4. Your service checks GET /v1/consent-requests/{id} (or ?to=, or the list GET /v1/connections) using its API key. Only display “Connected” when the status is approved and notifications is true.
  5. Send to the user's ID. If you later receive consent_required, stop sending and indicate that the connection needs approval.

A service can only read the status of its own requests. The status revoked does not grant permission to send; a new POST does not approve the sender again. Codes require separate permission.

curl https://api.pliing.app/v1/consent-requests \
  -H "Authorization: Bearer $PLIING_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"to":"pliing-7m3k9-xr2n8-q4v6","notifications":true,"codes":false}'

HTTP 201
{"id":42,"status":"pending"}

The recipient immediately gets a message from the sender “Pliing” with a “View request” button, and approves under Senders in the app. Before approval and after revocation, new deliveries are rejected with HTTP 403 and {"message":"consent_required"}. A new request does not override a refusal.

to may also be a list of up to 100 PliingIDs; the server then answers HTTP 200 with results, one object per ID (an unknown ID gets "error":"recipient_not_found" without failing the call). The optional label (up to 80 characters) is your own name for the connection; the recipient never sees it. Organizations can also add recipients in the console, without code.

profile: true additionally asks to see the recipient's name and profile picture. It is a separate switch in the app, off by default, and can only be on together with notifications or codes. While it is on, GET /v1/connections and the status endpoints carry name and avatar_url (the picture comes from GET /v1/connections/{id}/avatar with the key), and replies in GET /v1/replies carry from_name. When the person turns it off, both disappear at once.

Connect link: in the console you can create a link (https://pliing.app/en/connect/…) with a short code that can be typed. Share it once (intranet, email, poster) and each person connects themselves in the app with one tap after seeing who is asking and which permissions. You never collect PliingIDs, and newcomers can land straight in a group.

curl https://api.pliing.app/v1/consent-requests/42 \
  -H "Authorization: Bearer $PLIING_TOKEN"

HTTP 200
{"id":42,"status":"approved","notifications":true,"codes":false,
 "requested_notifications":true,"requested_codes":false}

Poll the status every few seconds while the user approves. Respect HTTP 429. The request can be answered for 72 hours; after that its status is expired and you must send a new request. A service without Pliing support cannot use the ID alone; it must integrate this API.

You do not have to keep the id: GET /v1/consent-requests?to=pliing-7m3k9-xr2n8-q4v6 gives the same answer for one recipient, and GET /v1/connections lists all of the project's connections (newest first, 30 per page) with to, status, the permissions, label and expires_at. Filters: status (pending, approved, revoked, expired), q (part of the ID or label), to, limit (1–200), page.

curl "https://api.pliing.app/v1/connections?status=approved" \
  -H "Authorization: Bearer $PLIING_TOKEN"

HTTP 200
{"data":[{"id":42,"to":"pliing-7m3k9-xr2n8-q4v6","status":"approved","notifications":true,"codes":false,
  "location":false,"requested_notifications":true,"requested_codes":false,"requested_location":false,
  "label":"Kari, warehouse","expires_at":null,"created_at":"2026-11-07T10:12:04+00:00","approved_at":"2026-11-07T10:15:31+00:00"}],
 "current_page":1,"last_page":1,"per_page":30,"total":1}

The permission to call the recipient, calls, is asked for the same way; see Calls. The connections then also show calls and requested_calls. beatsguard asks to let the recipient follow your services; see Heartbeats.

Sending

Send a notification

Use an API key with notifications:send. Keep your key on your server, out of client code and version control.

to is the recipient's PliingID, or group:<key> for a group you created in the console: every approved member gets their own notification, the send counts one notification per member against the quota, and one Idempotency-Key covers the whole fan-out (the answer carries recipients and group). The same goes for /v1/codes.

curl https://api.pliing.app/v1/notifications \
  -H "Authorization: Bearer $PLIING_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: deploy-prod-1842" \
  -d '{
    "to": "pliing-7m3k9-xr2n8-q4v6",
    "title": "Deploy complete",
    "body": "main → production. Everything is running.",
    "level": "info"
  }'

title: at most 160 characters. body: at most 4000 characters. level: info, important or critical; the default is info. The level also decides how the push may interrupt on iPhone, iPad and Mac:

LevelDelivery on Apple devices
infoAn ordinary notification. During a Focus that does not allow Pliing it arrives silently in Notification Center, and when the recipient has put Pliing in Scheduled Summary (iPhone and iPad) it waits for the next summary.
importantTime Sensitive: it breaks through Focus and Scheduled Summary as long as the recipient allows Time Sensitive notifications from Pliing.
criticalTime Sensitive like important, and placed first in a notification summary. It is not Apple's Critical Alerts: it does not override silent mode or a Focus that does not allow Time Sensitive notifications.

One-time codes are always Time Sensitive. Questions from pliing_ask and secret answers are sent as important, and card decks are important unless you choose another level. On Android every level is delivered the same way: as a high-priority message in a notification channel with high importance, and Do Not Disturb applies as the recipient has set it.

Line breaks in the message text are kept in the app and in the push banner. Wrap text in <code>…</code> to show it as code in the app; the push banner shows the content without the tags. Code on its own line is shown as a card that copies with one tap. <img src="https://…" alt="…"> shows the image in the app: the address must be an HTTPS address, the recipient's device fetches the image directly when the notification is opened, and the push banner shows only the alt text. Pictures above 200 KB are not loaded, and the app caches the pictures it has fetched. Pictures Pliing stores for you (see Images) are fetched with the recipient's account and may be up to 2000 KB. &amp;, &lt;, &gt;, &quot;, &apos; and numeric references such as &#39; show as the character they stand for, in the app and in the push banner, so you can escape & and < in the text as you would in HTML. An escaped tag, such as &lt;code&gt;, shows as text. Other text after & shows as written.

Response and idempotency

HTTP 202
{"id":1842,"status":"accepted","duplicate":false}

Idempotency-Key is required on the calls that send something to a recipient: POST /v1/notifications, /v1/codes, /v1/questions, /v1/decks and /v1/secret-requests. The key is 8–128 characters, letters, digits or _.:-, and is scoped to the project. Without a valid key the API answers 422 valid_idempotency_key_required. Consent requests, picture uploads, activity status, /v1/codes/{id}/used and the webhook setup take no key.

Sound

The optional field sound selects the notification sound on the recipient's devices. Omitted or default uses the system sound. An unknown value returns HTTP 422.

ValueSoundListen
defaultSystem sound (default)
plingShort, bright tone
chimeTwo rising tones
dropSoft, low drop
pulseTwo quick beats
alertThree distinct descending tones
curl https://api.pliing.app/v1/notifications \
  -H "Authorization: Bearer $PLIING_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: deploy-prod-1843" \
  -d '{"to": "pliing-7m3k9-xr2n8-q4v6", "title": "Deploy failed", "body": "main → production", "level": "important", "sound": "alert"}'

Sound belongs to the notification and is included in idempotency checks: the same key with a different sound returns HTTP 409. One-time codes always use the system sound. The user's Do Not Disturb, Focus and iOS sound settings still apply.

Icon

Need a ready-to-use icon link? Open your project in the console and choose “Notification icons”. Upload PNG, JPEG or WebP (up to 2 MB and 8 million pixels). Pliing fits the entire image into 128 × 128, preserves transparency and removes metadata. Copy the link and use it as icon_url. Icons are saved with the project. Owners and admins can upload with an active subscription; all members can copy links. Links are public.

The optional field icon_url gives the notification an icon in the recipient's inbox, for example your service's logo. The address must be a public HTTPS URL pointing straight at an image of exactly 128 × 128 pixels, in PNG, JPEG or WebP, at most 64 KB. Redirects are not followed.

Pliing fetches the image once when the notification is sent (within five seconds), validates it and stores a re-encoded copy; anything else in the file is dropped. The recipient's device loads the icon from Pliing and not from your server, so you cannot see when or where a notification is opened. The same URL is fetched again only after 24 hours, so use a new URL when you change the icon. The icon appears in the inbox and the reading view. It is not sent in the push notification and is not used for one-time codes.

curl https://api.pliing.app/v1/notifications \
  -H "Authorization: Bearer $PLIING_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: deploy-prod-1844" \
  -d '{"to": "pliing-7m3k9-xr2n8-q4v6", "title": "Deploy complete", "body": "main → production", "icon_url": "https://example.com/pliing-icon.png"}'

If the icon cannot be fetched or accepted, the whole request is rejected with HTTP 422, and message is one of these codes: icon_unavailable (could not be fetched, is too large or is not a public HTTPS URL), icon_invalid_format (not PNG, JPEG or WebP) or icon_invalid_size (not 128 × 128 pixels). The icon is part of the idempotency check: the same key with a different icon returns HTTP 409.

Formatting and tables

Messages and free-text replies support simple Markdown: **bold**, *italic*, `code` and tables with columns separated by |. A table needs a header row and a separator row with at least three hyphens per column. At most 12 columns; every data row must have the same number of cells. Wide tables scroll sideways in the app.

**Next departures**

| Line | Departure | Status |
| --- | --- | --- |
| **L1** | 21:42 | On time |
| L2 | 21:55 | *2 min late* |

Use \| for a pipe within a cell. Code between backticks stays literal. Push, inbox previews, widgets and sharing show readable text without formatting markers; table cells are separated with ·. The API stores and returns the content unchanged.

Links. Write [text](https://…) for a link on its text, or <https://…> for a link on the address itself. The app shows only the text, in the link colour, and a tap opens the address. A web address on its own shows short: without https:// and www., and cut with … after about 32 characters. A tap opens the full address, and punctuation, a parenthesis or a closing quotation mark right after the address is not part of it. Touch and hold the line in the iPhone and iPad app, or right-click the link on the Mac, to copy the link.

**Bird flu in Akershus:** 13,000 poultry must be culled. [NRK](https://www.nrk.no/stor-oslo/pavist-fugleinfluensa-i-akershus_-ma-avlive-13.000-dyr-1.18081821)
Report: https://ci.example.com/runs/19374512/artifacts/report-2026-11-14.html

The app shows this as “Bird flu in Akershus: 13,000 poultry must be culled. NRK” with NRK as the link, and “Report: ci.example.com/runs/19374512/ar…”. Push, inbox previews and widgets show “Bird flu in Akershus: 13,000 poultry must be culled. NRK”, and the address on its own as written; an address in angle brackets shows without them. If you copy or share the whole message, the link’s address follows in parentheses after its text. A link whose text shows an address on another site (host) than the one it opens is shown as written in the app.

Images

Pliing can store your pictures, so they never have to sit openly on your own server. Upload with the project's API key: POST /v1/images with {"image": "<base64>", "name": "optional"}. Only WebP is accepted, at most 2000 KB and 8 million pixels; nothing is re-encoded. Other formats answer 422 image_invalid_format, oversized files 422 image_too_large, and 402 image_storage_limit when your storage is full.

curl https://api.pliing.app/v1/images \
  -H "Authorization: Bearer $PLIING_TOKEN" \
  -H "Content-Type: application/json" \
  -d "{\"image\": \"$(base64 < chart.webp | tr -d '\n')\", \"name\": \"chart.webp\"}"

HTTP 201
{"id":"ue2jjImSvlSP2dkL4aBAgQ","url":"https://api.pliing.app/v1/images/ue2jjImSvlSP2dkL4aBAgQ","mime":"image/webp",
 "bytes":48211,"width":1200,"height":630,"expires_at":"2026-12-27T10:44:44+00:00"}

tr -d '\n' removes the line breaks base64 adds on Linux, so the command works both there and on macOS. The answer carries id, url, mime, bytes, width, height and expires_at. Use the address in <img src="…"> in body when you send. The picture can be fetched only by the recipients of the messages that carry it, with their own Pliing account, and with a key for the project that uploaded it (GET /v1/images/{id}); without a token the address answers 401, and from another account or another project 404. A picture that is not the project's own, or that has expired, refuses the send with 422 image_not_found.

Pictures are kept for 30 days after the upload, for every account, and are not part of Pliing's backups. An older picture answers 410 image_expired until it is deleted. Every account has a storage cap (250 MB on the free plan, 1 GB on Pliing Personal, more per organization tier), counted over the pictures that have not expired. DELETE /v1/images/{id} with the same key removes a picture early.

Supply metadata in POST /v1/notifications: {"link_preview":{"url":"https://example.com/article","title":"Article","description":"A short summary","image_url":"https://example.com/image.png"}}. URL and title are required; description and image URL are optional. URLs must use HTTPS. The card opens the supplied destination. The app loads a supplied image; Pliing does not fetch metadata from the destination. A Pliing-hosted image must belong to the sending project. Ordinary links in text are clickable even without a card.

Scheduled sending

Add send_at to POST /v1/notifications to send later: an ISO 8601 time with an offset (Z or +01:00), from one minute to 30 days ahead. Every other field works as usual, including group:, threads, buttons and the icon.

curl https://api.pliing.app/v1/notifications \
  -H "Authorization: Bearer $PLIING_TOKEN" -H "Content-Type: application/json" \
  -H "Idempotency-Key: reminder-2026-11-12" \
  -d '{"to": "pliing-7m3k9-xr2n8-q4v6", "title": "Meeting at 08:15", "body": "Room 4.", "send_at": "2026-11-12T08:00:00+01:00"}'

The response is HTTP 202 with a schedule instead of a notification:

{"schedule_id": 17, "status": "pending", "send_at": "2026-11-12T07:00:00+00:00", "sent_at": null, "notification_id": null, "error": null, "duplicate": false}

The recipient and consent are checked when the message is scheduled and again when it is sent, together with the subscription and quota. If consent is withdrawn in between, the schedule ends as failed with the reason in error (for example consent_required), and nothing is sent. The message goes out with the same Idempotency-Key: the same key and request return the stored schedule, and once sent the key returns the notification. Waiting messages are stored encrypted.

GET /v1/scheduled lists what is waiting, GET /v1/scheduled/{id} shows one schedule (pending, sent with notification_id, failed or canceled), and DELETE /v1/scheduled/{id} cancels a schedule that has not gone out (HTTP 409 schedule_not_pending otherwise). A project can have 500 messages waiting; the next one is refused with HTTP 422 schedule_limit. Sending happens within a minute of the time. One-time codes cannot be scheduled.

Send a one-time code

Use the dedicated endpoint POST /v1/codes. The recipient must approve codes separately under Senders; regular notification permission is not enough. Request codes: true when your integration requests consent.

Does the sender already have notification permission? Send another consent request with codes enabled. Existing notification permission remains active, but the recipient must open the sender under Senders and enable One-time codes. Wait for both approved status and code permission before sending; a previous rejection is not overridden.

curl https://api.pliing.app/v1/codes \
  -H "Authorization: Bearer $PLIING_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: login-code-001" \
  -d '{"to":"pliing-7m3k9-xr2n8-q4v6","title":"Sign-in code","code":"123456","ttl_seconds":300}'

HTTP 202
{"id":1846,"status":"accepted","duplicate":false}

id is the ID of the code notification. Keep it: you need it to report the code as used. code: 3–64 characters. ttl_seconds: 30–600 seconds, default 300. The same Idempotency-Key and content return the same code notification with HTTP 200 and "duplicate":true.

code_visibility is optional and decides where the code may be shown:

Invalid values return HTTP 422; a changed choice with the same Idempotency-Key returns HTTP 409.

The code is stored encrypted and never appears in the ordinary inbox response or widgets. Both choices have expiry and a copy button in the app. Used and expired codes cannot be retrieved, and pending pushes are stopped. An already delivered push may remain in Notification Center after use or expiry. The code notification leaves the app inbox after 24 hours.

{"code_visibility":"protected"}
{"code_visibility":"push"}

Pliing delivers the code. The issuing service must validate it and ensure it can only be used once. Once the code is accepted, call POST /v1/codes/{id}/used with the same key: the app then shows the code as used, closes the code view and marks the notification read.

Report a code as used

Use the id returned by POST /v1/codes and the same project API key. This call needs no new Idempotency-Key. Repeated calls return the same used timestamp; unavailable code content returns HTTP 410 code_expired, and a code from another project returns HTTP 404.

curl -X POST https://api.pliing.app/v1/codes/1846/used \
  -H "Authorization: Bearer $PLIING_TOKEN"

HTTP 200
{"id":1846,"status":"used","used_at":"2026-10-21 10:45:00"}

Replies and conversations

Recipient responses

Choose the response flow for your integration. Free-text replies and choice responses are retrieved separately; sending a message or receiving an empty result never means the recipient approved anything.

NeedSendReceive responses
Free text in a threadPOST /v1/notifications + thread_id + allow_replies: trueGET /v1/replies / pliing_get_replies
Answers to several things at oncePOST /v1/decks / pliing_ask_cardsGET /v1/decks/{id} / pliing_get_response
One of 2–3 choices, or a written answerPOST /v1/questions / pliing_askGET /v1/questions/{id} / pliing_get_response
A button press to your backendactions + type: triggerPOST + event: pliing.action

Every REST endpoint has an MCP tool that does the same at /mcp with a dedicated MCP key. Regular action buttons (actions) call your own address; they do not create a question with a request_id.

Actions

The optional field actions adds up to three buttons to the notification. Each button has title (1–30 characters, no line breaks), url (HTTPS, at most 2048 characters) and type.

curl https://api.pliing.app/v1/notifications \
  -H "Authorization: Bearer $PLIING_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: deploy-prod-1845" \
  -d '{"to": "pliing-7m3k9-xr2n8-q4v6", "title": "Deploy venter", "body": "Godkjenn utrullingen til production.", "actions": [
    {"title": "Godkjenn", "url": "https://ci.example.com/hooks/approve/9f3a"},
    {"title": "Avvis", "url": "https://ci.example.com/hooks/deny/9f3a", "type": "trigger"},
    {"title": "Se logg", "url": "https://ci.example.com/runs/1845", "type": "open"}
  ]}'

The request to a trigger URL is JSON with event (pliing.action), notification_id, idempotency_key (the key you sent the notification with), action (0, 1 or 2), action_title and pressed_at. The header Idempotency-Key: pliing-action-{notification_id}-{action} is the same on retries. Reply with a 2xx response within 5 seconds. Redirects are not followed and the response is not read.

A button that has succeeded cannot be pressed again for that notification. If the URL answers with anything other than 2xx, or too late, the recipient gets an error and can try again. Use single-use or expiring URLs for actions that approve something, because buttons stay in the inbox for 90 days. Buttons only work while the recipient has approved the sender, and do not apply to one-time codes.

Invalid actions return HTTP 422, with the field in errors, for example actions.0.url. Actions are part of the idempotency check.

The buttons appear in the app and when the recipient expands the push notification. A tap from the notification requires unlocking and opens Pliing before the action runs, and no location is attached from there. The server rechecks consent and access on every tap. If the recipient has turned previews off, the notification shows only “Open message”. One-time codes have no action buttons.

Questions with choices

Ask one question with two or three choices, a written answer, or both: POST /v1/questions with the project key and an Idempotency-Key. The recipient gets the question as a notification with the choices as buttons, and answers once. It is the same question pliing_ask sends over MCP, for integrations that speak plain HTTPS.

curl https://api.pliing.app/v1/questions \
  -H "Authorization: Bearer $PLIING_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: deploy-1845-ask" \
  -d '{
    "to": "pliing-7m3k9-xr2n8-q4v6",
    "title": "Deploy to production?",
    "body": "Build 1845 is ready. The tests are green.",
    "choices": [
      {"value": "deploy", "label": "Deploy"},
      {"value": "wait", "label": "Wait"}
    ]
  }'

HTTP 202
{"request_id":"9f1c6a52-7f0e-4a5b-b0a4-1e2d3c4b5a69","status":"pending","answer":null,"location":null,"context":null,
 "expires_at":"2026-11-27T10:59:44+00:00","answered_at":null,"poll_after_seconds":5,"notification_id":1961,"duplicate":false}
FieldContent
to, title, bodyAs for a notification: the recipient's PliingID, a title (at most 160 characters) and a text (at most 4000 characters, with the same formatting and pictures). A question goes to one recipient; group: is not supported.
choicesTwo or three choices, or none to three when allow_text is true. Each choice has a value (1–64 characters, letters, digits or _.:-; your own value) and a label (at most 30 characters; the text on the button). The values must differ, and so must the labels.
allow_texttrue gives the recipient a text field. The answer is then either one choice or text (at most 2000 characters).
expires_in_secondsThe time to answer: 60–86,400 seconds, default 900. After that the buttons stop working, and the status is expired.
contextAn optional reference of your own, at most 128 characters. It comes back with the answer. Never put secrets here.
thread_id, thread_title, thread_icon_url, allow_replies, link_previewThe thread fields and the link card work as for a notification.

The question is sent as important and counts as one notification against the allowance. Read the answer with GET /v1/questions/{request_id}:

curl https://api.pliing.app/v1/questions/9f1c6a52-7f0e-4a5b-b0a4-1e2d3c4b5a69 \
  -H "Authorization: Bearer $PLIING_TOKEN"

HTTP 200
{"request_id":"9f1c6a52-7f0e-4a5b-b0a4-1e2d3c4b5a69","status":"answered","answer":{"value":"deploy","label":"Deploy"},
 "location":null,"context":null,"expires_at":"2026-11-27T10:59:44+00:00","answered_at":"2026-11-27T10:44:44+00:00","poll_after_seconds":null}

If the answer must be secret, use masked, one-time answers; secret_input is not accepted here. Several questions at once go out as a card deck.

Replace a question

Add replaces_request_id to POST /v1/questions with the pending question’s UUID. The new question must use the same project, recipient and thread_id. Both may also be outside a thread. Pliing creates the new question and closes the old one in a single transaction. The new response includes replaces_request_id. Reuse the same Idempotency-Key and payload to retry.

If the old question was already answered or closed, the call returns HTTP 409 with question_already_answered or question_closed. An expired question gives 410 question_expired, the wrong thread gives 422 replacement_thread_mismatch, and a question outside the caller’s scope gives 404 question_not_found. A refused replacement leaves both the existing question and the send allowance as they were. The same field works on POST /v1/secret-requests to replace another pending secret request.

Find questions and recover answers

GET /v1/questions lists the project’s questions newest first. Filter by thread_id, recipient PliingID in to, or status (pending, answered, closed, expired). limit is 1–100 and defaults to 50. Use next_cursor as cursor for the next page. Each item has the question’s status and answer plus notification_id, thread_id, to and secret_input. Masked text stays available through the separate consume endpoint.

Keep next_after from the first page of a snapshot. To resume, send it as after with the same recipient and thread filters and omit cursor and status. The response returns the current state of each changed question in change order. Several changes to the same question can appear as one state. Save next_after after processing each page and continue while has_more is true. after=0 starts at the beginning of retained changes. Start a new snapshot if the scope or filters change. Consent applies on every read. Expiry applies at the deadline and appears in the change list after the server’s next expiry batch.

Close a question

When the decision was made elsewhere, send POST /v1/questions/{request_id}/close with the project key. The optional reason appears in the app. Write it in the recipient’s language on a single line of up to 160 characters.

curl "https://api.pliing.app/v1/questions/$REQUEST_ID/close" \
  -H "Authorization: Bearer $PLIING_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"reason":"Resolved on the Mac"}'

HTTP 200 returns request_id, status, closed_at and close_reason. A pending question becomes closed. A retry returns the original closure. If an answer or expiry came first, the result is answered or expired. Read the winning answer from the usual GET endpoint. A closed question has answer: null and poll_after_seconds: null, and later answer attempts receive 409 question_closed. Other questions and free-text replies in the thread are independent.

Threads and replies

Give notifications that belong together the same thread_id, and the app shows them as one thread instead of separate messages, and Notification Centre groups the banners. A thread belongs to one recipient: the same thread_id to two recipients makes two threads.

thread_title, thread_icon_url, allow_replies and reply_to require thread_id. The fields are part of the idempotency check. Send a new image URL with a later message to change the icon; omit the field to keep it, or send null through REST to remove it and show the project icon. The picture belongs to the project and recipient, so the same thread ID can have different icons for different people. A group send uses the same icon for the whole group.

Pliing caches each image URL for up to 24 hours. Use a new, versioned URL when the picture changes. The recipient's device loads the copy from Pliing rather than the sender's server; anyone who knows the copy's URL can retrieve it, so do not use confidential pictures. Scheduled messages fetch the thread icon when they are sent.

curl https://api.pliing.app/v1/notifications \
  -H "Authorization: Bearer $PLIING_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: deploy-1845-ready" \
  -d '{"to": "pliing-7m3k9-xr2n8-q4v6", "title": "Build 1845 is ready", "body": "The tests are green. When should I deploy?",
    "thread_id": "deploy-1845", "thread_title": "Deploy 1845", "thread_icon_url": "https://example.com/avatar-v1.png", "allow_replies": true}'

Read replies

The recipient writes the reply in the app, at most 2000 characters. Fetch the replies with GET /v1/replies, oldest first. Send next_after from the previous call as after, and you get only new replies. Optional filters: thread_id, to (PliingID) and limit (1–100, default 50).

curl "https://api.pliing.app/v1/replies?after=0" -H "Authorization: Bearer $PLIING_TOKEN"

HTTP 200
{"data":[{"id":311,"thread_id":"deploy-1845","from":"pliing-7m3k9-xr2n8-q4v6","body":"After lunch, thanks.",
  "location":null,"created_at":"2026-10-21T10:42:07+00:00","audio":null,"transcript":null,"image":null,"images":[]}],
 "next_after":311}

Replies can be written and read only while the recipient has approved the sender. If consent is withdrawn, the reply field disappears and earlier replies are withheld. A reply is input to the thread, not an approval of anything else. To have replies delivered instead of fetching them, use webhooks.

The fields of a reply

FieldContent
idThe reply's ID. Used as after and in the addresses of audio and pictures.
thread_idYour own thread ID.
fromThe recipient's PliingID.
from_nameThe recipient's name. The field is present only while the recipient shares their profile with the project (see Consent).
bodyThe text, up to 2000 characters. May be empty when the reply carries only pictures.
created_atWhen the reply was sent, in ISO 8601.
locationThe position the recipient attached, or null. See Location in replies.
audio, transcriptThe voice recording and details of the transcription, or null. See Voice replies.
images, imageThe pictures on the reply, and the first of them. See Pictures in replies.

Wait for new replies

Add wait to let the call wait for a reply instead of asking repeatedly: an integer from 0 to 30 seconds, default 0. If replies after after that match the filters already exist, they are returned at once. Otherwise the call waits until a matching reply arrives, or until the time is up. The response is then HTTP 200 with empty data and an unchanged next_after.

curl "https://api.pliing.app/v1/replies?thread_id=deploy-1845&after=311&wait=25" \
  -H "Authorization: Bearer $PLIING_TOKEN"

Pictures in replies

The recipient can attach up to five pictures to a reply. images is the list in the order they were attached, and image is the first picture. Without pictures images is empty and image is null.

"images": [
  {"url": "https://api.pliing.app/v1/replies/311/images/0", "mime": "image/jpeg", "width": 1536, "height": 2048},
  {"url": "https://api.pliing.app/v1/replies/311/images/1", "mime": "image/jpeg", "width": 2048, "height": 1536}
]

Fetch each picture from url with the project's API key in Authorization; the address alone gives no access. GET /v1/replies/{id}/images/{n} returns picture number n, from 0, and GET /v1/replies/{id}/image returns the first. The pictures are JPEG, PNG or WebP, each at most 2000 KB and 4096 pixels on the longest side; the apps scale them down before sending. Consent is checked on every download, and a reply carries either pictures or a voice recording, not both.

Voice replies

The recipient can speak a reply in the app, for up to two minutes. The speech is turned into text on the device, and the recipient can correct the text before sending. No audio is sent to a third party for transcription. The text is in body, and the audio is stored encrypted at Pliing with the reply. Voice replies use the same consent and allow_replies as text replies.

Fetch the audio from audio.url with the same API key that reads replies; MCP responses have their own address under /v1/mcp/replies/{id}/audio, which requires the MCP key. Project, recipient and consent are checked on every download, and withdrawn consent returns consent_required. The audio is deleted with the reply or the account.

Location in replies

Ask for location by sending location: true together with notifications: true to POST /v1/consent-requests. The recipient approves “Location in replies” under Senders. After that the recipient can choose “Send with location” for each reply and button press; the choice is off by default and must be turned on every time.

{"location":{"latitude":59.9139,"longitude":10.7522,"accuracy":120,"captured_at":"2026-10-22T18:00:00+00:00"}}

location has latitude, longitude, accuracy in metres and the time the position was measured. The field is null when nothing is attached. It appears in GET /v1/replies, pliing_get_replies and pliing_get_response, and in the request to a trigger URL when the recipient attached a position. Approximate location is supported.

The location is stored encrypted with the reply. If the recipient withdraws the location permission, earlier positions are hidden in the replies to the sender, while text and choices can still be read as long as the notification permission stands. If location is approved again, the stored positions become visible again. Copies you have already fetched cannot be withdrawn.

Activity status in a thread

Show a temporary status at the bottom of a thread, for example while an assistant is working: POST /v1/threads/{thread_id}/activity. The call requires the same API key and consent as a notification, but no Idempotency-Key, and returns 204 without content. An unknown thread returns 404.

curl -X POST "https://api.pliing.app/v1/threads/deploy-1845/activity" \
  -H "Authorization: Bearer $PLIING_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"to":"pliing-7m3k9-xr2n8-q4v6","state":"thinking","label":"Checking calendar …","ttl_seconds":120}'

The status disappears on idle, when the time is up, or when a new message arrives in the thread. It causes no push, sound, unread mark or change in the inbox order, and does not replace messages. In MCP the tool is pliing_activity; the recipient is bound to the MCP key.

Conversation commands

Register up to 50 commands per project in the console or with the project key: PUT /v1/commands and JSON {"commands":[{"name":"info","description":"Show information"}]}. Read with GET /v1/commands; an empty array clears the list. Both calls answer HTTP 200 with the list as stored, in the same shape. A name starts with a lowercase letter and may contain lowercase letters, numbers, hyphens and underscores (up to 32 characters); a description has at most 160 characters.

When replies are enabled, the app suggests registered commands as the person types /. Selecting one inserts it into the reply. The complete text is sent as a normal reply, available through GET /v1/replies, MCP and reply.created webhooks. The receiving integration must implement the command and any response.

Responding to a command

Answer a command by sending the result to the same thread with reply_to set to the reply’s id, as GET /v1/replies, pliing_get_replies and data.id in the reply.created webhook give it. The apps then show the result in place of the command, with the command as a small label above the title. Without reply_to (from API 1.39.1) the server links the message itself when it plainly answers a command: the person's newest reply in the thread is a text-only command from the last ten minutes, and the project has sent nothing in the thread since. An integration that just answers needs no change. A later message, a message after an ordinary reply, a group send and a scheduled message are not linked. Older apps show both as before.

curl https://api.pliing.app/v1/notifications \
  -H "Authorization: Bearer $PLIING_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: support-7-info-1" \
  -d '{"to": "pliing-7m3k9-xr2n8-q4v6", "title": "Version 1.39.0", "body": "Everything is up to date.", "thread_id": "support-7", "reply_to": 311}'

Masked, one-time answers

Ask an approved recipient for a secret with POST /v1/secret-requests, a project key and an Idempotency-Key. JSON: {"to":"pliing-…","title":"API key","body":"Enter the key"}. Optionally set thread_id, thread_title, allow_replies, context and expires_in_seconds (60–86400; default 900). The current app masks the field and never shows the submitted value again; older apps cannot answer it.

HTTP 202
{"request_id":"0588e8be-585e-416f-9160-17a835ad382e","status":"pending","answer":null,"location":null,"context":null,
 "expires_at":"2026-11-27T10:59:44+00:00","answered_at":null,"poll_after_seconds":5,"notification_id":1962,"duplicate":false}

Call POST /v1/secret-requests/{request_id}/consume with the same project key. Pending gives status: pending and answer: null. The first retrieval after an answer returns answer: {"type":"secret","text":"…"} and deletes the value; subsequent calls return answered with a null answer. A successful question.answered webhook also consumes it. The two delivery methods compete for one value. A failed webhook can retry; a timeout can occur after receipt, so deduplicate with Pliing-Delivery. A lost consume response cannot be recovered: request a new value.

Use POST /v1/secret-requests/{request_id}/close to close a pending secret request. It returns the same closure receipt and leaves any stored secret available to consume.

The value travels over HTTPS and is encrypted in temporary server memory outside database and application backups. Pliing decrypts it for delivery; this is not end-to-end encryption. A server restart or host loss deletes pending values, and unretrieved values expire after about 24 hours. Protect the receiver's storage and logs.

Card decks

A card deck is one message with up to ten cards. The recipient goes through the cards, picks one choice or writes an answer on each, sees a summary and submits everything together. Use it when you want answers to several things at once, instead of many separate questions.

curl https://api.pliing.app/v1/decks \
  -H "Authorization: Bearer $PLIING_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: onboarding-feedback-1" \
  -d '{
    "to": "pliing-7m3k9-xr2n8-q4v6",
    "title": "New onboarding: five quick choices",
    "body": "I need your view on five things before I build on.",
    "cards": [
      {"id": "intro", "title": "Five quick choices", "body": "It takes about **a minute**."},
      {"id": "tone", "title": "Which tone should the welcome have?",
       "background": {"gradient": ["#3B5BFF", "#7A3FF2"]},
       "choices": [{"value": "warm", "label": "Warm"}, {"value": "short", "label": "Short"},
                   {"value": "fun", "label": "Playful"}, {"value": "calm", "label": "Calm"}]},
      {"id": "more", "title": "Anything else?", "allow_text": true, "optional": true}
    ]
  }'

HTTP 202
{"id":"9f1c6a52-7f0e-4a5b-b0a4-1e2d3c4b5a69","status":"pending","answers":null,"context":null,
 "expires_at":"2026-11-11T09:36:00+00:00","submitted_at":null,"notification_id":1960,"duplicate":false}

to, title, body and Idempotency-Key work as for an ordinary notification, and you can use level, sound and the thread fields. The message counts as one notification against the quota. title and body are what the recipient sees in the inbox with the button that opens the cards. A deck goes to one recipient; group: is not supported.

The fields of a card

FieldContent
idOptional. Your own ID for the card, 1–64 characters (letters, digits or _.:-), unique within the deck. Without one the cards get card-1, card-2 and so on. The answers use this ID.
titleRequired. The card's title, at most 160 characters.
bodyOptional text, at most 2000 characters, with the same formatting as messages: bold, italics, code, tables and <img>.
backgroundOptional. One of {"color": "#RRGGBB"}, {"gradient": ["#RRGGBB", "#RRGGBB"]} (top left to bottom right) or {"image": "https://…"}. Without a background the card follows the app's light or dark appearance.
choicesNone, or two to four choices. Each choice has value (1–64 characters, your own value) and label (at most 40 characters, what the recipient sees). The recipient picks one.
allow_texttrue gives the card a text field. The recipient then answers with one choice or with text (at most 2000 characters), not both.
optionaltrue lets the recipient go on without answering. By default the card must be answered.
columnsOptional: 1, 2 or 4 choices per row. Without it the app decides: short labels share one row, medium ones sit two to a row, and long ones get a row each.
embedOptional. {"html": "…"}: a self-contained HTML page of up to 16,384 bytes shown in the card. See Embedded HTML reports.

Embedded HTML reports

From API 1.50.0 one message can carry everything at once: text with pictures, an HTML page, a link card and buttons or a question. POST /v1/notifications and POST /v1/questions take embed: {"html": "…"} beside their own fields, and POST /v1/decks takes link_preview and actions. Pictures in the page are written as <img src="https://…"> or CSS url(https://…), at most twelve per page: pictures uploaded to /v1/images always show, pictures on your own server after “Show images”. The app fetches them and puts them in; the page itself still never reaches the network.

Send this JSON to POST /v1/decks with the same headers as above. cards[].embed.html contains a self-contained page of up to 16,384 UTF-8 bytes. Include a summary in the card’s body for older clients and as a fallback. The combined encoded cards may use up to 60,000 bytes. Apple build 103 displays the report inline and adjusts its height up to 8,192 points. Use responsive content with intrinsic height. Inline CSS, JavaScript and data images work locally. Remote resources, navigation and form submissions are blocked. Period changes stay on the device. A report without questions returns informational. Use the native card fields to collect an answer.

{
  "to": "pliing-7m3k9-xr2n8-q4v6",
  "title": "Nightly backup",
  "body": "176 GB in the last 24 hours. All four volumes verified.",
  "thread_id": "backups",
  "cards": [
    {
      "title": "Backup report",
      "body": "176 GB in the last 24 hours. All four volumes verified.",
      "embed": {
        "html": "<!doctype html><html lang=\"en\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"><style>body{font:1rem system-ui;margin:0;padding:1em;background:#102b30;color:white}output{display:block;font-size:2rem}</style><select aria-label=\"Period\" onchange=\"document.querySelector('output').textContent=this.value\"><option value=\"176 GB\">Last 24 hours</option><option value=\"1174 GB\">Last 7 days</option></select><output aria-live=\"polite\">176 GB</output></html>"
      }
    }
  ]
}

Read the answers

curl https://api.pliing.app/v1/decks/9f1c6a52-7f0e-4a5b-b0a4-1e2d3c4b5a69 \
  -H "Authorization: Bearer $PLIING_TOKEN"

HTTP 200
{"id":"9f1c6a52-7f0e-4a5b-b0a4-1e2d3c4b5a69","status":"submitted",
 "answers":[{"card":"tone","value":"short","label":"Short"},
            {"card":"more","text":"Remember dark mode"}],
 "context":null,"expires_at":"2026-11-11T09:36:00+00:00","submitted_at":"2026-11-10T09:41:07+00:00"}

Integrations

Webhooks

A project can name one public HTTPS address. Pliing posts a signed JSON event there when a recipient replies in a thread (reply.created) or answers a question (question.answered) or submits a card deck (deck.submitted), so your backend does not have to poll GET /v1/replies or pliing_get_response. Set the address in the console under Setup › Webhook (owners and admins). The webhook receives every recipient's answers, so an organization's key cannot set, change or remove it (403 webhook_requires_console). A personal project's own key can, and the owner gets a message in the app each time:

curl -X PUT https://api.pliing.app/v1/webhook \
  -H "Authorization: Bearer $PLIING_TOKEN" -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/pliing/webhook"}'

The response contains secret (whsec_…) once; store it as a secret. Setting the address again issues a new secret. GET /v1/webhook shows the address and the outcome of the newest attempt, POST /v1/webhook/test sends a ping, and DELETE /v1/webhook removes the webhook. The address must use HTTPS on port 443 with a public domain name; redirects are not followed.

HTTP 200
{"webhook":{"url":"https://example.com/pliing/webhook","events":["reply.created","question.answered","deck.submitted"],
  "last_status":null,"last_attempt_at":null,"last_success_at":null,"consecutive_failures":0,"paused":false,
  "created_at":"2026-11-27T10:44:44+00:00"},
 "secret":"whsec_…"}

GET /v1/webhook answers with the same webhook object without secret, or {"webhook":null} when no address is set. POST /v1/webhook/test answers {"delivered":true,"http_status":200} with the status the address returned, and DELETE /v1/webhook answers 204 with no content.

Events

Every event has id (the delivery id), event, created_at, project_id and data. For reply.created, data is the same object as in GET /v1/replies:

{
  "id": "0b6f6f0e-3a55-4c0e-9a55-6f1f6f3a2b10",
  "event": "reply.created",
  "created_at": "2026-11-09T21:40:12+00:00",
  "project_id": 42,
  "data": {
    "id": 311, "thread_id": "deploy-1845", "from": "pliing-7m3k9-xr2n8-q4v6",
    "body": "Yes, continue.", "location": null,
    "created_at": "2026-11-09T21:40:12+00:00", "audio": null, "transcript": null, "image": null, "images": []
  }
}

For question.answered, data has the same fields as pliing_get_response, plus notification_id, thread_id and from. A written answer has answer: {"type": "text", "text": "…"}.

{
  "id": "5d0c2a7e-8f0b-4a3e-b0d3-2f6f4c1d9e77",
  "event": "question.answered",
  "created_at": "2026-11-09T21:41:03+00:00",
  "project_id": 42,
  "data": {
    "request_id": "9f1c6a52-7f0e-4a5b-b0a4-1e2d3c4b5a69", "status": "answered",
    "answer": {"value": "continue", "label": "Continue"},
    "location": null, "context": null,
    "expires_at": "2026-11-09T22:40:00+00:00", "answered_at": "2026-11-09T21:41:03+00:00",
    "notification_id": 1845, "thread_id": "deploy-1845", "from": "pliing-7m3k9-xr2n8-q4v6"
  }
}

The consent rules are the same as elsewhere: location and from_name are included only while the recipient shares them with the project, and if consent is withdrawn before the delivery, nothing is sent. Voice recordings and pictures are fetched with the project key from the addresses in data, see The fields of a reply.

Verify the signature

Every request carries Pliing-Signature: t=<unix time>,v1=<hex>, where v1 is the HMAC-SHA256 of <t>.<raw request body> with the secret. Compute the same over the raw bytes, compare in constant time, and reject timestamps more than five minutes old. Pliing-Event repeats the event name. The header always carries exactly one v1 value: a new secret replaces the old one at once.

import crypto from "node:crypto";

// rawBody: the request body exactly as received (a string or Buffer), before any JSON parsing.
export function verifyPliing(rawBody, signatureHeader, secret) {
  const parts = Object.fromEntries(signatureHeader.split(",").map(part => part.split("=")));
  if (Math.abs(Date.now() / 1000 - Number(parts.t)) > 300) return false;
  const expected = crypto.createHmac("sha256", secret).update(`${parts.t}.${rawBody}`).digest("hex");
  return expected.length === parts.v1.length && crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));
}

Delivery and retries

Answer with a 2xx status within eight seconds. Other answers and timeouts are retried up to five more times, after 10 seconds, 1 minute, 5 minutes, 30 minutes and 2 hours; a 4xx status other than 408 and 429 is not retried. After ten failures in a row the webhook is paused ("paused": true in GET /v1/webhook): nothing more is sent until the address is saved again or a test succeeds. Every attempt carries the same id, also in Idempotency-Key and Pliing-Delivery, so an id you have processed can be ignored. Events may arrive in a different order than they occurred. The webhook does not replace GET /v1/replies: use it to fetch anything that was lost.

Calls

Let your voice agent call a recipient, or let the recipient call the agent. Pliing rings and passes the connection set-up between the two. The audio travels encrypted between the Pliing app and your agent through Pliing's relay: the relay forwards encrypted packets and cannot hear the call, and the API never sees the audio. Pliing provides no voice. You connect your own voice agent, with your own models and keys.

Calls are new and are being opened gradually. The recipient needs a version of the Pliing app that supports calls; older versions and the Android app cannot grant the permission yet. Where calls are not open, the endpoints answer 404.

The permission

Being called is a permission of its own, calls. It is off until the recipient turns it on for the sender. Ask for it together with notifications:

curl https://api.pliing.app/v1/consent-requests \
  -H "Authorization: Bearer $PLIING_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"to":"pliing-7m3k9-xr2n8-q4v6","notifications":true,"codes":false,"calls":true}'

If you already have an approved connection, the recipient gets a message from "Pliing" saying that you ask to call them, and turns it on under Senders if they want to. The connection shows requested_calls and calls. Without the permission a call answers 403 call_permission_required. If the recipient turns it off again, a call in progress ends.

Call a recipient

curl https://api.pliing.app/v1/calls \
  -H "Authorization: Bearer $PLIING_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: deploy-1845-call" \
  -d '{
    "to": "pliing-7m3k9-xr2n8-q4v6",
    "title": "The deploy is waiting for you",
    "body": "Build 1845 is ready. Call me back, or answer in the thread.",
    "ringtone": "melody",
    "thread_id": "deploys"
  }'

HTTP 202
{"call_id":"5b1f0c9e-2a44-4d0c-9a51-7c1d2e3f4a5b","direction":"outbound","status":"ringing","to":"pliing-7m3k9-xr2n8-q4v6",
 "title":"The deploy is waiting for you","ringtone":"melody","thread_id":"deploys","offer":null,"ice_servers":[],"end_reason":null,"ended_by":null,
 "created_at":"2026-11-27T10:44:44+00:00","ring_until":"2026-11-27T10:45:14+00:00","answer_until":null,"accepted_at":null,
 "connected_at":null,"ended_at":null,"duration_seconds":null,"poll_after_seconds":1,"duplicate":false}
FieldContent
toThe recipient's PliingID. A call goes to one recipient; group: is not supported.
titleWhat the call is about, up to 80 characters. Shown as plain text on the call screen and in the missed-call message.
bodyOptional text (up to 1000 characters) for the missed-call message. Without it the message says "The sender tried to call you."
ring_secondsHow long it rings: 10–60 seconds, 30 by default.
ringtoneThe ringtone on the recipient's devices: ringing (the default), melody or calm. See Ringtone.
thread_id, thread_titleThe thread the call belongs to, as for a notification. thread_icon_url and allow_replies are not accepted here.

An iPhone or iPad rings with the phone's ordinary call screen, and a Mac gets a notification. The call counts as one notification against the allowance. If the recipient does not take it, or you hang up while it rings, the recipient gets a "Missed call" message in the same thread; it is not counted a second time. If the recipient has muted the sender, is in another call, or has no device that can ring right now, their devices do not ring. The call then ends as missed, with its message.

Ringtone

The optional field ringtone picks the ringtone on the recipient's devices, as sound picks the sound of a notification. Left out, it rings with ringing. An unknown value gives HTTP 422; the notification sounds cannot be used as a ringtone.

ValueRingtoneListen
ringingBell: two notes taking turns, in two bursts (default)
melodyMelody: four rising notes, played twice
calmCalm: two soft, low notes, played twice

Connect the agent

When the recipient answers, the app writes a WebRTC offer (SDP). You get it in the call.answered webhook event, or by reading GET /v1/calls/{call_id}?wait=25, which waits until the recipient answers (see Wait instead of a webhook):

{"call_id":"5b1f0c9e-2a44-4d0c-9a51-7c1d2e3f4a5b","direction":"outbound","status":"answered","to":"pliing-7m3k9-xr2n8-q4v6",
 "offer":{"type":"offer","sdp":"v=0\r\n…"},
 "ice_servers":[{"urls":["stun:calls.pliing.app:3478"]},
   {"urls":["turn:calls.pliing.app:3478?transport=udp","turns:calls.pliing.app:443?transport=tcp"],
    "username":"1795834800:agent-3f9c1a7b52e04d68a1c0","credential":"…"}],
 "accepted_at":"2026-11-27T10:44:59+00:00","answer_until":"2026-11-27T10:45:19+00:00","poll_after_seconds":1, …}
  1. Give the offer to the agent's WebRTC library as the remote description, with ice_servers as its ICE servers.
  2. Create an answer, and wait until the library has gathered all its candidates. Pliing passes one offer and one answer; candidates cannot be sent afterwards.
  3. Send the answer before answer_until (20 seconds after the recipient answered): POST /v1/calls/{call_id}/answer with {"sdp": "v=0…"}. The call is then connected and the audio flows.
  4. Hang up with POST /v1/calls/{call_id}/end. If the recipient hangs up, you get call.ended.

The offer carries audio only, and only candidates on Pliing's relay: the recipient's own network address is not in it. An agent with a public address does not need the relay itself. Behind a router it uses the addresses in ice_servers; the credentials there are for this connection and change every day. The answer must be audio only as well; a data channel is allowed.

statusMeaning
ringingIt rings. When the recipient calls the agent, this is also the state while the agent's answer is awaited.
answeredThe recipient has answered, and offer waits for the agent's answer.
connectedThe agent has answered the offer. The time is counted from here.
endedThe call is over. end_reason is hangup, max_duration (30 minutes), connection_lost or permission_withdrawn. ended_by is sender, recipient or system, and duration_seconds is the time the call was connected.
declinedThe one who was called declined.
missedNobody answered before ring_until.
canceledThe one who called hung up before anyone answered.
failedagent_unavailable: the agent did not answer the offer in time. connection_failed: the app never got audio. permission_withdrawn: the permission was taken back before the call was connected.

The call.ended event is sent when the call is over, whatever the outcome. Every call event carries the same object as GET /v1/calls/{call_id} in data, is signed like other webhook events, and is listed in the webhook's events where calls are open.

Wait instead of a webhook

An agent without a public address needs no webhook. wait works as it does for replies: a whole number from 1 to 30 seconds that lets the call wait instead of asking again and again.

curl "https://api.pliing.app/v1/calls/waiting?wait=25" \
  -H "Authorization: Bearer $PLIING_TOKEN"

HTTP 200
{"data":[{"call_id":"8c2d7a10-6b3e-4f5a-8d21-0a9b8c7d6e5f","direction":"inbound","status":"ringing","from":"pliing-7m3k9-xr2n8-q4v6",
  "title":"Deploys","thread_id":"deploys","offer":{"type":"offer","sdp":"v=0\r\n…"},"ice_servers":[…],"ring_until":"2026-11-27T10:45:14+00:00", …}]}

Answer or end every call the queue gives you; a call you leave alone is returned again until its ringing time is over. Use a client timeout of at least 35 seconds. An API key can have five waiting calls at a time, waiting calls for replies included.

When the recipient calls the agent

Say that the agent takes calls: PUT /v1/calls/settings with {"incoming": true}. The offer arrives as the call.incoming event, or in the queue GET /v1/calls/waiting for an agent without a webhook. Recipients who have granted calls can call the sender from the app as long as the agent can be reached: the project has a webhook that is not paused, or the agent has asked the queue within the last 90 seconds. Otherwise the recipient is told at once that the agent is not available.

{"id":"0b6f6f0e-3a55-4c0e-9a55-6f1f6f3a2b10","event":"call.incoming","created_at":"2026-11-27T10:44:45+00:00","project_id":7,
 "data":{"call_id":"8c2d7a10-6b3e-4f5a-8d21-0a9b8c7d6e5f","direction":"inbound","status":"ringing","from":"pliing-7m3k9-xr2n8-q4v6",
  "title":"Deploys","thread_id":"deploys","offer":{"type":"offer","sdp":"v=0\r\n…"},"ice_servers":[…],
  "ring_until":"2026-11-27T10:45:14+00:00", …}}

Answer the offer with POST /v1/calls/{call_id}/answer before ring_until (30 seconds), or decline with POST /v1/calls/{call_id}/end. title is the thread's title when the call is started from a thread, otherwise the project's name. Calls the recipient starts are not counted against the allowance. GET /v1/calls/settings answers {"incoming":true,"reachable":true,"available":true}; reachable says whether the agent can be reached right now; while it is false, nobody can call.

Limits and errors

Statistics

GET /v1/stats returns the numbers the console shows: how many notifications were sent and read, how many questions and card decks were answered, how delivery went, and where the recipients stand. The call uses the project's ordinary API key.

curl "https://api.pliing.app/v1/stats?period=this_month" -H "Authorization: Bearer $PLIING_TOKEN"

HTTP 200
{
  "period": {"name": "this_month", "from": "2026-11-01", "to": "2026-11-30", "timezone": "Europe/Oslo", "granularity": "day"},
  "project_id": null,
  "recipients": {"approved": 184, "pending": 21, "expired": 11, "revoked": 15},
  "notifications": {"sent": 3412, "read": 2968, "read_rate": 0.87, "median_seconds_to_read": 240},
  "questions": {"asked": 310, "answered": 223, "answer_rate": 0.719, "median_seconds_to_answer": 540},
  "decks": {"sent": 12, "submitted": 9, "submit_rate": 0.75},
  "replies": 418,
  "calls": {"total": 46, "outbound": 31, "inbound": 15, "connected": 38, "connect_rate": 0.826, "seconds": 5130, "average_seconds": 135},
  "deliveries": {"delivered": 1904, "failed": 7, "skipped": 38, "no_device": 61,
    "reasons": {"consent_withdrawn": 12, "expired": 4, "subscription": 0, "device_unregistered": 5, "provider_error": 2, "other": 22}},
  "quota": {"used": 3412, "limit": 10000, "period": "2026-11"},
  "series": [{"at": "2026-11-01", "sent": 84, "read": 77, "calls": 2, "call_seconds": 310, "projects": {"42": 61, "57": 23}}, {"at": "2026-11-02", "sent": 91, "read": 80, "calls": 0, "call_seconds": 0, "projects": {"42": 91}}],
  "projects": [{"id": 42, "name": "Shift roster", "recipients": 142, "sent": 2610, "read_rate": 0.91, "answer_rate": 0.78}]
}

Periods

periodCovers
todayToday, hour by hour
yesterdayYesterday, hour by hour
last_7_daysThe last 7 days up to and including today, day by day
last_30_daysThe last 30 days up to and including today, day by day
this_weekThis week, from Monday
last_weekLast week
this_monthThis month (default)
last_monthLast month
this_yearThis year, month by month
last_yearLast year, month by month
allEverything counted, month by month

The fields

FieldContent
recipientsThe connections as they stand now: approved, pending, expired without an answer and revoked. This is a snapshot and does not follow the period.
notificationsSent notifications, how many were read in the app, read_rate between 0 and 1, and the median time from sending to reading in seconds.
questionsQuestions with choices or a written answer: asked, answered, answer_rate and the median time to answer in seconds.
decksCard decks: sent, submitted and submit_rate.
repliesFree-text replies in threads.
callsCalls: total, split into outbound (you rang) and inbound (the recipient rang), connected (calls that were connected) with connect_rate, the time in all as seconds, and average_seconds per connected call.
deliveriesPush per device: delivered (accepted by Apple or Google), failed, skipped and no_device (notifications to recipients without a device with push). reasons explains why a push did not go out.
quotaThe month's quota for the whole organization or account. limit is null when the plan has no limit.
seriesSent and read per hour, day or month, see period.granularity, and calls (calls) with the seconds they lasted (call_seconds). Buckets without notifications are included, as zero. Without project_id every bucket also has projects: how many notifications each project sent in the bucket, keyed by the project's id. A project that sent nothing is left out, and a deleted project can appear with its counts. With project_id the field is absent.
projectsOne line per project: recipients, sent, read rate and answer rate. Use id from here as project_id.

Heartbeats

For organizations on Enterprise. Let your services report in with the project's key at regular intervals. When a service is silent for longer than it allows, the recipient gets a critical notification in the thread you name, and a message when it is back. Heartbeats are not messages and do not count as notifications.

curl https://api.pliing.app/v1/heartbeats \
  -H "Authorization: Bearer $PLIING_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "web-1", "to": "pliing-7m3k9-xr2n8-q4v6", "thread_id": "ops", "version": "1.4.2"}'

name: 1–64 characters (letters, digits and _.:-), starting with a letter or a digit. to: the recipient who is told, with the same consent a notification needs. thread_id (optional): the thread the messages land in. version (optional): the service's version, at most 32 characters. silent_after (optional): minutes without a heartbeat before the recipient is told, from 5 to 1440 (default 45). Send heartbeats more often than that, for example every 15 minutes. The answer is the heartbeat: name, last_seen_at, silent, silent_after, version, thread_id, addresses and created_at.

The Beatsguard permission

The recipient sees the heartbeats under Beatsguard in the Pliing app, and is told about a silence only with the beatsguard permission. Ask for it with notifications: POST /v1/consent-requests with {"to": "…", "notifications": true, "codes": false, "beatsguard": true}. It is off until the recipient turns it on under Senders; the connection shows requested_beatsguard and beatsguard. If you already have an approved connection, the recipient gets a message from “Pliing” saying you ask for it. Without the permission a heartbeat answers 403 beatsguard_required, and only organizations on Enterprise can ask for it (422 beatsguard_requires_enterprise).

One key for many services

Each name is bound to the address it first reported from, one IPv4 and one IPv6 address. A heartbeat for the name from another address is refused with 409 heartbeat_address_mismatch, and the recipient gets a critical notification at most once an hour. That way a key gone astray cannot hide that another service is silent. If the service has a new address, delete the heartbeat with DELETE /v1/heartbeats/{name}, and the next heartbeat binds the new address. The recipient is told about the deletion, since the name is no longer watched.

History

GET /v1/heartbeats lists the heartbeats with available: how much of the last 30 and 90 days (30d, 90d) the service was not silent, counted from its first heartbeat. GET /v1/heartbeats/{name} also has silences (from, to, minutes; to is null while the silence lasts) and events (registered, silent, back, refused, deleted), newest first. The history is kept for 90 days, and a heartbeat that has been silent for as long is removed.

Errors: 403 beatsguard_requires_enterprise outside Enterprise, 403 beatsguard_required without the permission, 422 heartbeat_limit when the project has 200 names, 404 heartbeat_not_found for an unknown name, and otherwise the same as for a notification (recipient_not_found, consent_required).

AI notifications with MCP

Connect your assistant to send progress in one thread, ask questions with action buttons and read the recipient's choices and free-text replies. Use a separate key bound to one project and one approved recipient.

MCP setup and complete examples →

Reference

Endpoints

MethodPathDescription
GET/v1/healthAPI status (public)
POST/v1/notificationsSend a notification, now or later with send_at
POST/v1/codesSend a one-time code (requires its own permission)
POST/v1/codes/{id}/usedReport that a one-time code was used
GET/v1/notifications/{id}/deliveryPush status for one notification
POST/v1/secret-requestsAsk an approved recipient for a secret value in a masked field
POST/v1/secret-requests/{id}/consumeRetrieve the secret value; the first retrieval returns it and deletes it
POST/v1/questionsAsk a question with two or three choices, a written answer, or both
GET/v1/questionsFind questions and recover changes
GET/v1/questions/{id}Status and answer for a question
POST/v1/decksSend a card deck with up to ten cards
GET/v1/decks/{id}Status and answers of a card deck
GET/v1/decks/{id}/images/{n}A picture from a deck's answers
POST/v1/callsCall a recipient who has granted the calls permission
GET/v1/calls/{id}The state of a call, with the app's offer while the agent's answer is awaited; can wait with wait
GET/v1/calls/waitingThe queue of calls that wait for the agent's answer; can wait with wait
POST/v1/calls/{id}/answerThe agent's answer to the app's offer
POST/v1/calls/{id}/endHang up, give up a call that rings, or decline a call from the recipient
GET/v1/calls/settingsWhether recipients can call the project
PUT/v1/calls/settingsTurn calls from recipients on or off
GET/v1/scheduledScheduled notifications that are waiting
GET/v1/scheduled/{id}Status of one schedule
DELETE/v1/scheduled/{id}Cancel a schedule before its time
POST/v1/imagesUpload a picture for a message (WebP, at most 2000 KB)
GET/v1/images/{id}Fetch a picture the project uploaded itself (recipients' apps fetch it with their account)
DELETE/v1/images/{id}Delete a picture early
POST/v1/consent-requestsAsk a user for permission to send
GET/v1/consent-requests/{id}See whether the request is approved (or ?to= for one recipient)
GET/v1/connectionsList the project's connections with status, label and shared name and picture
GET/v1/connections/{id}/avatarThe recipient's profile picture while the profile is shared
GET/v1/repliesFetch the recipients' replies in your threads
GET/v1/replies/{id}/audioThe recording of a voice reply
GET/v1/replies/{id}/images/{n}Picture number n on a reply, from 0 to 4
GET/v1/replies/{id}/imageThe first picture on a reply
POST/v1/threads/{thread_id}/activityShow or remove the activity status in a thread
GET/v1/commandsRead the project's conversation commands
PUT/v1/commandsReplace the project's commands (up to 50; an empty list clears it)
GET/v1/statsStatistics for the organization, or one project with project_id
POST/v1/heartbeatsReport a heartbeat (Enterprise)
GET/v1/heartbeatsThe project's heartbeats and how available they have been
GET/v1/heartbeats/{name}One heartbeat with its silences and events for the last 90 days
DELETE/v1/heartbeats/{name}Stop watching a name (the recipient is told)
PUT/v1/webhookSet the project's webhook address (returns the secret once)
GET/v1/webhookSee the address and the latest delivery attempt
POST/v1/webhook/testSend a ping to the address
DELETE/v1/webhookRemove the webhook

All endpoints except /v1/health require an API key in Authorization. The key can send and read replies in the project's own threads; it does not grant access to the recipient's inbox, one-time codes or other senders. GET /v1/health answers {"status":"ok","version":"1.48.0"}. DELETE /v1/scheduled/{id} and DELETE /v1/webhook answer 204 with no content, and DELETE /v1/images/{id} answers {"ok":true}.

What does delivered mean?

Accepted: The API has stored the notification. APNs accepted: Apple has accepted the push. Read: The recipient marked the content as read in the app. The APNs receipt does not confirm that a banner was actually displayed or read.

Storage: titles, texts, buttons, link cards, thread names, card decks and the recipient's replies are stored encrypted at Pliing, with a key that no backup holds. The server decrypts the content to send pushes and show it in the apps, so this is not end-to-end encryption. Messages are deleted after 90 days.

The default push is a generic notice about new content. The recipient decides whether the title and message can appear on the lock screen, and can disable push per device. One-time codes can appear in push only when the sender has selected push and the recipient has enabled previews. The in-app inbox is always available.

Apple and Google keep a push for a device that is offline for up to a day. A one-time code, or a message with a question or card deck, is kept only as long as it can be used and is not pushed at all once its time has run out; it still appears in the inbox.

The recipient's device list in the app on iPhone, iPad and Mac shows whether each device is ready for push (push_ready): it has a push registration from Apple or Google, push is on for it, and Pliing can reach its push service. Apple or Google can retire a registration, for example after the app is reinstalled; that device then gets no push until Pliing is opened on it again. Whether the device allows notifications is shown separately.

Check one notification’s push status

Call GET /v1/notifications/{notification_id}/delivery with the project key. Use notification_id from a single send or question. Group send IDs and schedule IDs belong to their own resources. A successful response contains notification_id and status.

Errors and limits

StatusMeaning
401Missing, expired or revoked token.
402subscription_required: the personal account or organization lacks active access. monthly_notification_limit: the monthly allowance of the account or organization is used up. The owner is told in the Pliing app when 80% is used and when it is used up; an organization's owners and admins get it in the app when their console account is linked to a PliingID, otherwise by email. New notifications are accepted again on the first of next month, or when the plan is raised. image_storage_limit: the storage for pictures is full.
403Incorrect key type, missing consent, personal_project_self_only (the key is locked to the owner's own ID), or webhook_requires_console (an organization's webhook is set in the console).
404The resource does not exist or belongs to another account. group_not_found: no group with this key in the project. link_not_found: unknown connect link or code.
409The idempotency key has been used with different content.
410code_expired: the code content is no longer available. image_expired: the picture is older than 30 days. link_expired: the connect link has expired, been used up or been revoked.
422Invalid input. Field errors are in errors. valid_idempotency_key_required: the Idempotency-Key is missing or malformed. schedule_limit: the project already has 500 scheduled messages. On picture upload: image_invalid_format (not WebP), image_too_large (over 2000 KB or 8 MP); on sending: image_not_found (the picture is not the project's own, or has expired); on a group send: group_empty (no approved members with the permission) and group_too_large (more than 1,000 members in one send); on connecting through a link: permission_not_requested (the link did not ask for the permission); on answering a command: reply_to_invalid (see Responding to a command); input_too_large: a list in the request has more than 500 entries.
429Too many requests. Respect Retry-After. outbound_busy: the project is already waiting on an address it chose (an icon, a webhook test); try again shortly.

The shape of an error

Errors answer with JSON and a message. Build on the status code, the code in message and the field names in errors; the readable texts may change.

HTTP 403
{"message":"consent_required"}

HTTP 422
{"message":"The title field is required.","errors":{"title":["The title field is required."]}}

HTTP 200
{"results":[{"id":42,"to":"pliing-7m3k9-xr2n8-q4v6","status":"pending", …},
            {"to":"pliing-zzzzz-zzzzz-zzzz","error":"recipient_not_found"}]}

Rate limits

Sending is rate limited per key, and the limit follows the plan:

PlanCalls per minute, per key
Free and Pliing Personal60
Start120
Growth300
Scale and Enterprise600

An MCP key has 60 calls a minute. Setting, removing and testing the webhook is also limited to 20 calls a minute, and each IP address to 10 calls a second. The X-RateLimit-Limit and X-RateLimit-Remaining response headers show what applies. On 429, wait according to Retry-After. On network errors and temporary server errors, retry with backoff and the same idempotency key.

← Back to Pliing