Lemon Squeezy License API
The License API API from Lemon Squeezy — 3 operation(s) for license api.
The License API API from Lemon Squeezy — 3 operation(s) for license api.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/lemon-squeezy-license-api-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Lemon Squeezy License API
description: The Lemon Squeezy API is a REST API based on the JSON:API specification. It exposes the resources of a Lemon Squeezy merchant-of-record account - stores, products, variants, prices, files, orders, order items, customers, subscriptions, subscription invoices, subscription items, usage records, license keys, license key instances, checkouts, discounts, discount redemptions, and webhooks. All requests use Bearer API key authentication and must send the Accept and Content-Type headers application/vnd.api+json.
termsOfService: https://www.lemonsqueezy.com/terms
contact:
name: Lemon Squeezy Support
url: https://docs.lemonsqueezy.com
version: v1
servers:
- url: https://api.lemonsqueezy.com/v1
security:
- api_key: []
tags:
- name: License API
paths:
/licenses/activate:
post:
operationId: activateLicenseKey
tags:
- License API
summary: Activate a license key
description: Public License API endpoint. Activates a license key and creates a new license key instance. Submitted as application/x-www-form-urlencoded with license_key and instance_name.
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
type: object
required:
- license_key
- instance_name
properties:
license_key:
type: string
instance_name:
type: string
responses:
'200':
description: License key activation result.
content:
application/json:
schema:
$ref: '#/components/schemas/LicenseApiResponse'
/licenses/validate:
post:
operationId: validateLicenseKey
tags:
- License API
summary: Validate a license key
description: Public License API endpoint. Validates a license key, optionally for a specific instance_id.
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
type: object
required:
- license_key
properties:
license_key:
type: string
instance_id:
type: string
responses:
'200':
description: License key validation result.
content:
application/json:
schema:
$ref: '#/components/schemas/LicenseApiResponse'
/licenses/deactivate:
post:
operationId: deactivateLicenseKey
tags:
- License API
summary: Deactivate a license key
description: Public License API endpoint. Deactivates a license key instance by license_key and instance_id.
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
type: object
required:
- license_key
- instance_id
properties:
license_key:
type: string
instance_id:
type: string
responses:
'200':
description: License key deactivation result.
content:
application/json:
schema:
$ref: '#/components/schemas/LicenseApiResponse'
components:
schemas:
LicenseApiResponse:
type: object
description: Response from the public License API endpoints.
properties:
activated:
type:
- boolean
- 'null'
valid:
type:
- boolean
- 'null'
deactivated:
type:
- boolean
- 'null'
error:
type:
- string
- 'null'
license_key:
type: object
additionalProperties: true
instance:
type:
- object
- 'null'
additionalProperties: true
meta:
type: object
additionalProperties: true
securitySchemes:
api_key:
type: http
scheme: bearer
bearerFormat: apiKey
description: Bearer authentication using a Lemon Squeezy API key. Requests must also send Accept and Content-Type headers of application/vnd.api+json.