The Marlin REST API gives you programmatic access to every resource in your merchant account — invoices, subscription plans, subscriptions, and customers. All requests go over HTTPS and return JSON. The API is versioned; the current version is v1, reflected in the base URL below.Documentation Index
Fetch the complete documentation index at: https://yanhgming.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
Authentication
Every request to the Marlin API must include a secret API key in theAuthorization header. You create and manage API keys from the Settings → API Keys endpoints or from the dashboard.
Versioning
The current API version is v1. Breaking changes will be introduced on a new version with a deprecation period for the previous one. Non-breaking additions — new optional fields, new endpoints — may be made to the current version at any time.Pagination
All list endpoints use cursor-based pagination. Passcursor as a query parameter to fetch the next page; the value comes from nextCursor in the previous response. When nextCursor is null, you have reached the last page.
Opaque cursor returned by the previous page. Omit to fetch the first page.
Maximum number of objects to return. Accepted range varies by endpoint.
TypeScript SDK
Rate limits
The API enforces per-key rate limits. When you exceed the limit, the API responds with429 Too Many Requests. Three response headers communicate your current quota on every request:
| Header | Description |
|---|---|
X-RateLimit-Limit | Total requests allowed in the current window |
X-RateLimit-Remaining | Requests remaining before you are throttled |
X-RateLimit-Reset | Unix timestamp (seconds) when the window resets |
X-RateLimit-Reset before retrying.
Resources
Use the links below to jump to the reference page for each resource group.Invoices
Create, list, retrieve, and void stablecoin invoices.
Plans
Manage subscription plans that customers can subscribe to.
Subscriptions
Pause, resume, and cancel customer subscriptions.
Customers
Create and manage the customer records attached to your account.
Settings
Manage API keys and configure your webhook endpoint.
Errors
Understand error codes, HTTP status codes, and SDK exceptions.