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

Template Management

11 endpoints
GEThttps://api.passinstance.com/api/v1/templatesAPI Key
Template Management

List Templates

Retrieve a paginated list of pass templates belonging to the authenticated workspace customer context.

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)6 required
successboolean
Required

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

dataarray of objectsSchema
Required

Template summary records matching your filters.

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.

paginationobject
Required

Pagination metadata.

Response Status Codes

GEThttps://api.passinstance.com/api/v1/templates/{id}API Key
Template Management

Get Template Details

Retrieve full details of a pass template including colors, barcode settings, layout fields, and mechanic rules.

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
idUUID
Required

Unique template identifier.

Example: tpl_8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b
Response Body Structure (JSON)5 required
successboolean
Required

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

dataobjectSchema
Required

Base and draft template revision pair.

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/templates/{id}/fieldsAPI Key
Template Management

Get Template Fields

Retrieve the computed dynamic field definitions and custom property keys that can be populated per pass for a given template.

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

Unique template UUID.

Example: 8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b
Query Parameters1 optional
Response Body Structure (JSON)5 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
descriptionstring
Required

Human-readable status description.

Example: Field definitions retrieved successfully
errorsarray
Required

List of error messages (empty array on success).

dataarray of objects
Required

Primary resource or operation result payload.

statusCodenumber
Required

HTTP status code mirrored in the JSON envelope.

Example: 200

Response Status Codes

GEThttps://api.passinstance.com/api/v1/templates/{id}/attributesAPI Key
Template Management

Get Template Attributes

Retrieve the attribute definitions (keys, types, required flags, regex validations, and dropdown options) expected when issuing passes for a template.

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: tpl_8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b
Response Body Structure (JSON)5 required
successboolean
Required

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

dataarray of objects
Required

Template attribute schema definitions.

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/templatesAPI Key
Template Management

Create Template

Design and register a new reusable pass template with visual branding, barcode type, NFC configuration, and layout fields.

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

Template creation request payload defining pass kind, branding colors, fields, and barcode settings.

Request Body6 required • 19 optional
namestring
Required

Template display name.

Example: VIP Loyalty Card Template
descriptionstring
Required

Detailed description of the pass purpose and tier perks.

Example: Exclusive loyalty and rewards card for VIP customers
organizationNamestring
Required

Organization / brand name printed on the card header.

Example: Acme Rewards
kindstring (enum)
Required

storeCard, coupon, eventTicket, generic, boardingPass, or membership.

Allowed values:boardingPassstoreCardcoupongenericposterGenericeventTicket
Example: storeCard
statusstring (enum)
Required

DRAFT, PUBLISHED, ARCHIVED, DEPRECATED, or UNDER_REVIEW.

Allowed values:DRAFTPUBLISHEDARCHIVEDDEPRECATEDUNDER_REVIEWDELETING
Example: PUBLISHED
preferredStyleSchemestring (enum)
Required

DARK, posterGeneric, posterEventTicket, bannerEventTicket, or semanticBoardingPass.

Allowed values:posterGenericposterEventTicketbannerEventTicketsemanticBoardingPassDARK
Example: DARK
Response Body Structure (JSON)5 required
successboolean
Required

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

dataobject
Required

Newly created template identifier.

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

PUThttps://api.passinstance.com/api/v1/templates/{id}API Key
Template Management

Update Template Draft

Save edits to the template draft revision (creating a draft if one does not exist) without modifying live passes until published. Send If-Match for optimistic version locking.

Headers1 required • 1 optional
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

Base template UUID whose draft revision will be updated.

Example: tpl_8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b

Partial UpdateTemplateDto payload (any subset of CreateTemplateDto properties, including colors, fields, barcodes, images, mechanics, locations, beacons, nfc, expiration, and attributes).

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

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

dataobject
Required

Draft revision update metadata.

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/templates/{id}API Key
Template Management

Patch Base Template

Apply a partial update directly to the production (base) template record without staging changes in a separate draft revision.

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

Base template UUID to patch directly.

Example: tpl_8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b

Partial PatchTemplateDto payload applied immediately to the production base template.

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

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

dataobjectSchema
Required

Patched production base template object.

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/templates/{id}/publishAPI Key
Template Management

Publish Template Draft

Promote a template draft revision (rowKind: DRAFT) to PUBLISHED, mark changesToPush: true, and enqueue background APNs and Google Wallet updates to all active passes.

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

Template UUID to publish.

Example: tpl_8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b

Request payload controlling immediate vs. scheduled publication and wallet push propagation.

Request Body4 optional
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: Template published 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

POSThttps://api.passinstance.com/api/v1/templates/{id}/copyAPI Key
Template Management

Duplicate Template

Create an unpublished draft copy of an existing pass template within your workspace, optionally overriding the template name, description, or currency code.

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

Source template UUID to duplicate.

Example: 8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b

Optional name, description, and ISO 4217 currency override for the duplicated template.

Request Body1 required • 2 optional
namestring
Required

Name for the new template copy.

Example: VIP Loyalty Card (2027 Edition)
Response Body Structure (JSON)5 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
descriptionstring
Required

Human-readable status description.

Example: Template successfully copied!
errorsarray
Required

List of error messages (empty array on success).

dataobject
Required

Primary resource or operation result payload.

statusCodenumber
Required

HTTP status code mirrored in the JSON envelope.

Example: 201

Response Status Codes

DELETEhttps://api.passinstance.com/api/v1/templates/{id}API Key
Template Management

Delete Template

Initiate asynchronous template deletion and wallet pass revocation across registered devices.

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

Template UUID to delete.

Example: 8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b
Response Body Structure (JSON)5 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
descriptionstring
Required

Human-readable status description.

Example: Template deletion initiated. Wallet revocation and pass cleanup in progress.
errorsarray
Required

List of error messages (empty array on success).

dataobject
Required

Primary resource or operation result payload.

statusCodenumber
Required

HTTP status code mirrored in the JSON envelope.

Example: 202

Response Status Codes

GEThttps://api.passinstance.com/api/v1/templates/{id}/deletion-statusAPI Key
Template Management

Get Template Deletion Status

Poll asynchronous template deletion progress (wallet revocation, pass soft-deletion, and retention phase) after calling DELETE /api/v1/templates/{id}.

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: tpl_8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b
Response Body Structure (JSON)5 required
successboolean
Required

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

dataobject
Required

Deletion lifecycle progress snapshot.

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

Template Notifications

3 endpoints
POSThttps://api.passinstance.com/api/v1/push-notifications/templates/{id}/sendAPI Key
Template Notifications

Schedule Push Notification

Broadcast an immediate lock-screen push notification across all active Apple Wallet and Google Wallet passes issued under a template.

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

Template UUID whose registered devices will receive the broadcast.

Example: tpl_8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b

Request payload containing pushNotificationText (max 85 chars) and optional header text.

Request Body1 required • 1 optional
pushNotificationTextstring
Required

Lock-screen notification message broadcast to active template passes (max 85 chars; supports placeholders).

Example: Flash Sale starts now! Show your VIP pass at checkout for 2x points.
Response Body Structure (JSON)1 required
(empty body)void (HTTP 204)
Required

Immediate template push notification broadcast queued.

Response Status Codes

GEThttps://api.passinstance.com/api/v1/templates/{id}/notificationAPI Key
Template Notifications

List Scheduled Notifications

List all pending scheduled push notifications and previously executed broadcast tasks for a pass template.

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

Template UUID.

Example: 8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b
Response Body Structure (JSON)5 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
descriptionstring
Required

Human-readable status description.

Example: Template notifications retrieved successfully
errorsarray
Required

List of error messages (empty array on success).

dataobject
Required

Primary resource or operation result payload.

statusCodenumber
Required

HTTP status code mirrored in the JSON envelope.

Example: 200

Response Status Codes

DELETEhttps://api.passinstance.com/api/v1/templates/notification/{notificationId}API Key
Template Notifications

Cancel Scheduled Notification

Cancel and delete a scheduled template push notification before it has been dispatched to passholders.

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
notificationIdstring (UUID)
Required

Scheduled notification UUID returned when listing or scheduling notifications.

Example: f1e2d3c4-b5a6-4987-8765-43210fedcba9
Response Body Structure (JSON)5 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
descriptionstring
Required

Human-readable status description.

Example: Notification deleted successfully
datanullnullable
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

Template Integrations

2 endpoints
POSThttps://api.passinstance.com/api/v1/integration-framework/embed-widgetsAPI Key
Template Integrations

Create Embed Integration (iFrame)

Create an embedded pass download widget (iFrame) bound to a template with strict origin allowlisting.

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

Configuration for the embedded download widget including templateId and allowed host domains.

Request Body3 required • 1 optional
namestring
Required

Display name for the embed widget integration.

Example: Checkout Loyalty Embed Widget
templateIdstring (UUID)
Required

Target pass template UUID.

Example: 8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b
allowedDomainsstring[]
Required

List of allowed origins permitted to embed the widget.

Example: ["shop.yourbrand.com", "app.yourbrand.com"]
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: 201

Response Status Codes

Objects & Data Structures

8 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.

Template

Object1464 properties

Write model accepted by POST, PUT and PATCH /templates. Reads return the same properties inside base, draft and effectiveDraft.

Object Properties6 required • 62 optional
namestring
Required

Template name.

descriptionstring
Required

Template description.

organizationNamestring
Required

Issuing organization shown on the pass.

kindstring (enum)
Required

Wallet pass kind.

Allowed values:boardingPassstoreCardcoupongenericposterGenericeventTicket
statusstring (enum)
Required

Template lifecycle status.

Allowed values:DRAFTPUBLISHEDARCHIVEDDEPRECATEDUNDER_REVIEWDELETING
preferredStyleSchemestring (enum)
Required

Preferred Apple Wallet style scheme.

Allowed values:posterGenericposterEventTicketbannerEventTicketsemanticBoardingPassDARK

TemplateVersionPair

Object4395 properties

Returned in data by GET /templates/{id}, separating the live production base from any unpublished draft.

Object Properties1 required • 2 optional
baseobjectSchema
Required

Published/production template revision.

draftobjectnullableSchema
Optional

Unpublished draft revision if pending edits exist.

effectiveDraftobjectnullableSchema
Optional

Merged effective view combining base and draft edits.

TemplateColors

Object9 properties

Colors of a template. Hex values only, e.g. #FFFFFF.

Object Properties9 optional
idstring
Optional

Identifier of the stored color settings.

labelColorstring (hex)#RRGGBB
Optional

Label color.

Example: #FFFFFF
labelColorDifferentForEachPassboolean
Optional

Allow each pass to override the label color.

foregroundColorstring (hex)#RRGGBB
Optional

Foreground color. Google Wallet chooses text color automatically.

Example: #000000
foregroundColorDifferentForEachPassboolean
Optional

Allow each pass to override the foreground color. Not supported by Google Wallet.

backgroundColorstring (hex)#RRGGBB
Optional

Background color.

Example: #FF0000
backgroundColorDifferentForEachPassboolean
Optional

Allow each pass to override the background color.

voidedBackgroundColorstring (hex)#RRGGBB
Optional

Background color used for voided passes.

Example: #CCCCCC
templateIdstring
Optional

Template these color settings belong to.

TemplateFields

Object155 properties

Field groups rendered on the pass. Every group contains PassField objects.

Object Properties1 required • 6 optional
primaryFieldsarray of objects
Required

Primary (most prominent) fields.

headerFieldsarray of objects
Optional

Fields in the pass header.

secondaryFieldsarray of objects
Optional

Secondary fields below the primary fields.

auxiliaryFieldsarray of objects
Optional

Auxiliary fields, optionally split in two rows.

backFieldsarray of objects
Optional

Fields on the back of the pass.

additionalInfoFieldsarray of objects
Optional

Additional information fields.

footerFieldsarray of objects
Optional

Fields in the pass footer.

TemplateImages

Object826 properties

Image slots of a template. Each slot is an image object.

Object Properties14 optional
logoobject
Optional

Logo shown on the pass.

primaryLogoobject
Optional

Primary logo variant.

backgroundobject
Optional

Background image.

thumbnailobject
Optional

Thumbnail image.

iconobject
Optional

Icon used in notifications and lock screen.

artworkobject
Optional

Hero artwork for poster and event passes.

posterobject
Optional

Event ticket poster (alias for artwork).

venueMapobject
Optional

Venue map image.

secondaryLogoobject
Optional

Secondary logo.

footerobject
Optional

Footer image.

googlePayLogoobject
Optional

Logo used by Google Wallet.

stripobject
Optional

Strip image behind the primary fields.

androidBackgroundobject
Optional

Google Wallet background override.

androidLogoobject
Optional

Google Wallet logo override.

PassMechanic

Object294 properties

Loyalty, stamp-card, prepaid or renewal behavior attached to a template.

Object Properties1 required • 27 optional
typestring (enum)
Required

Mechanic type.

Allowed values:LOYALTY_PROGRAMSTAMP_CARD_ADDSTAMP_CARD_DEDUCTVALID_ONCE_PER_DAYPREPAID_CARDRENEW_EXPIRATION