Skip to main content

Retrieve Pass Books (Digital Membership Cards)

List pass books with their status and download links, filter them, and follow pagination headers.

A pass book is a member's pass in Cuseum, with its current status and download links. Use this operation to read pass books together with the member they belong to.

The Request

GET https://app.cuseum.com/api/v5/pass_books

  • Authenticate with a Bearer token that includes the read_pass_books scope.

  • Returns up to 25 pass books per page. Each item includes the associated external user and pass URLs.

  • There is no request body. Filters and pagination are URL parameters.

Filters and Pagination

Filters use the Ransack query format:

Parameter

Description

Example

page

Page number to retrieve.

2

f[status_eq]

Exact pass-book status.

installed

f[updated_at_eq]

Exact updated_at value.

2026-05-15T00:00:00Z

f[updated_at_gteq]

Updated at or after this time.

2026-05-15T00:00:00Z

f[updated_at_lteq]

Updated at or before this time.

2026-05-15T23:59:59Z

f[created_at_eq]

Exact created_at value.

2026-05-15T00:00:00Z

f[created_at_gteq]

Created at or after this time.

2026-05-15T00:00:00Z

f[created_at_lteq]

Created at or before this time.

2026-05-15T23:59:59Z

f[external_user_external_id_eq]

Pass books of the member with this external_id.

member-12345

Pass-Book Statuses

  • sent

  • not_installed

  • installed

  • uninstalled

cURL Example

Installed pass books updated on or after a date:

curl --request GET \
  'https://app.cuseum.com/api/v5/pass_books?page=1&f%5Bstatus_eq%5D=installed&f%5Bupdated_at_gteq%5D=2026-05-15T00%3A00%3A00Z' \
  --header 'Authorization: Bearer <access-token>'

Pagination Headers

Pagination details come in response headers, not in the JSON body:

Header

Description

X-Total

Total number of matching records.

X-Total-Pages

Total number of pages.

X-Per-Page

Records per page (currently up to 25).

X-Page

Current page number.

X-Next-Page

Next page number, when one exists.

X-Prev-Page

Previous page number, when one exists.

X-Offset

Offset supplied to the request, if any.

Keep requesting pages until X-Next-Page is empty.

The Response

[
  {
    "id": 123456,
    "status": "installed",
    "provider": "pass_manager",
    "external_user": { "id": 654321, "external_id": "member-12345", "name": "Example Member", "email_address": "[email protected]", "membership_level": "General", "expires_at": "2027-01-01" },
    "public_url": "https://app.cuseum.com/p/<public-id>",
    "preview_url": "https://pm.cuseum.co/passes/<preview-token>/embed",
    "download_url": "https://pm.cuseum.co/passes/<download-token>",
    "download_url_google": "https://pm.cuseum.co/passes/<download-token>/google",
    "download_url_apple": "https://pm.cuseum.co/passes/<download-token>/apple",
    "download_url_pdf": "https://pm.cuseum.co/passes/<download-token>/download_pdf.pdf",
    "created_at": "2026-05-15T12:00:00.000Z",
    "updated_at": "2026-05-15T12:30:00.000Z"
  }
]

The example is shortened; the nested external_user object has the same fields as in List Members.

Field Reference

Field

Description

id

Cuseum pass-book ID.

status

Current pass-book status.

provider

Pass provider, such as pass_manager.

external_user

The member the pass book belongs to.

public_url

Public Cuseum URL for the pass book.

preview_url

Preview URL.

download_url

General download URL.

download_url_google

Google Wallet download URL.

download_url_apple

Apple Wallet download URL.

download_url_pdf

PDF download URL.

created_at

ISO 8601 creation time.

updated_at

ISO 8601 last update time.

Security note: pass URLs are sensitive. Do not copy them into logs or shared documents.

Did this answer your question?