Skip to content
REST API Reference & SDKs

Passinstance Developer Documentation

Build high-volume Apple Wallet (.pkpass) and Google Wallet integrations. Issue, update, scan, and broadcast real-time lockscreen notifications via production-grade REST APIs.

Get API Keys
Live docs workbench — snippets update as you type

Overview & Endpoints

9 endpoints
Webhooks

Webhooks Overview & Signature Verification

Verify X-Webhook-Signature as HMAC-SHA256 over the exact raw request body with your subscription secret. Use constant-time comparison and idempotent event processing.

Signature Header
X-Webhook-Signature: sha256=9f8e7d6c5b4a3...
Timestamp Header
X-Webhook-Timestamp: 2026-08-21T20:30:00.000Z
Replay protection

Match X-Webhook-Id to the signed eventId; deduplicate events and validate the signed timestamp according to your replay policy.

Supported Events

PASS_CREATED, PASS_UPDATED, PASS_VOIDED, PUSHNOTIFICATION_FIRST, PUSHNOTIFICATION_REGISTERED, PUSHNOTIFICATION_UNREGISTERED, TEMPLATE_CREATED, TEMPLATE_UPDATED, APP_SCAN_CREATED, MESSAGE_SENT, MESSAGE_FAILED

Expected Response

Return HTTP 200 OK within 10,000ms to acknowledge receipt

Public Key Discovery

GET /api/v1/webhooks/public-key returns the active public key for signature verification

POSThttps://api.passinstance.com/api/v1/webhooks/subscriptionsAPI Key
Overview & Endpoints

Subscribe to Webhooks

Register an HTTPS endpoint to receive HMAC-signed real-time event notifications for pass issuance, updates, scans, and uninstalls.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1

Request payload containing target HTTPS destination URL and array of webhook event types.

Request Body2 required • 5 optional
urlstring (HTTPS URL)
Required

Your server endpoint URL (must start with https://, max 2048 chars).

Example: https://your-server.com/webhooks/passinstance
eventsstring[] (enum)
Required

Supported webhook event values: PASS_CREATED, PASS_UPDATED, PASS_VOIDED, PUSHNOTIFICATION_FIRST, PUSHNOTIFICATION_REGISTERED, PUSHNOTIFICATION_UNREGISTERED, TEMPLATE_CREATED, TEMPLATE_UPDATED, APP_SCAN_CREATED, MESSAGE_SENT, MESSAGE_FAILED.

Allowed values:PASS_CREATEDPASS_UPDATEDPASS_VOIDEDPUSHNOTIFICATION_FIRSTPUSHNOTIFICATION_REGISTEREDPUSHNOTIFICATION_UNREGISTERED
Example: ["PASS_CREATED", "PASS_UPDATED", "APP_SCAN_CREATED"]
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobjectSchema
Required

Created webhook subscription including the one-time plaintext HMAC signing secret.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

GEThttps://api.passinstance.com/api/v1/webhooks/subscriptions/{id}API Key
Overview & Endpoints

Get Webhook Subscription

Retrieve a single webhook subscription by UUID. Returns hasSecret: boolean and never re-exposes the plaintext HMAC signing secret.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)UUID v4
Required

Webhook subscription UUID.

Example: wh_sub_9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobjectSchema
Required

Public webhook subscription without plaintext secret.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

PATCHhttps://api.passinstance.com/api/v1/webhooks/subscriptions/{id}API Key
Overview & Endpoints

Update Webhook Subscription

Modify a webhook subscription's HTTPS destination URL, subscribed events, template filter, rate limits, or pause/resume deliveries via isActive.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)UUID v4
Required

Webhook subscription UUID to update.

Example: wh_sub_9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d

Partial UpdateWebhookSubscriptionDto payload. Send templateId: null to remove template filtering.

Request Body7 optional
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobjectSchema
Required

Updated public webhook subscription (hasSecret only, no plaintext secret).

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

DELETEhttps://api.passinstance.com/api/v1/webhooks/subscriptions/{id}API Key
Overview & Endpoints

Unsubscribe from Webhooks

Delete an active webhook subscription by ID to stop receiving event deliveries at that destination URL.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)
Required

Webhook subscription UUID to remove.

Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6
Response Body Structure (JSON)5 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
datanullnullable
Required

Primary resource or operation result payload.

descriptionstring
Required

Human-readable status description.

Example: Webhook subscription deleted successfully
errorsarray
Required

List of error messages (empty array on success).

statusCodenumber
Required

HTTP status code mirrored in the JSON envelope.

Example: 200

Response Status Codes

GEThttps://api.passinstance.com/api/v1/webhooks/subscriptionsAPI Key
Overview & Endpoints

List Active Subscriptions

Retrieve all active webhook subscriptions registered for your customer workspace.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataarray of objectsSchema
Required

Public webhook subscriptions (with hasSecret, never plaintext secret).

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

GEThttps://api.passinstance.com/api/v1/webhooks/historyAPI Key
Overview & Endpoints

List Webhook Delivery History

Inspect historical outbound webhook delivery logs, HTTP attempt counts, statuses, and event payloads with filtering.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Query Parameters7 optional
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataarray of objectsSchema
Required

Webhook event delivery history records.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

POSThttps://api.passinstance.com/api/v1/webhooks/subscriptions/{id}/testAPI Key
Overview & Endpoints

Test Webhook Subscription

Dispatch a signed synthetic test event to an existing webhook subscription to verify endpoint connectivity and HMAC-SHA256 verification.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)UUID v4
Required

Resource UUID.

Example: wh_sub_9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d

WebhookTestDto specifying the eventType and synthetic payload data to send.

Request Body2 required
eventTypestring (enum)
Required

Canonical webhook event type.

Allowed values:PASS_CREATEDPASS_UPDATEDPASS_VOIDEDPUSHNOTIFICATION_FIRSTPUSHNOTIFICATION_REGISTEREDPUSHNOTIFICATION_UNREGISTERED
Example: PASS_CREATED
dataRecord<string, unknown>
Required

Synthetic event payload data delivered to your webhook endpoint.

Example: {"passId": "test-pass-123", "templateId": "test-template-456"}
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobject
Required

Webhook endpoint test delivery outcome.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

POSThttps://api.passinstance.com/api/v1/webhooks/subscriptions/{id}/regenerate-secretAPI Key
Overview & Endpoints

Regenerate Webhook Signing Secret

Rotate the HMAC-SHA256 signing secret for a webhook subscription. The newly generated plaintext secret is returned once in this response.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)UUID v4
Required

Resource UUID.

Example: wh_sub_9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobject
Required

Newly rotated HMAC-SHA256 signing secret (returned once).

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

GEThttps://api.passinstance.com/api/v1/webhooks/public-keyPublic
Overview & Endpoints

Get Webhook Signature Public Key

Retrieve the PEM-encoded RSA public key for legacy webhook signature verification. For new integrations, use the per-subscription HMAC-SHA256 signing secret returned when subscribing.

Response Body Structure (JSON)4 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
dataobject
Required

Primary resource or operation result payload.

errorsarray
Required

List of error messages (empty array on success).

statusCodenumber
Required

HTTP status code mirrored in the JSON envelope.

Example: 200

Response Status Codes

Pull-Based Webhooks

2 endpoints
Webhooks

How Pull Webhooks Work & Pull Webhook Limitations

Consume real-time pass and scan events via outbound HMAC-SHA256 Push Webhooks (with exponential backoff and circuit breakers) or inbound Pull Webhook polling for firewall-restricted environments, plus no-code Workflows.

Push Webhook Resilience

5 retries with jittered exponential backoff; circuit breaker opens after 10 consecutive failures

Pull Webhook Polling

GET /api/v1/webhook-payload & POST /api/v1/webhook-payload/acknowledge for private networks

Workflow Triggers

PASS_CREATED, PASS_UPDATED, PASS_VOIDED, PUSHNOTIFICATION_FIRST, APP_SCAN_CREATED, TEMPLATE_UPDATED

Workflow Actions

ASSIGN_OR_UPDATE_CARD, ADD_POINTS, APPLY_STAMP, UPGRADE_MEMBERSHIP_TIER, UPDATE_PREPAID_BALANCE, SEND_DELIVERY_NOTIFICATION, TRIGGER_WALLET_UPDATE

GEThttps://api.passinstance.com/api/v1/webhook-payloadAPI Key
Pull-Based Webhooks

Retrieve Pending Webhook Events

Fetch pending webhook event payloads over outbound HTTPS GET for firewall-restricted or private-network environments without exposing public inbound ports.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Query Parameters3 optional
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataarray of objectsSchema
Required

Queued pull webhook payload items.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

POSThttps://api.passinstance.com/api/v1/webhook-payload/acknowledgeAPI Key
Pull-Based Webhooks

Acknowledge Webhook Events

Acknowledge processed pull-webhook payloads up to a specified payload ID so they are marked delivered and removed from the inbound polling queue.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1

Request payload specifying the high-water mark payload ID (upTo).

Request Body1 required • 1 optional
upTostring (UUID)
Required

Last processed webhook payload ID; all queued events up to this ID are acknowledged.

Example: whp_55a4b3c2-1d0e-9f8a-7b6c-5d4e3f2a1b0c
Response Body Structure (JSON)5 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
dataobject
Required

Primary resource or operation result payload.

descriptionstring
Required

Human-readable status description.

Example: Webhook payloads acknowledged successfully
errorsarray
Required

List of error messages (empty array on success).

statusCodenumber
Required

HTTP status code mirrored in the JSON envelope.

Example: 200

Response Status Codes

Webhook Events

4 guides
Webhook EventsOutbound HTTP POST Webhook Notification

Template Events

Outbound HTTP POST webhook notifications dispatched whenever a pass template is created, updated, published, or deleted in your workspace.

Template Created
POST
TEMPLATE_CREATED

Fired when a new pass template is created

Template Updated
POST
TEMPLATE_UPDATED

Fired when template fields, layout, or mechanics are modified

Webhook EventsOutbound HTTP POST Webhook Notification

Pass Events

Outbound HTTP POST webhook notifications tracking every stage of an individual pass lifecycle from creation to device installation and removal.

Pass Created
POST
PASS_CREATED

Fired immediately when a new pass is issued via REST API or PassFlow

Pass Updated
POST
PASS_UPDATED

Fired when pass attributes, loyalty points, tier, or balance change

Pass Voided
POST
PASS_VOIDED

Fired when a pass is voided or deactivated across Apple & Google Wallet

Pass First Downloaded
POST
PUSHNOTIFICATION_FIRST

Fired the first time a customer claims or downloads the pass

Pass Downloaded
POST
PUSHNOTIFICATION_REGISTERED

Fired on each subsequent pass bundle or Google Wallet link download

Pass Removed from Device
POST
PUSHNOTIFICATION_UNREGISTERED

Fired when the customer deletes the pass from Apple Wallet or Google Wallet

Webhook EventsOutbound HTTP POST Webhook Notification

Scan Events

Outbound HTTP POST webhook notifications emitted in real time whenever a pass barcode or NFC credential is scanned and validated.

Pass Scan Created
POST
APP_SCAN_CREATED

Fired when POST /api/v1/scans or a paired scanner records a scan

Scan Outcome Metadata

Includes passId, serialNumber, templateId, configId, scan decision, and balance delta

Delivery Guarantee

At-least-once HTTPS POST delivery with X-Webhook-Id and X-Webhook-Signature headers

Pull Queue Compatibility

Also available via GET /api/v1/webhook-payload for firewalled POS and on-premise workers

Webhook EventsOutbound HTTP POST Webhook Notification

Message Events & Status Reference

Outbound HTTP POST webhook notifications and delivery status codes for wallet push notifications, email sendouts, and SMS deliveries.

Message Sent
POST
MESSAGE_SENT

Fired when a pass message or push update is dispatched

Message Delivery Failed
POST
MESSAGE_FAILED

Fired when an outbound email, SMS, or push notification fails delivery

Message Status Reference

QUEUED -> SENT -> DELIVERED (or FAILED / BOUNCED with provider diagnostic code)

Idempotent Event Correlation

Match eventId and passId in your webhook consumer to deduplicate retried deliveries

Objects & Data Structures

7 objects

Canonical request and response objects for this API domain. Expand any nested object or array property to inspect every field, allowed enum value, and validation constraint.

WebhookSubscription

Object13 properties

A webhook subscription. The signing secret is only returned once by the create call; GET and PATCH return hasSecret.

Object Properties7 required • 5 optional
idstring (UUID)
Required

Subscription identifier.

urlstring (URL)max 2048 chars
Required

Destination URL.

eventsstring[] (enum)
Required

Subscribed events.

Allowed values:PASS_CREATEDPASS_UPDATEDPASS_VOIDEDPUSHNOTIFICATION_FIRSTPUSHNOTIFICATION_REGISTEREDPUSHNOTIFICATION_UNREGISTERED
isActiveboolean
Required

Whether deliveries are enabled.

hasSecretboolean
Required

A signing secret exists. The secret itself is only returned once, when the subscription is created.

createdAtstring (ISO 8601)
Required

Creation timestamp.

updatedAtstring (ISO 8601)
Required

Last update timestamp.

templateIdstring (UUID)nullable
Optional

Only deliver events of this template.

filtersobject
Optional

Event filters applied before webhook dispatch.

secretstring
Optional

HMAC-SHA256 signing secret. Present only in the create response.

Example: whsec_...
rateLimitnumber1 – 1000
Optional

Maximum deliveries per window.

rateWindownumber60 – 86400
Optional

Rate-limit window in seconds.

CreateWebhookSubscription

Object8 properties

Body of POST /webhooks/subscriptions.

Object Properties2 required • 5 optional
urlstring (HTTPS URL)max 2048 chars
Required

Destination URL.

eventsstring[] (enum)
Required

Events to subscribe to.

Allowed values:PASS_CREATEDPASS_UPDATEDPASS_VOIDEDPUSHNOTIFICATION_FIRSTPUSHNOTIFICATION_REGISTEREDPUSHNOTIFICATION_UNREGISTERED
templateIdstring (UUID)
Optional

Only deliver events of this template.

idempotencyKeystringmax 191 chars, [A-Za-z0-9:_-]
Optional

Stable key used to safely retry creation.

filtersobject
Optional

Event filters applied before webhook dispatch.

rateLimitnumber1 – 1000
Optional

Maximum deliveries per window.

rateWindownumber60 – 86400
Optional

Rate-limit window in seconds.

UpdateWebhookSubscription

Object8 properties

Body of PATCH /webhooks/subscriptions/{id}. Only supplied properties change.

Object Properties7 optional
urlstring (HTTPS URL)max 2048 chars
Optional

Destination URL.

eventsstring[] (enum)
Optional

Replaces the subscribed events.

Allowed values:PASS_CREATEDPASS_UPDATEDPASS_VOIDEDPUSHNOTIFICATION_FIRSTPUSHNOTIFICATION_REGISTEREDPUSHNOTIFICATION_UNREGISTERED
templateIdstring (UUID)nullable
Optional

Template filter. Send null to remove it.

filtersobject
Optional

Event filters applied before webhook dispatch.

rateLimitnumber1 – 1000
Optional

Maximum deliveries per window.

rateWindownumber60 – 86400
Optional

Rate-limit window in seconds.

isActiveboolean
Optional

Enable or pause deliveries.

WebhookDeliveryHeaders

Object3 properties

Headers sent with every outbound webhook delivery.

Object Properties3 required
X-Webhook-Signaturestring
Required

sha256=<HMAC-SHA256 of the raw body with your subscription secret>.

X-Webhook-Timestampstring (ISO 8601)
Required

Timestamp covered by the signature.

X-Webhook-Idstring
Required

Event id. Matches the signed eventId; use it to deduplicate retries.

WebhookEventPayload

Object13 properties

JSON body delivered to your HTTPS endpoint (and wrapped inside pull webhook records) for every subscribed event.

Object Properties5 required
eventIdstring (UUID)
Required

Unique event identifier matching the X-Webhook-Id header for idempotent deduplication.

eventTypestring (enum)
Required

Canonical webhook event type.

Allowed values:PASS_CREATEDPASS_UPDATEDPASS_VOIDEDPUSHNOTIFICATION_FIRSTPUSHNOTIFICATION_REGISTEREDPUSHNOTIFICATION_UNREGISTERED
timestampstring (ISO 8601)
Required

UTC timestamp when the event was emitted.

customerIdstring (UUID)
Required

Owning workspace customer UUID.

dataobject
Required

Event-specific resource snapshot.

WebhookEventHistory

Object21 properties

Delivery attempt log record returned by GET /webhooks/history.

Object Properties7 required • 1 optional
idstring (UUID)
Required

Event history record identifier.

subscriptionIdstring (UUID)
Required

Target webhook subscription UUID.

eventTypestring (enum)
Required

Canonical webhook event type.

Allowed values:PASS_CREATEDPASS_UPDATEDPASS_VOIDEDPUSHNOTIFICATION_FIRSTPUSHNOTIFICATION_REGISTEREDPUSHNOTIFICATION_UNREGISTERED
statusstring (enum)
Required

Delivery lifecycle status.

Allowed values:PENDINGPROCESSINGDELIVEREDFAILEDCANCELLED
attemptsnumber
Required

Number of HTTP delivery attempts executed.

createdAtstring (ISO 8601)
Required

Timestamp when the event was recorded.

payloadobjectSchema
Required

Delivered event JSON payload.

lastAttemptAtstring (ISO 8601)
Optional

Timestamp of the most recent delivery attempt.

PullWebhookPayloadItem

Object18 properties

Queued event record returned by GET /webhook-payload for firewall-restricted polling consumers.

Object Properties5 required
idstring (UUID)
Required

Queued webhook payload id used for acknowledgement cursors.

eventTypestring (enum)
Required

Canonical webhook event type.

Allowed values:PASS_CREATEDPASS_UPDATEDPASS_VOIDEDPUSHNOTIFICATION_FIRSTPUSHNOTIFICATION_REGISTEREDPUSHNOTIFICATION_UNREGISTERED
subscriptionIdstring (UUID)
Required

Webhook subscription that queued this event.

payloadobjectSchema
Required

Event payload containing pass, template, scan, or message details.

createdAtstring (ISO 8601)
Required

Timestamp when the event was queued.