OpenAPI Specification
Servers
List all contracts
Retrieves all contracts for the current user. Includes subscription plans and one-time purchases with active entitlements.
Authorizations
Responses
A list of the user's contracts
Get a contract by ID
Retrieves a specific contract by its unique identifier.
Authorizations
Parameters
Path Parameters
The unique identifier of the contract
"1d78271264b9c76d5842911dd70b4353"Responses
The requested contract
Cancel a contract
Cancels a specific contract. For subscriptions, this typically means they will not renew at the end of the current billing period.
Authorizations
Parameters
Path Parameters
The unique identifier of the contract
"1d78271264b9c76d5842911dd70b4353"Responses
Contract cancelled successfully
Create an amendment
Creates a new amendment for a contract, such as applying a discount code.
Authorizations
Parameters
Path Parameters
The unique identifier of the contract
"1d78271264b9c76d5842911dd70b4353"Request Body
Responses
The created amendment
Confirm an amendment
Confirms a pending amendment for a contract.
Authorizations
Parameters
Path Parameters
The unique identifier of the contract
"1d78271264b9c76d5842911dd70b4353"The unique identifier of the amendment
"amendment123"Responses
Amendment confirmed successfully
List all bills
Retrieves all bills for the current user, excluding draft and expired bills. Results are sorted by creation date (newest first).
Authorizations
Responses
A list of the user's bills
Get a bill by ID
Retrieves a specific bill by its unique identifier.
Authorizations
Parameters
Path Parameters
The unique identifier of the bill
"1d78271264b9c76d5842911dd70b4353"Responses
The requested bill
List all entitlements
Retrieves all entitlements for the current user with optional filtering by type, SKU, or purchase option ID.
Authorizations
Parameters
Query Parameters
"article""audiobook""ebook""bundle""podcast""pass""publication""physical_issue""article""premium-article-123""one-time"If specified the api will wait until an entitlement after this timestamp is available before it returns
"2023-01-01T00:00:00Z"Responses
A list of the user's entitlements
Get an entitlement by ID
Retrieves a specific entitlement by its unique identifier.
Authorizations
Parameters
Path Parameters
The unique identifier of the entitlement
"1d78271264b9c76d5842911dd70b4353"Responses
The requested entitlement
Get access information for an entitlement
Retrieves access information (URL and token) for a specific entitlement. The access type (URL or RSS) is determined based on the entitlement type.
Authorizations
Parameters
Path Parameters
The unique identifier of the entitlement
"1d78271264b9c76d5842911dd70b4353"Responses
Access information for the entitlement
List transactions
Retrieves all transactions for the current user, with optional filtering by search query.
Authorizations
Parameters
Query Parameters
"premium"Responses
A list of the user's transactions
List subscriptions
Retrieves all subscriptions for the current user. This includes both active and canceled subscriptions.
Authorizations
Responses
A list of the user's subscriptions
Get a subscription by ID
Retrieves a specific subscription by its unique identifier.
Authorizations
Parameters
Path Parameters
The unique identifier of the subscription
"1d78271264b9c76d5842911dd70b4353"Responses
The requested subscription
Get all user metadata
Set user metadata value
Sets a metadata value for the current user with the specified key.
Authorizations
Parameters
Path Parameters
The key of the metadata entry
"preferences"Request Body
Responses
Metadata value set successfully
Delete user metadata value
Deletes a metadata value for the current user with the specified key.
Authorizations
Parameters
Path Parameters
The key of the metadata entry
"preferences"Responses
Metadata value deleted successfully
List all tallies
Retrieve all tallies for the authenticated user.
Authorizations
Responses
A record of tallies where keys are tally IDs and values are the tally values
Get a tally by ID
Retrieve a specific tally by its ID for the authenticated user.
Authorizations
Parameters
Path Parameters
"test"Responses
The tally value for the specified ID
Update a tally
Set a tally to a new value for the authenticated user.
Authorizations
Parameters
Path Parameters
"test"Request Body
Responses
The updated tally object
Push value to tally
Add a new value to an existing tally list for the authenticated user.
Authorizations
Parameters
Path Parameters
"test"Request Body
Responses
The updated tally value after pushing the new value
List fulfillments
Retrieves all fulfillments for a specific SKU. Useful for tracking delivery status of physical items.
Authorizations
Parameters
Query Parameters
"magazine-april-2023"Responses
A list of user's fulfillments for the requested SKU
Request delivery for a fulfillment item
Request a new delivery for a specific fulfillment item by ID and SKU.
Authorizations
Parameters
Path Parameters
The fulfillment item ID
"item123"Request Body
Responses
Delivery request result
List user tags
Add a tag
Delete a tag
Remove a tag from the authenticated user.
Authorizations
Parameters
Path Parameters
"premium"Responses
Confirmation that the tag was deleted
Get user profile
Retrieves the authenticated user's profile information.
Authorizations
Responses
The user's profile information
Delete own profile
Allows the authenticated user to delete their own account. This action is irreversible.
Authorizations
Responses
Profile deleted successfully
Update user profile
Updates the authenticated user's profile information with the provided data.
Authorizations
Request Body
Responses
The updated user profile
Check Spotify link status
Unlink Spotify account
Unlinks the user's connected Spotify account from their profile.
Authorizations
Responses
Spotify account unlinked successfully
Get a product by SKU
Retrieves a specific product by its unique SKU identifier.
Authorizations
Parameters
Path Parameters
The unique stock keeping unit (SKU) identifier of the product
"sid:PRVc_h8FIgR2ntoZh9SNu"Responses
The requested product
Auto-onboard a product
Triggers the auto-onboarding process for a product. This typically grants additional entitlements based on external systems when supported by the product.
Authorizations
Parameters
Path Parameters
The unique stock keeping unit (SKU) identifier of the product
"sid:PRVc_h8FIgR2ntoZh9SNu"Responses
The entitlements returned from the auto-onboard process
List payment issues
Retrieves all payment issues for the current user. This includes overdue payments and expired payment methods.
Authorizations
Responses
A list of the user's payment issues
Proxy content
Proxies content from supported providers, optionally extracting specific elements.
Authorizations
Parameters
Query Parameters
"https://www.example.com/article"".article-content""true"Responses
The unlocked content
Create a checkout
Creates a new checkout session with the specified items and settings.
Authorizations
Request Body
Responses
The created checkout session
Get a checkout by ID
Retrieves a specific checkout session by its ID.
Authorizations
Parameters
Path Parameters
The unique identifier of the checkout
"checkout123"Responses
The requested checkout session
Update a checkout
Updates an existing checkout session with new customer information or payment method.
Authorizations
Parameters
Path Parameters
The unique identifier of the checkout
"checkout123"Request Body
Responses
The updated checkout session
Get vendor settings
Retrieves the current vendor settings and configuration.
Authorizations
Responses
The vendor settings and configuration
List linked vendors
Get the vendors a user with matching email is linked to. This endpoint is not available for publisher tokens.
Authorizations
Responses
The vendors a user with matching email is linked to
Get paywall by ID
Retrieves the paywall configuration and settings for the specified paywall ID.
Authorizations
Parameters
Path Parameters
"pw123456"Responses
The paywall information and configuration
Interactive API Documentation
This is the complete OpenAPI specification for the Sesamy API. You can explore all endpoints, request/response schemas, and try out API calls directly from this page.
About This API
The Sesamy API provides comprehensive endpoints for managing content monetization, subscriptions, and user entitlements.
For additional guides and examples, check out:
- Getting Started - Quick start guide
- Authentication - Authentication methods
- Client API Guide - Client API overview
- Management API Guide - Management API overview
- SDKs - Official client libraries