Skip to content

Management API Specification

Servers

https://api2.sesamy.comCurrent environment

GET /management/vendors

GET
/management/vendors

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Responses

A list of vendors

application/json
JSON
[
{
"name": "string",
"id": "string",
"logo": "string"
}
]

Playground

Authorization

Samples

cURL
JavaScript
PHP
Python

POST /management/vendors

POST
/management/vendors

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Request Body

application/json
JSON
{
"name": "string",
"id": "string",
"website": "string",
"country": "string"
}

Responses

Status

Playground

Authorization
Body

Samples

cURL
JavaScript
PHP
Python

GET /management/bills

GET
/management/bills

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Query Parameters

q
Typestring
limit
Typestring
from
Typestring
status
Typestring
Valid values
"DRAFT""PENDING""PAID""RETRYING""OVERDUE""CANCELED""EXPIRED""DELETED""VOIDED"
contractId
Typestring

Responses

Retrieve the users bills

application/json
JSON
[
{
"id": "1d78271264b9c76d5842911dd70b4353",
"contractId": "a1b2c3d4e5f6g7h8i9j0",
"items": [
{
"sku": "string",
"title": "string",
"purchaseOptionId": "string"
}
],
"price": 0,
"currency": "string",
"receiptUrl": "string",
"paymentProvider": "string",
"paymentMethod": "string",
"status": "string",
"updatedAt": "string",
"createdAt": "string"
}
]

Playground

Authorization
Variables
Key
Value

Samples

cURL
JavaScript
PHP
Python

GET /management/bills/{id}

GET
/management/bills/{id}

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Path Parameters

id*
Typestring
Required
Example"1d78271264b9c76d5842911dd70b4353"

Responses

Retrieve the users bills

application/json
JSON
{
"id": "1d78271264b9c76d5842911dd70b4353",
"contractId": "a1b2c3d4e5f6g7h8i9j0",
"items": [
{
"sku": "string",
"title": "string",
"purchaseOptionId": "string"
}
],
"price": 0,
"currency": "string",
"receiptUrl": "string",
"paymentProvider": "string",
"paymentMethod": "string",
"status": "string",
"updatedAt": "string",
"createdAt": "string"
}

Playground

Authorization
Variables
Key
Value

Samples

cURL
JavaScript
PHP
Python

GET /management/contracts

GET
/management/contracts

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Query Parameters

q
Typestring
limit
Typestring
from
Typestring
userId
Typestring

Responses

Retrieve the users contracts

application/json
JSON
[
{
"id": "1d78271264b9c76d5842911dd70b4353",
"name": "string",
"userId": "string",
"createdAt": "string",
"confirmedAt": "string",
"updatedAt": "string",
"price": 0,
"nextBillAt": "string",
"nextPrice": 0,
"currency": "string",
"manageUrl": "string",
"contractDuration": "string",
"issuesRemaining": 0,
"items": [
{
"sku": "string",
"purchaseOptionId": "string",
"purchaseOptionName": "string",
"name": "string",
"cover": "string",
"purchaseType": "string",
"isMultiseat": true
}
],
"status": "string",
"isActive": true,
"recurringInterval": "string",
"recurringTime": 0,
"willCancelAt": "string",
"cancelRequestedAt": "string",
"cancelReason": "string",
"expiresAt": "string",
"paymentData": {
"method": "string",
"description": "string",
"brand": "string"
},
"appliedDiscounts": [
{
"code": "string",
"name": "string",
"description": "string",
"id": "string"
}
]
}
]

Playground

Authorization
Variables
Key
Value

Samples

cURL
JavaScript
PHP
Python

GET /management/contracts/{id}

GET
/management/contracts/{id}

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Path Parameters

id*
Typestring
Required
Example"1d78271264b9c76d5842911dd70b4353"

Responses

Retrieve the users contracts

application/json
JSON
{
"id": "1d78271264b9c76d5842911dd70b4353",
"name": "string",
"userId": "string",
"createdAt": "string",
"confirmedAt": "string",
"updatedAt": "string",
"price": 0,
"nextBillAt": "string",
"nextPrice": 0,
"currency": "string",
"manageUrl": "string",
"contractDuration": "string",
"issuesRemaining": 0,
"items": [
{
"sku": "string",
"purchaseOptionId": "string",
"purchaseOptionName": "string",
"name": "string",
"cover": "string",
"purchaseType": "string",
"isMultiseat": true
}
],
"status": "string",
"isActive": true,
"recurringInterval": "string",
"recurringTime": 0,
"willCancelAt": "string",
"cancelRequestedAt": "string",
"cancelReason": "string",
"expiresAt": "string",
"paymentData": {
"method": "string",
"description": "string",
"brand": "string"
},
"appliedDiscounts": [
{
"code": "string",
"name": "string",
"description": "string",
"id": "string"
}
]
}

Playground

Authorization
Variables
Key
Value

Samples

cURL
JavaScript
PHP
Python

GET /management/contracts/{id}/licenses

GET
/management/contracts/{id}/licenses

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Path Parameters

id*
Typestring
Required
Example"1d78271264b9c76d5842911dd70b4353"

Responses

Retrieve users with license entitlements for the contract

application/json
JSON
[
{
"userId": "auth0|123456",
"email": "user@example.com",
"fullName": "John Doe",
"sku": "premium-subscription",
"status": "ACTIVE",
"entitlementId": "ent_123456"
}
]

Playground

Authorization
Variables
Key
Value

Samples

cURL
JavaScript
PHP
Python

Transactions


GET /management/transactions

GET
/management/transactions

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Query Parameters

q
Typestring
transactionId
Typestring
billId
Typestring
contractId
Typestring
userId
Typestring
dateFrom
Typestring
dateTo
Typestring
limit
Typestring
from
Typestring

Responses

A list of transactions

application/json
JSON
[
{
"id": "1d78271264b9c76d5842911dd70b4353",
"amount": 0,
"currency": "string",
"contractId": "string",
"isRefund": true,
"userId": "string",
"billId": "string",
"updatedAt": "string",
"createdAt": "string"
}
]

Playground

Authorization
Variables
Key
Value

Samples

cURL
JavaScript
PHP
Python

GET /management/products

GET
/management/products

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Query Parameters

q
Typestring

Responses

Retrieve a list of products

application/json
JSON
[
{
"cover": "string",
"language": "string",
"createdAt": "string",
"updatedAt": "string",
"sku": "string",
"title": "string",
"productType": "string",
"publisherContentId": "string"
}
]

Playground

Authorization
Variables
Key
Value

Samples

cURL
JavaScript
PHP
Python

POST /management/products

POST
/management/products

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Request Body

application/json
JSON
{
"type": "string",
"url": "string",
"spotifyId": "string"
}

Responses

A created product

application/json
JSON
{
"cover": "string",
"language": "string",
"createdAt": "string",
"updatedAt": "string",
"sku": "string",
"title": "string",
"productType": "string",
"publisherContentId": "string"
}

Playground

Authorization
Body

Samples

cURL
JavaScript
PHP
Python

GET /management/products/{sku}

GET
/management/products/{sku}

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Path Parameters

sku*
Typestring
Required

Responses

Retrieve a a product by SKU

application/json
JSON
{
"cover": "string",
"language": "string",
"createdAt": "string",
"updatedAt": "string",
"sku": "string",
"title": "string",
"productType": "string",
"publisherContentId": "string"
}

Playground

Authorization
Variables
Key
Value

Samples

cURL
JavaScript
PHP
Python

PATCH /management/products/{sku}

PATCH
/management/products/{sku}

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Path Parameters

sku*
Typestring
Required

Request Body

application/json
JSON
{
"externalIds": {
"spotifyId": "string"
},
"language": "string"
}

Responses

The updated product

application/json
JSON
{
"cover": "string",
"language": "string",
"createdAt": "string",
"updatedAt": "string",
"sku": "string",
"title": "string",
"productType": "string",
"publisherContentId": "string"
}

Playground

Authorization
Variables
Key
Value
Body

Samples

cURL
JavaScript
PHP
Python

GET /management/products/{sku}/fulfillments

GET
/management/products/{sku}/fulfillments

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Path Parameters

sku*
Typestring
Required

Responses

Retrieve a a product by SKU

application/json
JSON
[
{
"status": "string",
"updatedAt": "string",
"createdAt": "string",
"deliversAt": "string",
"sku": "string",
"title": "string"
}
]

Playground

Authorization
Variables
Key
Value

Samples

cURL
JavaScript
PHP
Python

List users

GET
/management/users

Returns a list of users with optional filtering.

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Query Parameters

q
Typestring
Example"john"
limit
Typestring
Example"10"
from
Typestring
Example"0"

Responses

A list of users matching the query parameters

application/json
JSON
[
{
"userId": "string",
"firstName": "string",
"lastName": "string",
"email": "string",
"emailVerified": true,
"locale": "string",
"nickname": "string",
"picture": "string",
"name": "string",
"mobilePhone": "string",
"workPhone": "string",
"homePhone": "string",
"tags": [
"string"
],
"user_metadata": {
"additionalProperties": "string"
},
"billingAddress": {
"country": "string",
"zip": "string",
"city": "string",
"street": "string",
"co": "string",
"lastName": "string",
"firstName": "string"
},
"deliveryAddress": {
"country": "string",
"zip": "string",
"city": "string",
"street": "string",
"co": "string",
"lastName": "string",
"firstName": "string"
},
"createdAt": "string",
"updatedAt": "string",
"companyInfo": {
"companyName": "string",
"vatNr": "string",
"invoiceEmail": "string"
},
"company": "string",
"sub": "string",
"given_name": "string",
"family_name": "string",
"phone_number": "string"
}
]

Playground

Authorization
Variables
Key
Value

Samples

cURL
JavaScript
PHP
Python

Create a user

POST
/management/users

Creates a new user with the specified email and optional name.

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Request Body

application/json
JSON
{
"email": "new.user@example.com",
"firstName": "New",
"lastName": "User"
}

Responses

User created successfully

application/json
JSON
{
"success": true
}

Playground

Authorization
Body

Samples

cURL
JavaScript
PHP
Python

Get a user by ID

GET
/management/users/{user_id}

Retrieves a specific user's profile by their ID.

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Path Parameters

user_id*

The unique identifier of the user

Typestring
Required
Example"user123"

Responses

The requested user profile

application/json
JSON
{
"userId": "string",
"firstName": "string",
"lastName": "string",
"email": "string",
"emailVerified": true,
"locale": "string",
"nickname": "string",
"picture": "string",
"name": "string",
"mobilePhone": "string",
"workPhone": "string",
"homePhone": "string",
"tags": [
"string"
],
"user_metadata": {
"additionalProperties": "string"
},
"billingAddress": {
"country": "string",
"zip": "string",
"city": "string",
"street": "string",
"co": "string",
"lastName": "string",
"firstName": "string"
},
"deliveryAddress": {
"country": "string",
"zip": "string",
"city": "string",
"street": "string",
"co": "string",
"lastName": "string",
"firstName": "string"
},
"createdAt": "string",
"updatedAt": "string",
"companyInfo": {
"companyName": "string",
"vatNr": "string",
"invoiceEmail": "string"
},
"company": "string",
"sub": "string",
"given_name": "string",
"family_name": "string",
"phone_number": "string"
}

Playground

Authorization
Variables
Key
Value

Samples

cURL
JavaScript
PHP
Python

Delete a user

DELETE
/management/users/{user_id}

Deletes a user from the auth server. This action is irreversible.

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Path Parameters

user_id*

The unique identifier of the user

Typestring
Required
Example"user123"

Responses

User deleted successfully

application/json
JSON
{
"success": true
}

Playground

Authorization
Variables
Key
Value

Samples

cURL
JavaScript
PHP
Python

Update a user

PATCH
/management/users/{user_id}

Updates a specific user's profile with the provided data.

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Path Parameters

user_id*

The unique identifier of the user

Typestring
Required
Example"user123"

Request Body

application/json
JSON
{
"firstName": "John",
"lastName": "Doe",
"nickname": "Johnny",
"mobilePhone": "+1234567890",
"workPhone": "+1234567891",
"homePhone": "+1234567892",
"billingAddress": {
"country": "string",
"zip": "string",
"city": "string",
"street": "string",
"co": "string",
"lastName": "string",
"firstName": "string"
},
"deliveryAddress": {
"country": "string",
"zip": "string",
"city": "string",
"street": "string",
"co": "string",
"lastName": "string",
"firstName": "string"
},
"user_metadata": {
"additionalProperties": "string"
},
"companyInfo": {
"companyName": "string",
"vatNr": "string",
"invoiceEmail": "string"
},
"given_name": "string",
"family_name": "string",
"phone_number": "string"
}

Responses

The updated user profile

application/json
JSON
{
"userId": "string",
"firstName": "string",
"lastName": "string",
"email": "string",
"emailVerified": true,
"locale": "string",
"nickname": "string",
"picture": "string",
"name": "string",
"mobilePhone": "string",
"workPhone": "string",
"homePhone": "string",
"tags": [
"string"
],
"user_metadata": {
"additionalProperties": "string"
},
"billingAddress": {
"country": "string",
"zip": "string",
"city": "string",
"street": "string",
"co": "string",
"lastName": "string",
"firstName": "string"
},
"deliveryAddress": {
"country": "string",
"zip": "string",
"city": "string",
"street": "string",
"co": "string",
"lastName": "string",
"firstName": "string"
},
"createdAt": "string",
"updatedAt": "string",
"companyInfo": {
"companyName": "string",
"vatNr": "string",
"invoiceEmail": "string"
},
"company": "string",
"sub": "string",
"given_name": "string",
"family_name": "string",
"phone_number": "string"
}

Playground

Authorization
Variables
Key
Value
Body

Samples

cURL
JavaScript
PHP
Python

Change user login identifier

POST
/management/users/{user_id}/change-login-identifier

Changes the email address that a user uses to log in.

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Path Parameters

user_id*

The unique identifier of the user

Typestring
Required
Example"user123"

Request Body

application/json
JSON
{
"email": "new.email@example.com"
}

Responses

Login identifier changed successfully

application/json
JSON
{
"success": true
}

Playground

Authorization
Variables
Key
Value
Body

Samples

cURL
JavaScript
PHP
Python

Add phone login identifier

POST
/management/users/{user_id}/add-phone-identifier

Creates a new SMS user in Auth0 and links it as an additional login identity to the existing user.

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Path Parameters

user_id*

The unique identifier of the user

Typestring
Required
Example"user123"

Request Body

application/json
JSON
{
"phoneNumber": "+46701234567"
}

Responses

Phone identifier added successfully

application/json
JSON
{
"success": true
}

Playground

Authorization
Variables
Key
Value
Body

Samples

cURL
JavaScript
PHP
Python

Set user metadata value

PUT
/management/users/{user_id}/user_metadata/{key}

Sets a metadata value for a specific user with the specified key.

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Path Parameters

user_id*

The unique identifier of the user

Typestring
Required
Example"user123"
key*

The key of the metadata entry

Typestring
Required
Example"preferences"

Request Body

text/plain
JSON
"string"

Responses

Metadata value set successfully

application/json
JSON
{
"success": true
}

Playground

Authorization
Variables
Key
Value
Body

Samples

cURL
JavaScript
PHP
Python

Delete user metadata value

DELETE
/management/users/{user_id}/user_metadata/{key}

Deletes a metadata value for a specific user with the specified key.

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Path Parameters

user_id*

The unique identifier of the user

Typestring
Required
Example"user123"
key*

The key of the metadata entry

Typestring
Required
Example"preferences"

Responses

Metadata value deleted successfully

application/json
JSON
{
"success": true
}

Playground

Authorization
Variables
Key
Value

Samples

cURL
JavaScript
PHP
Python

Set user password

POST
/management/users/{user_id}/set-password

Sets or updates the password for a user. Creates a password authentication method if one does not exist.

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Path Parameters

user_id*

The unique identifier of the user

Typestring
Required
Example"user123"

Request Body

application/json
JSON
{
"password": "SecurePassword123!"
}

Responses

Password set successfully

application/json
JSON
{
"success": true
}

Playground

Authorization
Variables
Key
Value
Body

Samples

cURL
JavaScript
PHP
Python

List team members

GET
/management/team

Returns the list of users with portal access for the current vendor.

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Responses

A list of team members

application/json
JSON
[
{
"userId": "auth0|61715b8ebe82f0006ab0613b",
"email": "user@example.com",
"roles": [
[
"PortalFullAccess"
]
]
}
]

Playground

Authorization

Samples

cURL
JavaScript
PHP
Python

Invite a team member

POST
/management/team

Adds a new team member identified by email and assigns one or more portal roles.

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Request Body

application/json
JSON
{
"email": "user@example.com",
"roles": [
[
"PortalFullAccess"
]
]
}

Responses

Team member added successfully

application/json
JSON
{
"userId": "auth0|61715b8ebe82f0006ab0613b",
"email": "user@example.com",
"roles": [
[
"PortalFullAccess"
]
]
}

Playground

Authorization
Body

Samples

cURL
JavaScript
PHP
Python

Set team member roles

PUT
/management/team/{userId}

Replaces the portal roles for a team member. Only portal-managed roles are affected; other roles on the user are left untouched. Pass an empty array to remove all portal roles.

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Path Parameters

userId*
Typestring
Required
Example"auth0|61715b8ebe82f0006ab0613b"

Request Body

application/json
JSON
{
"roles": [
[
"PortalFullAccess"
]
]
}

Responses

Roles updated successfully

application/json
JSON
{
"userId": "auth0|61715b8ebe82f0006ab0613b",
"email": "user@example.com",
"roles": [
[
"PortalFullAccess"
]
]
}

Playground

Authorization
Variables
Key
Value
Body

Samples

cURL
JavaScript
PHP
Python

Remove a team member

DELETE
/management/team/{userId}

Removes all portal-managed role assignments for a user. Other roles on the user are left untouched.

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Path Parameters

userId*
Typestring
Required
Example"auth0|61715b8ebe82f0006ab0613b"

Responses

Team member removed

Playground

Authorization
Variables
Key
Value

Samples

cURL
JavaScript
PHP
Python

Compatibility


Get customer information

GET
/management/mc/customers/{customerId}

Returns customer information in XML format for Mediaconnect compatibility.

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)
+
Basic
TypeHTTP (basic)

Parameters

Path Parameters

customerId*

The unique identifier of the customer

Typestring
Required
Example"958280"

Responses

Customer information in XML format

application/xml
XML

Playground

Authorization
Variables
Key
Value

Samples

cURL
JavaScript
PHP
Python

Entitlements


GET /management/entitlements

GET
/management/entitlements

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Query Parameters

q
Typestring
Example"premium article"
limit
Typestring
Example"20"
from
Typestring
Example"cursor123"
userId*
Typestring
Required
Example"user123"
type
Typestring
Valid values
"article""audiobook""ebook""bundle""podcast""pass""publication""physical_issue"
Example"article"
sku
Typestring
Example"premium-article-123"

Responses

List of entitlements

application/json
JSON
[
{
"id": "1d78271264b9c76d5842911dd70b4353",
"sku": "string",
"purchaseOption": "string",
"cover": "string",
"title": "string",
"url": "string",
"presentationUrl": "string",
"publisherContentId": "string",
"type": "string",
"origin": {
"type": "string",
"id": "string",
"listId": "string",
"name": "string"
},
"hasAccess": true,
"createdAt": "string",
"updatedAt": "string",
"token": "string",
"expiresAt": "string"
}
]

Playground

Authorization
Variables
Key
Value

Samples

cURL
JavaScript
PHP
Python

List paywalls

GET
/management/paywalls

Lists all paywalls configured for the authenticated vendor.

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Responses

The list of paywalls for the vendor

application/json
JSON
[
{
"id": "aM8o7LqpkGZJ-szyPwe_E",
"vendorId": "24victoria",
"currency": "DKK",
"version": 2,
"name": "Article paywall",
"entity": "Paywall",
"status": "ACTIVE",
"createdAt": "2026-01-01T00:00:00.000Z",
"modifiedAt": "2026-01-01T00:00:00.000Z",
"previewUrl": "https://api.sesamy.com/paywall/paywalls/vendor/abc/preview",
"settings": {
"template": "BOXES",
"useDefaultLogo": true,
"useDefaultCurrency": true,
"useDefaultColor": true,
"styling": {
"dropShadow": true,
"backgroundColor": "#000000",
"showBackground": false
},
"displayOptions": {
"enableGift": true,
"enableCompany": true,
"enableLoginButton": true
}
},
"showLoginButton": true,
"subscriptions": [
{
"id": "R4gX0YSbSU1WJA7bCrbQw",
"sku": "sid:fGb4GbMUclADQtBxoX1rl",
"poId": "VDuH_poxqIPKW638Ok43q",
"title": "Månedsabonnement",
"description": "<p>Kun 720 kr./år – spar 20%</p>",
"price": 99,
"discountPrice": 75,
"discountCode": "",
"periodText": "måned",
"tag": "",
"selected": true,
"features": [
[
"Daglige nyheder om tech, startups og scaleups",
"Eksklusive interviews med founders"
]
],
"buttonText": "KØB ADGANG",
"readMoreText": "Læs mere",
"preferBusiness": false,
"url": "https://24victoria.dk/business"
}
],
"features": [
[
"Danmarks nyhedsmedie om techvirksomeder. startups & scaleups"
]
],
"mainColor": "#3377fe",
"headline": "Login for at læse artiklen",
"logoUrl": "https://assets.sesamy.com/vendor-assets/24victoria/ad29ee3a-4648-453e-92ad-a2d43c68cd39.svg",
"footerPaymentMethods": [
[
"visa",
"mastercard",
"google-pay",
"apple-pay"
]
],
"singlePurchase": {
"enabled": true,
"title": "Buy Now",
"description": "One-time purchase",
"discountCode": ""
}
}
]

Playground

Authorization

Samples

cURL
JavaScript
PHP
Python

Get paywall by ID

GET
/management/paywalls/{paywallId}

Retrieves the paywall configuration and settings for the specified paywall ID.

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Path Parameters

paywallId*
Typestring
Required
Example"pw123456"

Responses

The paywall information and configuration

application/json
JSON
{
"id": "aM8o7LqpkGZJ-szyPwe_E",
"vendorId": "24victoria",
"currency": "DKK",
"version": 2,
"name": "Article paywall",
"entity": "Paywall",
"status": "ACTIVE",
"createdAt": "2026-01-01T00:00:00.000Z",
"modifiedAt": "2026-01-01T00:00:00.000Z",
"previewUrl": "https://api.sesamy.com/paywall/paywalls/vendor/abc/preview",
"settings": {
"template": "BOXES",
"useDefaultLogo": true,
"useDefaultCurrency": true,
"useDefaultColor": true,
"styling": {
"dropShadow": true,
"backgroundColor": "#000000",
"showBackground": false
},
"displayOptions": {
"enableGift": true,
"enableCompany": true,
"enableLoginButton": true
}
},
"showLoginButton": true,
"subscriptions": [
{
"id": "R4gX0YSbSU1WJA7bCrbQw",
"sku": "sid:fGb4GbMUclADQtBxoX1rl",
"poId": "VDuH_poxqIPKW638Ok43q",
"title": "Månedsabonnement",
"description": "<p>Kun 720 kr./år – spar 20%</p>",
"price": 99,
"discountPrice": 75,
"discountCode": "",
"periodText": "måned",
"tag": "",
"selected": true,
"features": [
[
"Daglige nyheder om tech, startups og scaleups",
"Eksklusive interviews med founders"
]
],
"buttonText": "KØB ADGANG",
"readMoreText": "Læs mere",
"preferBusiness": false,
"url": "https://24victoria.dk/business"
}
],
"features": [
[
"Danmarks nyhedsmedie om techvirksomeder. startups & scaleups"
]
],
"mainColor": "#3377fe",
"headline": "Login for at læse artiklen",
"logoUrl": "https://assets.sesamy.com/vendor-assets/24victoria/ad29ee3a-4648-453e-92ad-a2d43c68cd39.svg",
"footerPaymentMethods": [
[
"visa",
"mastercard",
"google-pay",
"apple-pay"
]
],
"singlePurchase": {
"enabled": true,
"title": "Buy Now",
"description": "One-time purchase",
"discountCode": ""
}
}

Playground

Authorization
Variables
Key
Value

Samples

cURL
JavaScript
PHP
Python

GET /management/access-lists

GET
/management/access-lists

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Responses

Retrieve a list of access lists

application/json
JSON
[
{
"id": "src_123abc",
"name": "My Partner API",
"description": "Purchases from partner system",
"type": "MANUAL",
"status": "ACTIVE",
"excludeFromStats": false
}
]

Playground

Authorization

Samples

cURL
JavaScript
PHP
Python

POST /management/access-lists

POST
/management/access-lists

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Request Body

application/json
JSON
{
"name": "My Partner API",
"description": "Purchases from partner system",
"type": "MANUAL",
"status": "ACTIVE",
"excludeFromStats": false
}

Responses

Access list created successfully

application/json
JSON
{
"id": "src_123abc",
"name": "My Partner API",
"description": "Purchases from partner system",
"type": "MANUAL",
"status": "ACTIVE",
"excludeFromStats": false
}

Playground

Authorization
Body

Samples

cURL
JavaScript
PHP
Python

GET /management/access-lists/{id}

GET
/management/access-lists/{id}

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Path Parameters

id*
Typestring
Required
Example"src_123abc"

Responses

Retrieve an access list by ID

application/json
JSON
{
"id": "src_123abc",
"name": "My Partner API",
"description": "Purchases from partner system",
"type": "MANUAL",
"status": "ACTIVE",
"excludeFromStats": false
}

Playground

Authorization
Variables
Key
Value

Samples

cURL
JavaScript
PHP
Python

PUT /management/access-lists/{id}

PUT
/management/access-lists/{id}

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Path Parameters

id*
Typestring
Required
Example"src_123abc"

Request Body

application/json
JSON
{
"name": "My Partner API",
"description": "Purchases from partner system",
"type": "MANUAL",
"status": "ACTIVE",
"excludeFromStats": false
}

Responses

Access list updated successfully

application/json
JSON
{
"id": "src_123abc",
"name": "My Partner API",
"description": "Purchases from partner system",
"type": "MANUAL",
"status": "ACTIVE",
"excludeFromStats": false
}

Playground

Authorization
Variables
Key
Value
Body

Samples

cURL
JavaScript
PHP
Python

PATCH /management/access-lists/{id}

PATCH
/management/access-lists/{id}

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Path Parameters

id*
Typestring
Required
Example"src_123abc"

Request Body

application/json
JSON
{
"name": "My Partner API",
"description": "Purchases from partner system",
"type": "MANUAL",
"status": "ACTIVE",
"excludeFromStats": false
}

Responses

Access list patched successfully

application/json
JSON
{
"id": "src_123abc",
"name": "My Partner API",
"description": "Purchases from partner system",
"type": "MANUAL",
"status": "ACTIVE",
"excludeFromStats": false
}

Playground

Authorization
Variables
Key
Value
Body

Samples

cURL
JavaScript
PHP
Python

GET /management/access-lists/{id}/grants

GET
/management/access-lists/{id}/grants

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Path Parameters

id*
Typestring
Required
Example"src_123abc"

Responses

Retrieve a list of grants for an access list

application/json
JSON
[
{
"id": "grant_123abc",
"source": "src_123abc",
"email": "user@example.com",
"userId": "pub_user_123",
"publisherUserId": "pub_user_123",
"sku": "premium-article-123",
"poId": "po_123abc",
"status": "ACTIVE",
"startsAt": "2024-01-01T00:00:00Z",
"endsAt": "2024-12-31T23:59:59Z",
"firstName": "John",
"lastName": "Doe",
"phone": "+1234567890",
"deliveryAddress": {
"street": "string",
"city": "string",
"zip": "string",
"country": "string",
"co": "string"
},
"billingAddress": {
"street": "string",
"city": "string",
"zip": "string",
"country": "string",
"co": "string"
},
"publisherPurchaseId": "pub_purchase_123",
"notes": "Bulk purchase",
"extraFields": {
"additionalProperties": "string"
},
"excludeFromStats": false
}
]

Playground

Authorization
Variables
Key
Value

Samples

cURL
JavaScript
PHP
Python

POST /management/access-lists/{id}/grants

POST
/management/access-lists/{id}/grants

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Path Parameters

id*
Typestring
Required
Example"src_123abc"

Request Body

application/json
JSON
{
"email": "user@example.com",
"userId": "pub_user_123",
"publisherUserId": "pub_user_123",
"sku": "premium-article-123",
"poId": "po_123abc",
"status": "ACTIVE",
"startsAt": "2024-01-01T00:00:00Z",
"endsAt": "2024-12-31T23:59:59Z",
"firstName": "John",
"lastName": "Doe",
"phone": "+1234567890",
"deliveryAddress": {
"street": "string",
"city": "string",
"zip": "string",
"country": "string",
"co": "string"
},
"billingAddress": {
"street": "string",
"city": "string",
"zip": "string",
"country": "string",
"co": "string"
},
"publisherPurchaseId": "pub_purchase_123",
"notes": "Bulk purchase",
"extraFields": {
"additionalProperties": "string"
},
"excludeFromStats": false,
"source": "src_123abc"
}

Responses

Grant created successfully

application/json
JSON
{
"id": "grant_123abc",
"source": "src_123abc",
"email": "user@example.com",
"userId": "pub_user_123",
"publisherUserId": "pub_user_123",
"sku": "premium-article-123",
"poId": "po_123abc",
"status": "ACTIVE",
"startsAt": "2024-01-01T00:00:00Z",
"endsAt": "2024-12-31T23:59:59Z",
"firstName": "John",
"lastName": "Doe",
"phone": "+1234567890",
"deliveryAddress": {
"street": "string",
"city": "string",
"zip": "string",
"country": "string",
"co": "string"
},
"billingAddress": {
"street": "string",
"city": "string",
"zip": "string",
"country": "string",
"co": "string"
},
"publisherPurchaseId": "pub_purchase_123",
"notes": "Bulk purchase",
"extraFields": {
"additionalProperties": "string"
},
"excludeFromStats": false
}

Playground

Authorization
Variables
Key
Value
Body

Samples

cURL
JavaScript
PHP
Python

GET /management/access-lists/{id}/grants/{grantId}

GET
/management/access-lists/{id}/grants/{grantId}

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Path Parameters

id*
Typestring
Required
Example"src_123abc"
grantId*
Typestring
Required
Example"purchase_123abc"

Responses

Retrieve a grant by ID

application/json
JSON
{
"id": "grant_123abc",
"source": "src_123abc",
"email": "user@example.com",
"userId": "pub_user_123",
"publisherUserId": "pub_user_123",
"sku": "premium-article-123",
"poId": "po_123abc",
"status": "ACTIVE",
"startsAt": "2024-01-01T00:00:00Z",
"endsAt": "2024-12-31T23:59:59Z",
"firstName": "John",
"lastName": "Doe",
"phone": "+1234567890",
"deliveryAddress": {
"street": "string",
"city": "string",
"zip": "string",
"country": "string",
"co": "string"
},
"billingAddress": {
"street": "string",
"city": "string",
"zip": "string",
"country": "string",
"co": "string"
},
"publisherPurchaseId": "pub_purchase_123",
"notes": "Bulk purchase",
"extraFields": {
"additionalProperties": "string"
},
"excludeFromStats": false
}

Playground

Authorization
Variables
Key
Value

Samples

cURL
JavaScript
PHP
Python

PUT /management/access-lists/{id}/grants/{grantId}

PUT
/management/access-lists/{id}/grants/{grantId}

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Path Parameters

id*
Typestring
Required
Example"src_123abc"
grantId*
Typestring
Required
Example"purchase_123abc"

Request Body

application/json
JSON
{
"email": "user@example.com",
"userId": "pub_user_123",
"publisherUserId": "pub_user_123",
"sku": "premium-article-123",
"poId": "po_123abc",
"status": "ACTIVE",
"startsAt": "2024-01-01T00:00:00Z",
"endsAt": "2024-12-31T23:59:59Z",
"firstName": "John",
"lastName": "Doe",
"phone": "+1234567890",
"deliveryAddress": {
"street": "string",
"city": "string",
"zip": "string",
"country": "string",
"co": "string"
},
"billingAddress": {
"street": "string",
"city": "string",
"zip": "string",
"country": "string",
"co": "string"
},
"publisherPurchaseId": "pub_purchase_123",
"notes": "Bulk purchase",
"extraFields": {
"additionalProperties": "string"
},
"excludeFromStats": false
}

Responses

Grant updated successfully

application/json
JSON
{
"id": "grant_123abc",
"source": "src_123abc",
"email": "user@example.com",
"userId": "pub_user_123",
"publisherUserId": "pub_user_123",
"sku": "premium-article-123",
"poId": "po_123abc",
"status": "ACTIVE",
"startsAt": "2024-01-01T00:00:00Z",
"endsAt": "2024-12-31T23:59:59Z",
"firstName": "John",
"lastName": "Doe",
"phone": "+1234567890",
"deliveryAddress": {
"street": "string",
"city": "string",
"zip": "string",
"country": "string",
"co": "string"
},
"billingAddress": {
"street": "string",
"city": "string",
"zip": "string",
"country": "string",
"co": "string"
},
"publisherPurchaseId": "pub_purchase_123",
"notes": "Bulk purchase",
"extraFields": {
"additionalProperties": "string"
},
"excludeFromStats": false
}

Playground

Authorization
Variables
Key
Value
Body

Samples

cURL
JavaScript
PHP
Python

DELETE /management/access-lists/{id}/grants/{grantId}

DELETE
/management/access-lists/{id}/grants/{grantId}

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Path Parameters

id*
Typestring
Required
Example"src_123abc"
grantId*
Typestring
Required
Example"purchase_123abc"

Responses

Grant deleted successfully

Playground

Authorization
Variables
Key
Value

Samples

cURL
JavaScript
PHP
Python

Get user diagnostics

GET
/management/diagnostics/{identifier}

Retrieve diagnostics entries for a user by their user ID or fallback ID. Returns the most recent entries.

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Path Parameters

identifier*
Typestring
Required
Example"user_123"

Query Parameters

limit
Typestring
Example"10"

Responses

List of diagnostics entries

application/json
JSON
{
"items": [
{
"userId": "string",
"fallbackId": "string",
"timestamp": "string",
"pageUrl": "string",
"pageTitle": "string",
"profile": {
"additionalProperties": "string"
},
"entitlements": [
{
"additionalProperties": "string"
}
],
"contracts": [
{
"additionalProperties": "string"
}
],
"tags": [
"string"
],
"tallies": {
"additionalProperties": "string"
},
"browser": {
"userAgent": "string",
"platform": "string",
"language": "string",
"languages": [
"string"
],
"cookiesEnabled": true,
"onLine": true,
"hardwareConcurrency": 0,
"deviceMemory": 0,
"maxTouchPoints": 0,
"vendor": "string",
"viewportWidth": 0,
"viewportHeight": 0,
"screenWidth": 0,
"screenHeight": 0,
"pixelRatio": 0,
"colorDepth": 0,
"timezone": "string",
"timezoneOffset": 0
},
"detection": {
"adBlockEnabled": true,
"incognitoMode": true,
"inAppBrowser": true
},
"localStorage": [
{
"key": "string",
"value": "string",
"redacted": true
}
],
"sessionStorage": [
{
"key": "string",
"value": "string",
"redacted": true
}
],
"sdkVersion": "string",
"clientId": "string",
"errors": [
"string"
],
"storedAt": "string",
"requestId": "string"
}
],
"count": 0
}

Playground

Authorization
Variables
Key
Value

Samples

cURL
JavaScript
PHP
Python

Delete user diagnostics

DELETE
/management/diagnostics/{identifier}

Delete all diagnostics entries for a user by their user ID or fallback ID.

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Path Parameters

identifier*
Typestring
Required
Example"user_123"

Responses

Diagnostics deleted successfully

application/json
JSON
{
"success": true,
"deletedCount": 0
}

Playground

Authorization
Variables
Key
Value

Samples

cURL
JavaScript
PHP
Python

Links


Create a signed link for content access

POST
/management/create-signed-link

Creates a signed token that grants access to encrypted content. Optionally appends it to a URL. Use for share links, email campaigns, gift access, or temporary tier access.

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Request Body

application/json
JSON
{
"url": "https://example.com/article/123",
"sku": "premium-subscription",
"purchaseOption": "monthly",
"publisherContentId": "article-2024-01-15-news",
"userId": "user-456",
"maxUses": 1000,
"expiresIn": "7d",
"meta": {
"additionalProperties": "string"
}
}

Responses

The signed link/token

application/json
JSON
{
"signedUrl": "string",
"token": "string",
"tokenId": "string",
"expiresAt": "string",
"sku": "string",
"publisherContentId": "string"
}

Playground

Authorization
Body

Samples

cURL
JavaScript
PHP
Python

List trusted publisher domains for the calling vendor

GET
/management/domains

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Responses

All trusted publisher domains registered under this vendor

application/json
JSON
{
"domains": [
{
"domain": "string",
"signingKeyPem": "string",
"jwksUri": "string",
"allowedResourceIds": [
"string"
],
"createdAt": "string",
"updatedAt": "string",
"updatedBy": "string"
}
]
}

Playground

Authorization

Samples

cURL
JavaScript
PHP
Python

Get a single trusted publisher domain

GET
/management/domains/{domain}

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Path Parameters

domain*

Publisher domain (lowercase, no scheme, no trailing dot)

Typestring
Required
Example"example.wordpress.com"

Responses

The trusted publisher domain entry

application/json
JSON
{
"domain": "string",
"signingKeyPem": "string",
"jwksUri": "string",
"allowedResourceIds": [
"string"
],
"createdAt": "string",
"updatedAt": "string",
"updatedBy": "string"
}

Playground

Authorization
Variables
Key
Value

Samples

cURL
JavaScript
PHP
Python

Register or update a trusted publisher domain

PUT
/management/domains/{domain}

Upserts a trusted publisher domain entry under the calling vendor. Provide exactly one of signingKeyPem (pinned ES256) or jwksUri (HTTPS URL whose hostname matches {domain}). Idempotent: re-registration replaces the entry and advances updatedAt.

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Path Parameters

domain*

Publisher domain (lowercase, no scheme, no trailing dot)

Typestring
Required
Example"example.wordpress.com"

Request Body

application/json
JSON
{
"signingKeyPem": "string",
"jwksUri": "string",
"allowedResourceIds": [
"string"
]
}

Responses

Domain updated

application/json
JSON
{
"domain": "string",
"signingKeyPem": "string",
"jwksUri": "string",
"allowedResourceIds": [
"string"
],
"createdAt": "string",
"updatedAt": "string",
"updatedBy": "string",
"probe": {
"ok": true,
"activeKeys": 0,
"error": "string"
}
}

Playground

Authorization
Variables
Key
Value
Body

Samples

cURL
JavaScript
PHP
Python

Remove a trusted publisher domain

DELETE
/management/domains/{domain}

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Parameters

Path Parameters

domain*

Publisher domain (lowercase, no scheme, no trailing dot)

Typestring
Required
Example"example.wordpress.com"

Responses

Domain removed (or did not exist)

Playground

Authorization
Variables
Key
Value

Samples

cURL
JavaScript
PHP
Python

Sync (temporary)


Migrate a vendor's portal team members into its authhero organization

POST
/management/sync/team-to-organization

Temporary endpoint for one-off migration. Reads portal team members from the legacy backend, ensures an organization exists on the sesamy authhero tenant, and adds each member with their mapped role.

Authorizations

OpenID
TypeOpenID Connect (https://token.sesamy.com/.well-known/openid-configuration)

Request Body

application/json
JSON
{
"vendor_id": "breakit",
"dry_run": false
}

Responses

Sync result

application/json
JSON
{
"vendorId": "string",
"dryRun": true,
"orgCreated": true,
"membersFound": 0,
"added": 0,
"missing": 0,
"failed": 0,
"results": [
{
"email": "string",
"userId": "string",
"roles": [
"string"
],
"status": "string",
"error": "string"
}
]
}

Playground

Authorization
Body

Samples

cURL
JavaScript
PHP
Python

Powered by VitePress OpenAPI

Released under the MIT License.