cURL
curl --request POST \ --url https://api.togai.com/entitled \ --header 'Authorization: Bearer <token>' \ --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": [ { "name": "message", "value": 100, "unit": "characters" } ], "dimensions": {} } }'
{ "success": true }
This API let’s you to ingest an event if a user is entitled to a feature
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Payload for ingesting events
Success response
The response is of type object.
object