POST
/
api
/
public
/
apps
/
page
curl --request POST \
  --url http://localhost/api/public/apps/page \
  --header 'Content-Type: application/json' \
  --header 'PublicWriteKey: <api-key>' \
  --header 'authorization: <authorization>' \
  --data '{
  "messageId": "msg_0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
  "timestamp": "2025-07-15T10:30:00.000Z",
  "context": {
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36",
    "locale": "en-GB"
  },
  "name": "Product Details Screen",
  "properties": {
    "title": "Tranthor Plans & Pricing",
    "url": "https://tranthor.com/pricing",
    "path": "/pricing",
    "referrer": "https://google.com"
  },
  "userId": "usr_a1b2c3d4e5f6"
}'
"<string>"

The following is an example of a page body.

example body
{
  "name": "Overview",
  "userId": "1043",
  "properties": {
    "url": "/dashboard/overview"
  },
  "messageId": "1ff51c9c-4929-45de-8914-3bb878be8c4a"
}

Authorizations

PublicWriteKey
string
header
required

Authorization header for the request, in the format Bearer <token>. Find your token at https://app.tranthor.com/dashboard/settings#write-key.

Headers

authorization
string
required

Authorization header for the request, in the format Bearer <token>. Find your token at https://app.tranthor.com/dashboard/settings#write-key.

Body

application/json

Response

204
application/json

An empty String