E-commerce
Gumroad in your product and your AI agents, through one API
The Gumroad toolkit covers products and their categories, publishing, sales, membership subscribers and offer codes. Through Connect your product or AI agent calls them with one endpoint, while Connect stores and renews the credentials and logs every execution.
15 days to try it. No credit card.
POST https://connect.reportei.com/api/tools/gumroad_create_product/execute
Authorization: Bearer <merchant token>
x-customer-token: <customer token>
Content-Type: application/json
Accept: application/json
{
"customer_toolkit": "<connection UUID>",
"arguments": {
"name": "<name>",
"price": 1
}
}How it works
From a connected customer to the first Gumroad call.
- 1
Your customer connects the account
Your system opens a Connect session for the toolkit and your customer connects their Gumroad account. You get the connection id.
- 2
Your product calls the tool
A POST to /api/tools/{tool}/execute with the connection id and arguments. On success, Connect preserves the app's response status and body.
- 3
Connect handles the rest
It stores the credential encrypted, renews tokens for OAuth connections that support renewal and records executions in an audit trail available through the API.
Use cases
What your product does with Gumroad.
Publish products from your app
A creator tool creates a product as a draft, then publishes it once the account can sell, and unpublishes it to stop new sales.
Show sales and subscribers
A dashboard lists the account's sales with buyer, price and refund data, and the subscribers of a membership product with their status.
Launch a discount code
An AI agent creates an offer code, as a percentage or a fixed amount, for a product or for every product.
Tools
12 Gumroad tools
- List productsGETLists the products of the account, newest first, 10 per page, in a short form: Get product returns the whole product. When more follow, the response has next_page_key, which goes in page_key.
- Get productGETReturns a product with price, description, category, tags, variants, files and, with the view_sales scope, sales_count and sales_usd_cents.
- List categoriesGETLists the product categories of Gumroad. The path of a category, such as design/ui-and-web/figma, goes in category in Create product and Update product.
- Create productPOSTCreates a product and publishes it right away, unless draft is true. When publishing is blocked, for example by an unconfirmed email or a missing payout method, the product stays a draft and the response has a warning: publish it later with Publish product.
- Update productPUTChanges a product and returns it. Only the fields sent change, but tags replaces the whole list. A warning in the response reports offer codes that stopped being valid for the product.
- Publish productPUTPublishes a draft or unpublished product, so buyers can buy it. Refused while the account has no confirmed email or no payout method, or when an offer code of the product leaves the price invalid.
- Unpublish productPUTUnpublishes a product, which stops new sales. Publish product puts it back on sale.
- List salesGETLists the successful sales of the account, newest first, 10 per page, with buyer email, product, price, refund, subscription and license data. When more follow, the response has next_page_key, which goes in page_key.
- Get saleGETReturns a sale of the account: buyer, product, variants, price, refund and shipping status, subscription and license.
- List subscribersGETLists the subscribers of a membership product, with email, recurrence, status (alive, pending_cancellation, failed_payment, cancelled and others) and the ids of their sales. Without paginated, every subscriber comes in one response.
API key
Your customer pastes the app's key on a Connect screen, or your system sends the key with POST /api/customer-toolkits, with no screen.
OAuth with your product's app
You register your product's OAuth app once, with POST /api/merchants/credentials/gumroad, and your customer authorizes the account on a consent screen. Connect renews the token when it is about to expire.
Questions about the Gumroad toolkit
Do I need to build against the Gumroad API?
No. Connect ships 12 Gumroad tools, described and ready. Your customer connects the account and your system calls every tool through the same endpoint, with the same request format.
How does my customer connect their Gumroad account?
With the mode the toolkit accepts: API key, OAuth with your product's app. Connect stores the credential encrypted and never returns it to your system.
Does it work with AI agents?
Yes. Each tool's input is described in JSON Schema, which your agent uses directly as a tool definition. The agent picks the tool and the arguments, and your system makes the call to Connect.
Does my customer need a Reportei account?
No. Your customer connects the account on a Connect screen, or your system sends the credential through the API, and they keep using only your product.
See Connect applied to your product.
Try it for 15 days with no card, or walk our team through your use case.
