API

post
Pass User Info

https://api.simpleid.xyz
Request
Response
Request
Body Parameters
data
required
object
{ "appId": "YOUR APP ID", "address": "YOUR USER'S WALLET ADDR", "email": "YOUR USER'S EMAIL ADDR" (optional) }
command
required
string
"registerUserV2
Response
200: OK
{
"data":{
"wallet":{
"ethAddr":"0x46A796387Ba5233c956662A6e0fd1D0F7cF1D521"
}
}
}

Example:

curl --location --request POST 'https://api.simpleid.xyz' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": {
"appId": "cd168a0a-2ec2-43a2-a180-ca775384b421",
"address": "0x46A796387Ba5233c956662A6e0fd1D0F7cF1D521",
"email": "myemail@email.com"
},
"command": "registerUserV2"
}'

post
Check In-App Notifications

https://api.simpleid.xyz
The handleNotificationData command will return any available notifications for the wallet address passed in. The API handles verifying the wallet address against segments created and against notifications pertaining to those particular segments.
Request
Response
Request
Body Parameters
data
required
object
{ "appId": "YOUR APP ID", "address": "YOUR USER'S WALLET ADDR" }
command
required
string
"handleNotificationData"
Response
200: OK
{
"data": [
{
"name": "Notification Name",
"active": true,
"id": "0968f7a3-7d3c-45d0-addd-7a8e6afaf2a4",
"content": "<p>This is a notification.</p>",
"segmentId": "709aaf39-c9d5-4f1e-8cf5-1f5c94e5046e",
"org_id": "c5fa8825-ed8c-4248-b9c6-02fe4ff9e74a"
}
]
}

Example:

curl --location --request POST 'https://api.simpleid.xyz' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": {
"appId": "cd168a0a-2ec2-43a2-a180-ca775384b421",
"address": "0x46A796387Ba5233c956662A6e0fd1D0F7cF1D521"
},
"command": "handleNotificationData"
}'