Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: WalletPassBuilder Events API
version: 1.0.0
description: 'Create, read, update, and archive Apple Wallet and Google Wallet passes,
check pass-credit balance, and send notifications.
An account can have several workspaces. Send a workspace''s id in the
`X-Workspace-Id` header to say which one a request is for; without it,
requests that create things use the account''s default workspace (chosen
in the dashboard under Settings > Workspace or API).
Full documentation with examples: https://walletpassbuilder.com/api-docs'
contact:
name: WalletPassBuilder Support
email: support@walletpassbuilder.com
url: https://walletpassbuilder.com/api-docs
servers:
- url: https://walletpassbuilder.com/api/v1
security:
- bearerAuth: []
tags:
- name: Events
paths:
/events:
post:
operationId: sendEvent
summary: Send a custom event
description: 'Sends a named custom event, matching it against every active automation listening for that event name and queuing a run for each. Purely a trigger: this returns as soon as matching automations are queued, not once they''ve finished running - check an automation''s Runs tab in the dashboard to see how each one went. With `X-Workspace-Id`, only automations in that workspace are matched; without it, automations in every workspace are.'
parameters:
- $ref: '#/components/parameters/WorkspaceId'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- name
properties:
name:
type: string
maxLength: 100
description: A caller-chosen event identifier, e.g. "order.shipped". Matched exactly against each automation's trigger.
data:
type: object
description: Any JSON payload. Automation conditions can read any field of it by dot-path, e.g. `event.data.tier`.
additionalProperties: true
responses:
'201':
description: Created
content:
application/json:
schema:
type: object
properties:
triggered:
type: integer
description: How many automation runs were queued.
runIds:
type: array
items:
type: string
'401':
$ref: '#/components/responses/Unauthorized'
'422':
$ref: '#/components/responses/InvalidRequest'
'429':
$ref: '#/components/responses/RateLimited'
tags:
- Events
components:
responses:
InvalidRequest:
description: The request body or a parameter is missing or malformed
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unauthorized:
description: Missing, invalid, or revoked API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
RateLimited:
description: Too many requests - see the Retry-After header
headers:
Retry-After:
schema:
type: integer
description: Seconds until the rate limit window resets.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
parameters:
WorkspaceId:
name: X-Workspace-Id
in: header
required: false
description: Which workspace this request is for. Find ids in the dashboard under API or Settings > Workspace. An id that isn't one of the account's workspaces returns `invalid_request`.
schema:
type: string
schemas:
Error:
type: object
properties:
error:
type: object
properties:
code:
type: string
enum:
- unauthorized
- invalid_request
- not_found
- credit_limit_exceeded
- rate_limited
- internal_error
message:
type: string
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: wpb_live_<key>
description: The account's API key (generate one at /api-keys), or an OAuth access token from an app the account connected, such as Zapier.