You can send events straight to Tranthor’s Segment-compatible HTTP API. This is handy when you’d prefer to skip an external connector such as our Segment source.

Endpoints

Tranthor’s REST interface uses the same schema as Segment’s HTTP API.

Authentication

Tranthor’s REST API authenticates using Write Keys. Find yours in the dashboard at /dashboard/settings#write-key-title.

Include write keys as an HTTP Authorization: Basic ... header in your requests. It’s safe to include this write key in your client (e.g. your web client javascript payload).

For example, you can use the following to submit an identify request to our demo workspace:

curl -H 'Content-Type:application/json' \
     -H 'Authorization: Basic trn_abcdef...' \
     -X POST \
     -d '{
         "userId": "'$(uuidgen)'",
         "messageId": "'$(uuidgen)'",
         "traits": {
             "email": "[email protected]"
         }
     }' \
    https://app.tranthor.com/api/public/apps/identify

SDK’s

Prefer using a client library? Tranthor offers platform-specific SDKs for added convenience.