Skip to content

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.


Error Handling

All API errors follow RFC 7807 (Problem Details for HTTP APIs) with a StructuredError schema. See the Schemas section below for the full structure.


Request Headers

HeaderRequiredPurpose
x-project-keyper endpointProject 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.
Authorizationper endpointJWT for user, business, admin or system access, sent as Bearer <token> or, for DPoP-bound tokens, DPoP <token>.
dpopper endpointDPoP 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-idnoCorrelation ID for request tracing; generated when absent and returned in the X-Correlation-ID response header.
x-sdk-versionnoSDK name and version; sent automatically by the PERS SDKs and logged for diagnostics.
x-request-idnoUsed as the correlation ID when x-correlation-id is absent.
x-source-channelnoAnalytics 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-mediumnoAnalytics attribution: marketing channel type (email, referral, direct, organic, paid).
x-source-campaignnoAnalytics attribution: free-text marketing campaign identifier (e.g. summer_promo_2026), not a PERS campaign ID.
x-sourcenoAnalytics attribution: traffic origin reference (e.g. google, partner_xyz, qr_code_lobby); detected from Referer when absent.
x-platformnoClient platform as a JSON string (os, osVersion, browser, app, ...); takes precedence over User-Agent parsing.
x-localenoOpt-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