API v1 Introduction
The Lifepeaks v1 API provides gift-card issuance, redemption, event reporting, and subscriber access over HTTP. Requests use OAuth2 authentication, and responses are JSON.
Endpoint groups
Every v1 endpoint is listed below. The complete request and response shapes are described in the v1 API reference, generated from the v1 OpenAPI specification.
| Group | Endpoints |
|---|---|
| Authorization | POST /token, POST /oauth2/revoke |
| Actions | GET /action/ping, POST /action/list, POST /action/analytics, POST /action/claimed-items, GET /action/subscribers |
| Item | GET /item/{code}, POST /item/{code}/resend, POST /item/{code}/claim, POST /item/{code}/refund, POST /item/{code}/cancel, POST /item/{code}/activate, POST /action/create-gc |
| Order | POST /order/{order_id}/claim, POST /order/{order_id}/capture |
| Events | POST /event/list, POST /event/{slug}/participants |
| Lists | GET /list/gc-value-modifications |
Alongside these, /authorize, /login and /logout serve the browser-based authorization code flow — see Request authorization.
Scopes and user rights
Access is controlled by two independent things: the scope attached to the OAuth2 client, and the user right of the API user the token belongs to.
| Scope | What it permits |
|---|---|
admin | Every endpoint. |
zapier | GET /action/subscribers. |
Most endpoints require the admin scope. GET /action/subscribers performs no scope check at all — any authenticated token reaches it, and the company is taken from the token holder. Claim, refund and event endpoints additionally reject users whose user right is agency_user.
Where to go next
- Request authorization — obtaining an OAuth2 access token
- Authorization via curl — password grant example
- API info — base URLs, support contact, and terms of service
- Data — encoding, dates, languages, and request GUIDs
- Testing — developer and demo environments
- FAQ — token lifetimes and common errors
- v1 API reference — the full OpenAPI specification