Skip to main content
The Pocketsflow HTTP API lets you manage products, orders, customers, subscriptions, discounts, refunds, checkout sessions, webhooks, and more from your own systems.

Open the interactive API reference

Browse every endpoint, see request/response schemas, and try calls live at api.pocketsflow.com/docs.
The raw OpenAPI specification is available at https://api.pocketsflow.com/docs.json — use it to generate clients or import the API into Postman/Insomnia.

Base URL

All API requests are made to:
https://api.pocketsflow.com

Authentication

The API uses API keys. Create one in the dashboard under Developers → API keys, then send it as a Bearer token on every request:
curl https://api.pocketsflow.com/users/me \
  -H "Authorization: Bearer pk_live_xxxxxxxxxxxxxxxxxxxxxxxx"
PrefixUse
pk_live_…Live mode — real products, customers, and payments.
pk_test_…Test mode — sandbox data for development.
Treat secret API keys like passwords. Never expose them in client-side code, public repositories, or URLs. Rotate a key immediately if it leaks.

What you can do

Products

Create, list, update, and delete products and variants.

Checkout

Create hosted checkout sessions and redirect buyers to pay.

Orders & customers

Read orders, customers, and subscriptions; issue refunds.

Affiliates

Manage affiliates and read referral stats, earnings history, and payouts.

Webhooks

Register endpoints and react to events in real time.

Building an integration?

If you’re connecting Pocketsflow to an external store or platform (for example, WooCommerce), start with the Integrations section — it walks through the end-to-end pattern with code examples.