Entitlements
Ingest event if a user is entitled to a feature
This API let’s you to ingest an event if a user is entitled to a feature
POST
/
entitled
curl --request POST \
--url https://api.togai.com/entitled \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"event": {
"schemaName": "<string>",
"id": "c0b1306d-f506-43a6-856b-69221efaee6b",
"timestamp": "2022-06-15T07:30:35.123",
"accountId": 1,
"attributes": [],
"dimensions": {}
}
}'
{
"success": true
}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
event
object
Contents of the event
Response
200 - application/json
success
boolean
requiredcurl --request POST \
--url https://api.togai.com/entitled \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"event": {
"schemaName": "<string>",
"id": "c0b1306d-f506-43a6-856b-69221efaee6b",
"timestamp": "2022-06-15T07:30:35.123",
"accountId": 1,
"attributes": [],
"dimensions": {}
}
}'
{
"success": true
}