Getting started

Getting started with external users

External Customers is a way to grant users access to the content without having made a purchase through the Sesamy Checkout. It can for instance be used to grant the employees and editors access to locked content or to integrate with other Subscription platforms. The External Customers can be accessed in the Sesamy Portal:

 
Notion image
 

The External Customers lists can be creating using different data sources:

  • Upload a CSV file
  • Sync from a CSV file available on a url
  • Manual data entry in the portal
  • Integration via API
 

Each list has a set of default products that it will grant the users access to.

 

API Integration

The API integration makes an outbound HTTP request to validate if a user has access base on their email address. The integrations are unique for each publisher, but typically are setup similar to the sample below:

curl --location 'https://www.publisher.com/external-customer' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJraWQiOiJZdjdFdFNWalRjcDZVS3k4SzBCa08iLCJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJkZWZhdWx0Iiwic2NvcGUiOiJvcGVuaWQiLCJwZXJtaXNzaW9ucyI6WyJwb2RjYXN0czp3cml0ZSIsInBvZGNhc3RzOnJlYWQiLCJjYXRhbG9nOndyaXRlIl0sInN1YiI6Imdvb2dsZS1vYXV0aDJ8MTA4NzkxMDA0NjcxMDcyODE3Nzk0Iiwia2lkIjoiWXY3...' \
--data-raw '{
    "email": "name@example.com"
}'
 

The header could either be a token signed by our https://tokens.sesamy.com/.well-known/jwks.json keys, a sha256-hmac or a static api key. The response needs to return if the user has access or not, but could also optionally return the customers user-id, the products they have access to and until when they have access:

{
    userId: "1234...",
    entitlements: [{
        id: "entitlementId",
        name: "subscription",
        expiresAt: "2024-06-18T13:59:29.269Z"
    }]
}
 

Contact support@sesamy.com to add a new API Integration

 

Auto Onboarding

A product can be setup to validate if a user has access each time they login, which is referred to as Auto Onboarding. This can for instance be used to automatically grant access to existing subscribers when unlocking content in Spotify or when logging in to a website.

 
 
Did this answer your question?
😞
😐
🤩