PERS-api Documentation (2.0.62)
PERS API Documentation
This RESTful API enables seamless integration of Web3 loyalty, token management, and engagement features into your applications.
Usage Guidelines:
- RESTful Design: Resources are accessed via standard HTTP methods (GET, POST, PUT, DELETE) with predictable, resource-oriented URLs.
- Authentication: Secure access is enforced via Bearer Tokens (JWT) and Project Keys (defining the Tenant context).
- Data Format: All requests and responses utilize standard JSON formatting.
Explore the modules below for detailed endpoint specifications, schemas, and testing capabilities.
All API errors follow RFC 7807 (Problem Details for HTTP APIs) with a StructuredError schema. See the Schemas section below for the full structure.
| Header | Required | Purpose |
|---|---|---|
x-project-key | per endpoint | Project API key; identifies the tenant when the request carries no JWT (a JWT's tenant always takes precedence). Admins of several tenants send it to pick one. |
Authorization | per endpoint | JWT for user, business, admin or system access, sent as Bearer <token> or, for DPoP-bound tokens, DPoP <token>. |
dpop | per endpoint | DPoP proof (RFC 9449). Optional when signing in, where it binds the issued token to your key; required on every request made with such a DPoP-bound token. |
x-correlation-id | no | Correlation ID for request tracing; generated when absent and returned in the X-Correlation-ID response header. |
x-sdk-version | no | SDK name and version; sent automatically by the PERS SDKs and logged for diagnostics. |
x-request-id | no | Used as the correlation ID when x-correlation-id is absent. |
x-source-channel | no | Analytics attribution: how the request arrived (web, mobile, api, admin, system, import, webhook); detected from the User-Agent and path when absent or invalid. |
x-source-medium | no | Analytics attribution: marketing channel type (email, referral, direct, organic, paid). |
x-source-campaign | no | Analytics attribution: free-text marketing campaign identifier (e.g. summer_promo_2026), not a PERS campaign ID. |
x-source | no | Analytics attribution: traffic origin reference (e.g. google, partner_xyz, qr_code_lobby); detected from Referer when absent. |
x-platform | no | Client platform as a JSON string (os, osVersion, browser, app, ...); takes precedence over User-Agent parsing. |
x-locale | no | Opt-in content locale for GET/HEAD requests (BCP 47, e.g. de, de-AT); ignored on writes. See the parameter on each endpoint it applies to. |
Download OpenAPI description
Languages
Servers
Mock server
https://docs.pers.ninja/_mock/swagger
https://api.pers.ninja/v2