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/v1Every 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
Authentication
v1 keys, test and live mode, and the scope each call needs.
Conventions
Lists and cursors, retries with Idempotency-Key, safe updates, rate limits and versions.
Errors
The error body, and a page for every error code with its cause and fix.
MCP server
Let an AI assistant read your workspace with a test-mode key.
Receiving webhooks
Delivery, signatures, retries and versions of webhook events.
Webhook events
Every event type and the shape of its payload.
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