API v1

The Fungies REST API, version 1: one key per workspace and mode, JSON in and out, and an error page for every code.

API v1 lets your server manage your catalogue, read orders, customers and subscriptions, charge subscriptions off-session, report usage and manage webhook endpoints.

https://api.fungies.io/v1

Every request sends a v1 API key as Authorization: Bearer <key>. The key sets the workspace and whether the request acts in test or live mode, so no call takes a workspace or mode parameter.

curl https://api.fungies.io/v1/whoami \
  -H "Authorization: Bearer $FUNGIES_API_KEY"

GET /v1/whoami answers which workspace and mode the key acts in and which scopes it holds. Call it first when you wire up a new key.

Read once

The endpoints

The reference in the sidebar has one page per call, generated from the same contract the API answers from. Each page names the scope it needs and lets you send a request. The whole description is at /api/openapi.json (OpenAPI 3.1).

Coming from v0

v0 keeps working. A v0 key does not work on v1, and a v1 key does not work on v0. v1 calls use the resource path itself (PATCH /v1/discounts/{discountId}, not .../update), lists use cursors, and errors are application/problem+json.

Last updated