Our powerful Community Hub API makes it easy to detect, track and auto-verify any in-app or off-chain action.
Authentication
You need to pass your API token as a header x-api-key for all requests.
Where to find your API key
You can find your API key by signing in to sesamelabs.xyz and then visiting Settings -> In-App Events API section.
Events API
Our product already has integrations with social platforms (like Twitter, Discord, Telegram, Youtube, etc). We also have on-chain integrations (Ethereum, Polygon). However, sometimes you might want to create Quests that incentivize off-chain activity that happens within your product (website, mobile, etc). This is where our events API can be used. Use the below POST endpoint to send events. Once that is hooked up, you can create a Quest, select Action type In-App and select the event name from the dropdown.
Create an Event
POSThttps:/sesamelabs.xyz/api/v0/events
Use this API to send an event that takes place on your website to our servers. This can then be used to create Quests to incentivize user activity within your product.
Request Body
Name
Type
Description
walletAddress*
String
walletAddress of the user that completed the in-game event
value*
Number
number of events completed by the wallet. In most cases it is best to use 1. However if you need to batch multiple completions of the same event, then this value can be something other than 1.
event
String
The name of the event. It would be great to keep the format of the events consistent.
E.g. camel casing, active/passive voice etc. e.g., "battleWon"
Users API
User Type
Our User type has the following schema. It would either return the wallet address if the user authenticated with the wallet address or will return the discord id and the user name if requested with the discord id.