Download
Collection
All endpoints, example bodies, and scripts.
Staging environment
Points at
api.staging.maple.inc; use your mpk_test_… key.Production environment
Points at
api.maple.inc; use your mpk_live_… key.Get set up
Import the collection and an environment
In Postman, Import the collection file, then import the Staging (or Production) environment file. Select that environment in the top-right environment selector.
Add your API key
Open the environment and paste your key into
apiKey — mpk_test_… for staging, mpk_live_… for production. That’s the only value you need to set for API-key auth.Requests send
Authorization: Bearer {{bearerToken}}. When bearerToken is empty it automatically falls back to your apiKey, so setting apiKey is enough.Confirm the credential
Run Status & Auth → Current app (/me). A
200 with your app name, environment, and scopes means you’re ready.What the scripts do
- Auth fallback — a collection pre-request uses your
apiKeyas the bearer token unless an explicitbearerTokenis set. - Id chaining — list requests save the first returned id (
locationId,orderId,subscriptionId,eventId) to the environment for the requests that need it. - Webhook secret capture — Create webhook subscription stores the one-time
signing_secretintosigningSecret(store it securely; it’s shown only once). - OAuth (optional) — the OAuth folder exchanges client credentials for an access token and switches
bearerTokento it automatically. It also includes a PKCE generator and the authorization-code exchange. ClearbearerTokento switch back to your API key.