VibeView tells your server when something changes in your accounts and sessions: an account was suspended, a session started, a session is about to hit its time limit. Each change is an event. Events are sent to your webhook endpoints as signed HTTPS requests, and kept for 30 days in an events feed you can read.
Add an endpoint
People with the Partner admin permission add endpoints on the Partner page of the dashboard (Webhook endpoints, Add endpoint):
- Endpoint URL:
httpsonly, on port 443 or 1024 to 65535, and it must resolve to a public address. - Events to send: the event types you want, or every type.
- Description: optional, for your own records.
The page shows the endpoint’s signing secret (whsec_…) once. Store it next to your
receiver. You can reveal it again, rotate it, disable, enable or delete the endpoint, and
resend past events from the same page. Every Partner admin is emailed when an endpoint is
created, its URL changes or its secret is rotated.
Your key can read endpoints (webhooks:read) and resend events or retry a delivery
(webhooks:write), but only a person can create, change or delete an endpoint.
The event object
Every event has the same envelope:
{
"object": "event",
"id": "evt_2fdcdad9c4871f589ee297d8",
"type": "session.ended",
"created": 1795270082,
"api_version": "2026-11-09",
"partner": "ptn_34e771b2c0472a4d",
"account": {"id": "org_95aa9b33d49e3752", "external_ref": "cust_1042"},
"data": {
"object": {
"object": "session",
"id": "ea2d0d1a-a6ee-498f-ba17-26dd51469efc",
"account": "org_95aa9b33d49e3752",
"status": "stopped",
"device": {"type": "ios", "category": "phone", "model": "iPhone 17", "os_version": "iOS 26.4"},
"app": "Xk3pQ9vB2m",
"build": null,
"queue": null,
"created": 1795269982,
"started": 1795269989,
"ended": 1795270082,
"end_reason": "stopped",
"streaming_seconds": 99,
"warnings": [],
"livemode": false,
"labels": {},
"confined": true
}
},
"livemode": false
}
| Member | Meaning |
|---|---|
id | The event’s id (evt_…). The same on every retry of it. |
type | What happened (below). |
created | When it happened, unix seconds. |
api_version | Your API version, the shape of data. |
partner | Your partner id. |
account | The account it is about (id and your external_ref), or null for an event about your partner itself. |
data.object | The object as it was when the event happened (see The objects in events). |
livemode | false for a test partner. |
Events carry ids and your external_ref, never an account’s display name.
Event types
These are the events VibeView sends today:
| Event | data.object | When |
|---|---|---|
account.created | account | You created an account. |
account.updated | account | Its display_name, its period or its extra minutes changed (an add, or a set that changed them), or suspended_by changed while it stays suspended. |
limits.changed | account, plus previous_limits | Its limits changed. |
account.suspended | account | It went from active to suspended. |
account.resumed | account | It went from suspended back to active. |
account.deleted | account ("status": "deleted") | It was torn down after your DELETE. |
session.created | session, plus data.created_via, data.embed_key and data.visitor for an embed session | A session was created. A session one of your embed keys started for a visitor also carries data.created_via (embed), data.embed_key (the key’s id) and data.visitor (the sub of the visitor token). A session your server created has none of the three. |
session.started | session | It became active. |
session.cutoff_warning | session, plus data.cutoff | It will end soon because of a limit. data.cutoff has the reason it will end with, ends_at, and the account period (start, end) the session is measured against. |
session.ended | session | It ended, for any reason (see its end_reason). Its streaming_seconds is the time it was metered. |
usage.threshold | usage threshold | An account reached 80% or 100% of its monthly streaming limit, or your accounts together reached a usage line of your contract. Once per line per period (see Usage thresholds). |
partner_key.created, partner_key.updated, partner_key.revoked | partner key | A key of your partner was created, changed or revoked. |
partner_key.expiring | partner key | A key with an expiry date expires within 7 days. Sent once per expiry. |
webhook_endpoint.created, webhook_endpoint.updated, webhook_endpoint.deleted, webhook_endpoint.secret_rotated, webhook_endpoint.secret_revealed | webhook endpoint | An endpoint was changed on the Partner page. |
build.started | build | A builder started a build of the account (status running). A build that ends before a builder starts it sends no build.started. |
build.succeeded, build.failed, build.cancelled | build | A build ended: it succeeded, it failed, or it was cancelled. Each build sends one of the three, once. failure_reason says why on build.failed and on a build.cancelled that VibeView stopped; it is null for a cancel on request (see Builds). |
submission.succeeded, submission.failed, submission.needs_action, submission.cancelled | submission | A store submission of the account reached an outcome: the store took it, it failed, the store waits for the developer account’s owner, or you cancelled it while its upload waited (VibeView’s work on it stopped; a file already sent to App Store Connect stays there). Each outcome is sent once; a submission that reaches a new outcome later sends again (see Store submissions). Stop following a TestFlight distribution sends no event; its answer is the submission. |
retention.expiring | retention notice | Production build files or app builds of the account will be deleted soon under its build retention (download a production build’s file first if you need it). |
app.registered | app | An app of the account was registered (see Register an app): once, at its first registration; a repeat sends none. |
app.uploaded | app, plus data.app_build | A new file was stored for an app of the account, by an upload (see Upload an app) or by a simulator build, from a template or from the account’s own source (see What a build makes): data.app_build is the new app build, as GET /api/v1/app-builds/{id} returns it; for a simulator build, its source is build and its build names the oldest build that succeeded with the file, or, when none has yet, the build that stored it (a later read can show another, or none: see the app build’s build in Apps in accounts). Once per new file; storing a file already stored sends none, and a file whose earlier copy expired sends it again when stored again. A simulator build’s app.uploaded and its build.succeeded (whose build carries app_build) can arrive in either order. |
share.created, share.deleted | share, plus data.reason on share.deleted | Your organization started or stopped sharing an app or a build template with your partner. data.reason is requested (removed on the Partner page) or partner_terminated (your partner was closed). |
embed_key.created, embed_key.updated, embed_key.revoked, embed_key.secret_rotated, embed_key.secret_revealed | embed key, plus data.reason on embed_key.revoked | An embed key was created, changed or revoked (on the Partner page, or through the API for an account’s own app), or its visitor secret was rotated or read. An event about a key on an account’s own app carries that account; one about a key on a shared app carries none. data.reason is requested (revoked on the Partner page or through the API), share_removed (the share of its app was removed) or partner_terminated (your partner was closed). |
template.created, template.deleted | template | A build template of your organization was created or deleted on the Partner page. template.created goes to the partner the template was created under; template.deleted to the partner whose Partner page deleted it and every partner it was ever shared with. |
template.revision_published, template.revision_deleted | template revision | A revision of a build template was published or deleted on the Partner page. Sent to the partner whose Partner page made the change and every partner the template is shared with. |
signing_material.exported | signing credential | A person of your organization with the partner admin permission exported a keystore or an Apple certificate VibeView generated for the account (see Signing). |
credential.expiring | signing credential, plus data.expiry | An Apple distribution certificate of the account stops signing soon: sent 30 days and again 7 days before, once each (a certificate first seen with 7 days or less left gets only the second). data.expiry has expires (unix seconds: the earlier of the certificate’s and the profile’s end), days_left, threshold (30 or 7) and expiring (certificate or profile, whichever ends first; profile when both end the same day, the part a refused build names). New material for the credential starts the notices again (see Expiry and revocation). |
credential.export_required | signing credential | Your partner is being closed, and the account holds a keystore VibeView generated that nobody exported. It is deleted with the account at the end of the grace period: export it before then if you still need it. One event per keystore. |
template.variable_set, template.variable_deleted | template variable | A variable of a build template was set (created or replaced) or deleted on the Partner page. Sent to the partner whose Partner page made the change and every partner the template is shared with. |
A build template belongs to your organization. Its events go to each partner of your
organization the template is shared with, and a change made on the Partner page also goes to that
page’s partner, whether or not it holds a share. Each event carries the livemode of the partner
it goes to: today every partner is a test partner, so it is false.
An endpoint receives the types it was set up for. New types may be added; ignore a type you do not know.
The full list of event types, each marked with whether VibeView sends it yet, is in the API
document (GET https://vibeview.io/api/v1/partners/openapi.json, x-vibeview-event-types on
the event schema).
The objects in events
| Kind | data.object members |
|---|---|
| session | Exactly what GET /api/v1/sessions/{session_id} returns: object, id, account, status, device, app, build, installed_build, queue, created, started, ended, end_reason, streaming_seconds, warnings, livemode, labels, confined. |
| account | object, id, external_ref, status, suspended_by, limits, created, period_anchor_day, period, extra, and previous_limits on limits.changed. Unlike the API’s account it never carries display_name, suspended_reason or livemode. |
| partner key | A summary: object, id, label, prefix, scopes, allowed_ips, expires_at, created, revoked. Never the key. |
| webhook endpoint | A summary: object, id, host, description, enabled_events, status, created. It carries the URL’s host only, never the url (its path may hold your own tokens), and never a secret. |
| usage threshold | object, scope, unit, period, threshold, quantity, limit. See Usage thresholds. |
| build | Exactly what GET /api/v1/builds/{public_id} returns: object, id, app, app_build, platform, status, failure_reason, error_summary, source, build_number, minutes, minutes_over_limit, period, time_limit_s, artifact, signing_credential, submit, created, started, finished, livemode. |
| submission | Exactly what GET /api/v1/submissions/{public_id} returns: object, id, build, app, store, track, status, state, failure_reason, error_summary, play_key, version_code, version_name, asc_key, beta_groups, release_notes, export_compliance, needs_action_reason, build_number, created, finished, livemode. |
| retention notice | object, earliest_expiry, items. Each item has build, app_build, app, version, build_number and expires_on: build is the build’s id (null for an item that is not a build’s file), app_build is the app build’s id (null for an item that is a build’s file; see Apps in accounts), app is the app’s id (null once the app is deleted), version and build_number are the version name and build number of the file (null when not known), and expires_on is the date it will be deleted (YYYY-MM-DD). earliest_expiry is the soonest expires_on. |
| app | Exactly what GET /api/v1/apps/{app_id} returns: object, id, name, platform, package_name, external_app_key, access, registered, livemode, created. |
| share | object, id, kind, app, app_name, platform, template, created. kind is app or template; app is the app’s id (app, app_name and platform are null for a share that is not an app); template is the build template’s id (null for a share that is not a template). Never who shared it. |
| embed key | object, id, name, app, platform, allowed_domains, created. id is the key itself. Never a visitor secret, never who made it. |
| template | object, id, name, latest_revision, created. latest_revision is the id of its newest revision (null when it has none, and always null on template.deleted). Never who made it. |
| template variable | object, template, name. template is its build template’s id, name the variable’s name. Never its value, its visibility or its file, never who set it. |
| signing credential | object, id, platform, account. id is the credential’s id (sgc_…), account the account’s id. On credential.expiring it also has kind and app (the id of the app it signs). Never the keystore, a password or a file name. |
| template revision | object, id, template, source_sha256, manifest, size, created. id is the revision’s id, template its template’s id, source_sha256 and size the source archive’s digest and size in bytes, manifest the manifest as published. Never who published it. |
Usage thresholds
usage.threshold tells you when usage crosses a line. Nothing is stopped by it: only an
account’s own limits stop its sessions. There are two kinds of line:
- An account’s monthly limit (streaming, build minutes or Mac build minutes;
"scope": "account"): the account reached 80%, then 100%, of what it may use of that unit in its current period. Use it to warn your customer before its sessions are cut off or its builds refused at the limit. The event’saccountnames the account. - Your contract’s lines (
"scope": "partner"): the total of all your accounts this month, deleted accounts included, reached a quantity your contract lists, such as 360,000 streaming seconds. The event’saccountisnull.
An account’s line is sent once per period of the account, and every period starts again;
a contract line once per calendar month (UTC), and every month starts again. If an
account’s limit changes during its period, the lines of the new limit are new lines: after a
raise, 80% and 100% of the new limit are sent when usage reaches them, and the old lines are
not sent again. A limit of 0 or unlimited has no lines. Nothing is sent about an account
after it is deleted, but its usage still counts toward your contract’s lines.
An account’s lines are a signal for the period that is running: one is usually sent within a minute of being reached; one missed then is usually sent within the hour, while its period lasts. A session counts in the period it started in, so a session that started on the last day of a period and kept running after midnight UTC adds to that period after it ended: that usage is in the account’s usage and in your contract’s totals, but it sends no account line for the past period.
Your contract’s lines are checked about once an hour. Because usage can still be added to
a month in its first days afterwards, a contract line can arrive in the first days of the
next month, for the month its period names. A line added to your contract applies to the
current month, and to the previous month while its usage is still being finalised (the
first days of a new month).
A usage.threshold event for an account line:
{
"object": "event",
"id": "evt_6b1c0e9f2a7d4c3b8e5f1a20",
"type": "usage.threshold",
"created": 1795270082,
"api_version": "2026-11-09",
"partner": "ptn_34e771b2c0472a4d",
"account": {"id": "org_95aa9b33d49e3752", "external_ref": "cust_1042"},
"data": {
"object": {
"object": "usage_threshold",
"scope": "account",
"unit": "streaming_seconds",
"period": {"start": 1793491200, "end": 1796083200},
"threshold": {"kind": "percent_of_limit", "percent": 80, "quantity": 288000},
"quantity": 288015,
"limit": 360000
}
},
"livemode": false
}
| Member | Meaning |
|---|---|
scope | account (a line of the account’s own limit) or partner (a line of your contract, across all your accounts). |
unit | What is counted: streaming_seconds, build_minutes or build_minutes_mac for an account line (its monthly limit of that unit); for your contract’s lines, the unit the contract names (streaming_seconds, build_minutes, build_minutes_over_limit, build_minutes_mac or build_minutes_mac_over_limit). |
period | The period the usage belongs to, as unix seconds: start, and end (the first second after it). For an account line, the account’s period; for your contract’s lines, the calendar month (UTC). |
threshold | The line: kind (percent_of_limit for an account line, quantity for a line of your contract), percent (80 or 100; null for your contract’s lines) and quantity (the line, in unit). |
quantity | The period’s usage, in unit, when VibeView recorded the line: at or past the line. It can be well above it: when usage passed several lines at once (each is sent, all with the same quantity), or when the line was recorded late. The line itself is threshold.quantity. |
limit | The account’s monthly limit, in unit; null for your contract’s lines. |
A delivery
Each event is sent to each endpoint that wants it, as a POST with
Content-Type: application/json, User-Agent: VibeView-Webhooks/1 and three headers from
the Standard Webhooks specification:
webhook-id: evt_2fdcdad9c4871f589ee297d8
webhook-timestamp: 1795270083
webhook-signature: v1,N2N9DsXwEJmDRjx48f/w2zabKbEjImg964QCWtyTXGI=
The body is the event object above (sent compact, without the spaces shown here).
Answer with any 2xx within 15 seconds. Anything else, a redirect included, is a failure.
Return 2xx first and do slow work after.
Verify every delivery
Check the signature before you trust a body. Use a Standard Webhooks library with the
whsec_… secret exactly as the Partner page shows it, and pass it the raw body bytes,
before any JSON parsing. The libraries also refuse a delivery whose timestamp is more than
five minutes away from your clock, which protects you against replayed requests.
Python (Flask):
# pip install standardwebhooks flask
import os
from flask import Flask, abort, request
from standardwebhooks.webhooks import Webhook
app = Flask(__name__)
webhook = Webhook(os.environ["VIBEVIEW_WEBHOOK_SECRET"]) # "whsec_..."
@app.post("/hooks/vibeview")
def vibeview_events():
try:
# The raw bytes, before any JSON parsing.
event = webhook.verify(request.get_data(), request.headers)
except Exception:
abort(400)
# Drop duplicates: the same event can arrive more than once.
print(event["id"], event["type"])
return "", 204
Node.js (no framework; the file is an ES module, so name it receiver.mjs or set
"type": "module" in your package.json):
// npm install standardwebhooks
import { createServer } from "node:http";
import { Webhook } from "standardwebhooks";
const webhook = new Webhook(process.env.VIBEVIEW_WEBHOOK_SECRET); // "whsec_..."
createServer((req, res) => {
const chunks = [];
req.on("data", (chunk) => chunks.push(chunk));
req.on("end", () => {
let event;
try {
// The raw body, before any JSON parsing.
event = webhook.verify(Buffer.concat(chunks).toString("utf8"), req.headers);
} catch {
res.writeHead(400).end();
return;
}
// Drop duplicates: the same event can arrive more than once.
console.log(event.id, event.type);
res.writeHead(204).end();
});
}).listen(3000);
Both receivers accept a real delivery and answer 400 to a body changed by one byte. If
you use a framework that parses JSON for you (Express, FastAPI, Django), read the raw body
for verification: a re-serialized body does not match the signature.
Rotating the secret
Rotate the signing secret on the Partner page (Rotate signing secret). For the next 24
hours the old and the new secret both sign each delivery: webhook-signature carries two
signatures, separated by a space, and either secret verifies it.
webhook-signature: v1,LoFm7LJcrnekxcpreSXuA/ghfXJzVax4axX4u1HXh/E= v1,Klya/AUc+Oz09IKXulaxi4qIrV6l0VaQmdxd1hO9hmg=
Move your receiver to the new secret within that day. If the old secret leaked, tick the option to stop it at once: deliveries then fail to verify until your receiver has the new one.
Duplicates and ordering
- At least once. An event can arrive more than once (a retry after your
2xxwas lost, or a resend). Keep theids you have processed and skip one you have seen. - No order. Events can arrive in a different order than they happened. Use
created, and the object’s ownstatus, to decide what is current; when in doubt, read the object from the API.
Retries
A delivery that fails is tried again with growing gaps: the first retry after a few
seconds, the last ones hours apart. It gets up to eight attempts within 24 hours of the
first. After that it is failed, and you can still send it again yourself (below).
An endpoint whose deliveries keep failing for three days is disabled
(disabled_reason: "failing"), and every Partner admin is emailed. Fix your receiver, then
enable the endpoint on the Partner page and resend what it missed.
Deliveries
Your key can follow each delivery (webhooks:read):
curl https://vibeview.io/api/v1/partners/$PTN/webhook-deliveries/evd_1f4ddb18dd68825ecbdcfbc7 \
-H "Authorization: Bearer $VIBEVIEW_KEY"
A delivery whose first two attempts got a 500, and whose third succeeded:
{
"object": "webhook_delivery",
"id": "evd_1f4ddb18dd68825ecbdcfbc7",
"event": "evt_39720ad7686b504223dfb956",
"event_type": "account.updated",
"endpoint": "whe_c832af15c62169c7",
"status": "succeeded",
"attempt_count": 3,
"next_attempt_at": null,
"last_attempt_at": 1795270458,
"last_status_code": 200,
"last_error": null,
"failed_reason": null,
"livemode": false,
"created": 1795270172,
"attempts": [
{"attempt": 1, "trigger": "scheduled", "started": 1795270172, "duration_ms": 7, "status_code": 500, "error": "http_status"},
{"attempt": 2, "trigger": "scheduled", "started": 1795270177, "duration_ms": 7, "status_code": 500, "error": "http_status"},
{"attempt": 3, "trigger": "scheduled", "started": 1795270458, "duration_ms": 19, "status_code": 200, "error": null}
]
}
status is pending, succeeded or failed; while a delivery is pending,
next_attempt_at says when it is tried next. List deliveries with GET /api/v1/partners/{ptn}/webhook-deliveries, filtered by
endpoint, event or status. Partner admins also see the start of your endpoint’s
answer on each failed attempt, on the Partner page.
Send one delivery again
POST /api/v1/partners/{ptn}/webhook-deliveries/{evd}/retry, scope webhooks:write. Sends
a delivery that has ended (succeeded or failed) once more, now:
curl -X POST https://vibeview.io/api/v1/partners/$PTN/webhook-deliveries/evd_1f4ddb18dd68825ecbdcfbc7/retry \
-H "Authorization: Bearer $VIBEVIEW_KEY"
The answer is the delivery, pending again. A delivery that is still being tried, or whose
endpoint is disabled, cannot be retried:
{
"detail": "The delivery cannot be retried now.",
"error": {
"code": "not_retryable",
"message": "The delivery cannot be retried now.",
"request_id": "req_b135978ae38241dabf5da4cc",
"reason": "pending"
}
}
reason is pending or endpoint_disabled.
Resend everything since a time
After an outage on your side, resend every event since a time to one endpoint (at most 30 days back): Resend events on the Partner page, or with your key:
curl https://vibeview.io/api/v1/partners/$PTN/webhook-endpoints/whe_c832af15c62169c7/recover \
-H "Authorization: Bearer $VIBEVIEW_KEY" \
-H 'Content-Type: application/json' \
-d '{"since":1795270376}'
The answer is the endpoint, with recovering_since set until the resend is done. The
endpoint must be enabled first (409 webhook_endpoint_disabled). Resent events keep their
id, so your duplicate check skips the ones you already have.
The events feed
GET /api/v1/partners/{ptn}/events, scope webhooks:read. Your events of the last 30 days,
newest first, the same objects your endpoints receive. Filter by type or account, and
page with limit and starting_after:
curl "https://vibeview.io/api/v1/partners/$PTN/events?type=session.cutoff_warning" \
-H "Authorization: Bearer $VIBEVIEW_KEY"
The feed works even without an endpoint: use it to catch up after downtime or to check what
happened. A key never sees the partner_key.* events in the feed; your endpoints and the
Partner page do. You can still filter by an account you deleted: its events stay in the
feed for 30 days like any others. An account that is not yours, or an id that does not
exist, is 404 account_not_found.
An event shows its object as it was when it was recorded, so events recorded before a member
existed lack it: warnings recorded before late November 2026 have no cutoff.period, and
session objects recorded before then no streaming_seconds. An account’s extra is likewise
absent from account events recorded before then. An account’s extra.build_minutes and
limits.build_time_limit_s, and a build’s time_limit_s, are absent from events recorded
before they were added, as are extra.build_minutes_mac and limits.build_minutes_mac_per_month.
After an account is deleted
Deleting an account sends session.ended for its sessions, then account.deleted once it
is torn down. Nothing is sent about it after that. Its events stay in the feed until they
are 30 days old.
While your partner is suspended
If VibeView suspends your partner, deliveries are held, not lost: they are sent when the suspension is lifted.