API console

Your API application

Create one in the dashboard under Integrations, API applications.

Sign in to pick from your organisations' applications, or enter a client id and secret below.

Shown once, when the application was created or its secret rotated. Held in this page only.

Scopes to ask for

Tick none for every scope the application has.

Leave empty to send the request as your server would. A browser application only accepts requests from its allowed origins, so pick one of them.

No token yet.

POST /api/v1/programme_memberships/{external_ref}/events

Send points and tiers

Loyalty Server-only applications Scopes: write Read the docs

Path

Your own reference for the member (external_member_ref), or, before you've confirmed the enrolment, Subcontext's membership id.

Ctrl + Enter sends too

Response

Send a request to see its response here.

Code

curl

The code reads your token from the SUBCONTEXT_TOKEN environment variable.