Presence API

Your platform. Connected to Presence.

Keep your checkout. Keep your customers. Let Presence handle the passes, check-ins, and everything in between.

Issue digital Wallet passes, verify arrivals from your own scanner, and sync attendance with your existing systems. One API. Built to work with yours.

Base URL
https://presencepass.com/v1
Authentication
Authorization: Bearer pk_live_...
Content type
application/json

Your API key

One key. The right permissions.

Create an API key in Dashboard → Settings → API. Choose the Ticketing preset to enable the permissions needed for issuing passes, recording arrivals, and reading attendance.

Your key is displayed once when created. Store it securely. Presence stores only its hash, so it cannot be retrieved later.

Your organisation. Automatically identified.

Every request is tied to the organisation that owns the key. There’s no need to provide an orgId. If you send one that doesn’t match, the request is rejected rather than quietly writing somewhere unexpected.

Issue a pass

A ticket sold. A pass ready.

Your checkout handles the purchase. Presence creates the pass.

One request generates a digital ticket with its own QR code, ready for Apple Wallet, Google Wallet, or a browser.

POST/v1/passes
FieldRequiredDescription
externalRefYesYour order ID. Also prevents duplicate passes.
nameYesPassholder's name, minimum two characters.
phonePhone or emailMobile number the pass can be delivered to.
emailPhone or emailEmail address the pass can be delivered to.
eventIdYesThe Presence event. Must belong to your key's organisation.
ticketTypeNoTicket tier on that event. Defaults to the first tier.
slotStartsAtBoth or neitherISO 8601. Session start, if you sell sessions rather than a door.
slotEndsAtBoth or neitherISO 8601. Session end. A start without an end is rejected.

Selling sessions, not just a day.

Without a slot a pass is valid for the whole event day. A studio selling a 14:00 and a 17:00 session on one Saturday would get two passes the door cannot tell apart. Send both ends and the door asks about the session instead of the day: it opens thirty minutes early, closes when the session ends, and the pass itself reads Session 14:00-16:00 in the wallet.

Both ends or neither. A start on its own cannot say when the pass stops working, and every guess at the other half is wrong somewhere, so it is a 400 rather than a pass that silently covers the day.

Example request

curl -X POST https://presencepass.com/v1/passes \
  -H "Authorization: Bearer $PRESENCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "externalRef": "ord_8812",
    "name": "Ama Mensah",
    "phone": "+233200000000",
    "eventId": "evt_open_studio",
    "slotStartsAt": "2026-11-07T14:00:00Z",
    "slotEndsAt":   "2026-11-07T16:00:00Z"
  }'

Example response

{
  "ok": true,
  "repeated": false,
  "passId": "tkt_a1b2c3d4e",
  "externalRef": "ord_8812",
  "code": "OPEN-4417",
  "slot": {
    "startsAt": "2026-11-07T14:00:00.000Z",
    "endsAt":   "2026-11-07T16:00:00.000Z"
  },
  "passUrl": "https://presencepass.com/t/tkt_a1b2c3d4e",
  "wallet": {
    "apple":  "https://presencepass.com/ticket/tkt_a1b2c3d4e/pass",
    "google": "https://presencepass.com/wallet/google/ticket/tkt_a1b2c3d4e"
  }
}

The slot is echoed back so you can see the booking landed on the pass rather than assuming it. Send passUrl to the holder; the two wallet links are the Add to Wallet buttons.

No duplicate tickets. No unnecessary complications.

Retry without creating duplicates. The same externalRef returns the original pass with repeated: true, so a timeout you retry cannot double-issue. A request that arrives while the first is still processing returns a 409 in_progress. Wait a moment and retry.

Record an arrival

Your scanner. Our check-in engine.

Build your own check-in experience while Presence handles validation, attendance, and duplicate detection.

The same rules apply whether someone scans through your system or the Presence scanner, so both views of “used” always agree.

POST/v1/checkins
FieldRequiredDescription
passIdOne ofUnique pass identifier.
codeOne ofShort code printed beneath the QR. Resolved within your organisation only.
atNoArrival time in ISO 8601. Defaults to now.
gateNoEntrance name, up to 60 characters.

Example request

curl -X POST https://presencepass.com/v1/checkins \
  -H "Authorization: Bearer $PRESENCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "passId": "tkt_a1b2c3d4e",
    "gate": "Front desk"
  }'

Every scan gets a clear answer.

ResponseHTTPMeaning
admitted200Check-in successful. Returns checkinId.
duplicate200Already admitted today. firstSeenAt shows when.
wrong_time409A session pass outside its window: too early, or the session has finished.
wrong_day409A multi-day pass on a day it does not cover.
pass_revoked409Refunded or cancelled.
refused409Expired, or not valid for this event.
pass_not_found404Pass not found in your organisation.

People scan twice. Presence returns duplicate with a successful HTTP response, so your system can show a clear confirmation rather than an alarming error. A door that reports a failure for the second scan teaches staff to ignore the screen.

A refusal is a 409 with its own code, not one word for everything. Your front desk needs to tell “this booking is not now” from “this pass is no good”, because the first has an answer they can give the customer.

Read attendance

Every arrival. Accounted for.

Retrieve event attendees, reconcile ticket sales, and recover information if a webhook was missed.

GET/v1/events/{eventId}/attendees

Requires view permission on services, so a reporting job does not need a key that can issue.

ParameterDefaultDescription
limit100Results per page, maximum 500.
cursorNoneContinue from the previous page.
checkedInNoneSet true to return arrivals only.

Example response

{
  "ok": true,
  "attendees": [
    {
      "passId": "tkt_a1b2c3d4e",
      "externalRef": "ord_8812",
      "name": "Ama Mensah",
      "code": "OPEN-4417",
      "slot": {
        "startsAt": "2026-11-07T14:00:00.000Z",
        "endsAt":   "2026-11-07T16:00:00.000Z"
      },
      "checkedInAt": "2026-11-07T13:58:12.000Z"
    }
  ],
  "nextCursor": null
}

The slot reflects the booking times supplied when the pass was created, andnull for a pass that covers the whole event, which is the common case.

Use slot.startsAt to group attendees by session. There is no filter for it: read the page and group your side. Continue requesting pages untilnextCursor is null.

Members

Your people. Beyond the event.

Tickets are temporary. Membership is ongoing.

Retrieve your organisation’s member records, visit counts, and active status without exposing private contact information.

GET/v1/members

Requires view permission on members.

ParameterDefaultDescription
limit100Results per page, maximum 500.
cursorNoneContinue from the previous page.
visitorNoneFilter guests or members using true or false.

Example response

{
  "ok": true,
  "members": [
    {
      "memberId": "mem_7f3a91c2",
      "name": "Abena Sarpong",
      "memberCode": "GC-7788",
      "visits": 31,
      "visitor": false,
      "active": true,
      "joinedAt": "2026-02-14T09:12:00.000Z"
    }
  ],
  "nextCursor": null
}

Only the data you need.

visits represents lifetime check-ins, not attendance during a specific period. A per-period count is a different question against the check-in records, and this endpoint would have had to sweep them per member to answer it.

active reflects whether the pass is enabled under the organisation’s check-in rules, including renewable guest passes. A lapsed guest still reads as active, because the door renews them.

Phone numbers, email addresses, and pass access tokens are never returned. Your integration receives the identifiers it needs, without unnecessary exposure of personal data. memberCode is what somebody at a desk actually has, and it is what to match a person on. The pass token opens the pass, so whoever holds it holds the pass.

Webhooks

Stay in sync. Automatically.

Presence sends signed events to your server whenever a pass is issued, someone checks in, or a pass is revoked. Set a URL against your key in Settings, API. Three events fire today.

EventWhen
pass.issuedA pass exists for one of your events: you issued it through this API, or somebody registered or bought a ticket through Presence. One per pass, so a four-seat order fires four.
checkin.createdSomebody was admitted, at your door or at one of ours.
pass.revokedA pass stopped admitting anyone: refunded, charged back, or cancelled by the organiser. One per pass.

Example event

POST your-url
Presence-Signature: t=1793577600,v1=4a9f...c21
User-Agent: Presence-Webhooks/1

{
  "id": "evt_9f2c1a77b4e30d58",
  "type": "checkin.created",
  "createdAt": "2026-11-07T13:58:12.000Z",
  "orgId": "org_studio",
  "data": {
    "checkinId": "chk_7k2m9x4p",
    "passId": "tkt_a1b2c3d4e",
    "externalRef": "ord_8812",
    "name": "Ama Mensah",
    "gate": "Front desk",
    "at": "2026-11-07T13:58:12.000Z"
  }
}

externalRef is yours, or it is null. It carries the externalRef you sent to POST /v1/passes, and nothing else. For a pass bought through Presence there is no order on your platform to point at, so it returns null rather than a payment reference you would not find. Use externalRef when available, and passId otherwise. The same rule applies to issuance and revocation events, which is what lets you pair them.

Know why a pass was revoked.

A pass.revoked event includes a reason:

  • refundedPayment refunded.
  • disputedPayment charged back.
  • cancelledOrganiser cancelled the pass, which moves no money.

Treat any unfamiliar reason as a valid revocation. New reasons may be introduced without changing the underlying rule, and the pass is dead either way. Fired once per pass, not once per retry of the payment provider’s own webhook.

Example revocation

{
  "id": "evt_31c7a0e95fb2648d",
  "type": "pass.revoked",
  "createdAt": "2026-11-07T16:04:50.000Z",
  "orgId": "org_studio",
  "data": {
    "passId": "tkt_a1b2c3d4e",
    "externalRef": "ord_8812",
    "name": "Ama Mensah",
    "code": "OS-4417",
    "eventId": "evt_open_studio",
    "reason": "refunded"
  }
}

Verify every event.

Every webhook is signed using HMAC-SHA256.

Verify the signature against the raw request body and timestamp using your signing secret. Re-serialise the body first and you get a different byte string and a signature that never matches. Compare signatures in constant time.

Signature verification

const [timestamp, ...signatures] = header.split(",");
const ts = timestamp.slice(2);

const expected = crypto
  .createHmac("sha256", secret)
  .update(`${ts}.${rawBody}`, "utf8")
  .digest("hex");

const valid = signatures.some((signature) =>
  timingSafeEqualHex(signature.slice(3), expected)
);

During secret rotation, Presence sends two v1 signatures. Accept either until the rotation window ends. A straight swap would fail every delivery between our rotation and your deploy.

Even when things go wrong.

Any 2xx response confirms delivery, not 200 alone: if you answer 202 we will not retry something you have already acted on. Requests time out after 10 seconds.

Failed deliveries retry after 1 minute, 5 minutes, 30 minutes, 2 hours, and 6 hours, with delivery attempts ending after 24 hours.

Every event retains the same id across retries. Store it to prevent duplicate processing.

Errors

Predictable responses. Easier debugging.

Every endpoint returns errors in the same format, so a client has one thing to handle.

{
  "ok": false,
  "code": "bad_field",
  "message": "slotEndsAt must be after slotStartsAt"
}
CodeHTTPMeaning
bad_key401Missing, invalid, or revoked API key. Also what you get for pointing dashboard credentials here.
scope_denied403Insufficient permissions.
missing_field400Required information is missing.
bad_field400Invalid field value, such as an unreadable date.
event_not_found404Event not found or inaccessible. The same answer either way, so an id cannot be confirmed by guessing.
pass_not_found404Pass not found in your organisation.
in_progress409Pass issuance already underway.
rate_limited429Request limit reached. Retry-After says how long.
server_error500Server error. Safe to retry.

Use code for application logic. The human-readable message is written for a person and may change.

Rate limits

Built for the busiest arrivals.

Each API key supports a baseline of 120 requests per minute, with burst capacity of 600 requests, so a door opening at nine is not throttled for arriving all at once.

Rate limits are applied after authentication, independently for each key, so an unauthenticated flood cannot lock out the organisation whose key it guessed at.

X-RateLimit-Limit: 120
X-RateLimit-Remaining: 118
X-RateLimit-Reset: 41
Retry-After: 7

Retry-After is included with 429 responses.

Rate limiting currently operates per server instance. Across multiple instances, effective capacity may exceed the documented baseline. Build against the published limit rather than assuming higher capacity.

Get started

Built for what you’re already building.

No need to replace your checkout, rebuild your ticketing system, or change how your customers buy. Just connect Presence.

Create your API key under Settings → API, select the Ticketing preset, and you’re ready to begin.

Still exploring? Tell us what you’re building. We’ll help you understand whether Presence is the right fit.