Workspace API

API overview

What the Zanfia Workspace API is, which surfaces exist, and how to make your first request.

4 min readLast updated Jul 9, 2026

The Zanfia API lets you read and manage everything in your workspace programmatically — products, offers and prices, course content, communities, pages, clients, orders, and stats. Everything the Zanfia CLI does goes through this same API, so anything you see the CLI do, you can do with plain HTTP.

Two API surfaces

SurfaceWhat it coversWho calls it
Workspace APIProducts, offers, order bumps, courses, media, pages, clients, orders, stats, discounts, community structure (channels & groups)You and your integrations, as the workspace owner or staff
Community APICommunity content — posts, comments, chat, support ticketsWorkspace staff, and community members acting on their own behalf

Both use the same bearer-token authentication and the same JSON conventions.

Base URLs

  • Workspace API: https://europe-central2-mailingr-54736.cloudfunctions.net/api-v1
  • Community API: https://europe-central2-mailingr-54736.cloudfunctions.net/api-community

Your first request

Create an API key in the dashboard (see Authentication and API keys), then:

curl "https://europe-central2-mailingr-54736.cloudfunctions.net/api-v1/products" \
  -H "Authorization: Bearer YOUR_API_KEY"

The workspace is resolved from the key — you never pass a workspace id.

Conventions

  • JSON in, JSON out. Send Content-Type: application/json on writes.
  • Errors return a non-2xx status with a JSON body carrying a machine-readable reason — for example 404 with { "error": "lesson-not-found" }, or 403 with a code like insufficient-scope.
  • Money is in minor units. 1999 means 19.99 in the given currency.
  • Lists paginate with cursors. List endpoints accept limit and cursor parameters and return the next cursor with the page.
  • Content is Markdown. Lesson bodies, posts, and comments are stored and returned as Markdown.

Was this article helpful?

Related articles

Spotted something off? Tell us at support@zanfia.com.