BagsBags Docs

API Reference

Complete API reference for the Bags Merchant of Record platform, auto-generated from our OpenAPI specification.

Complete endpoint documentation for the Bags API. All endpoints are available at https://www.getbags.app.

Coming soon in the product: Subscriptions API, self-serve refunds via API key, and card payment flows. Endpoints may exist in the OpenAPI spec for early access — check each tag page for live vs waitlist notes.

Authentication

Bags uses Bearer token authentication. Include your API key in the Authorization header:

Authorization: Bearer bag_test_sk_your_key_here

There are two types of API keys:

Key typePrefixEnvironment
Testbag_test_sk_*Sandbox (no real money)
Livebag_live_sk_*Production

Some routes (webhook endpoint listing, refund initiation from the dashboard) require dashboard session auth, not an API key. Guides call these out explicitly.

Endpoints

On this page