POST
/
api
/
public
/
apps
/
page

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
headerrequired

Authorization header for the request, in the format Bearer <token>. Find your token at https://app.dittofeed.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.dittofeed.com/dashboard/settings#write-key.

Body

application/json
messageId
string
required

Unique identifier for the message, used as an idempotency key for safe retries. Can provide a UUID.

userId
string
required

Unique identifier for the user. Should be the id of the user in your system. Only applicable to logged in users.

timestamp
string

ISO 8601 formatted timestamp of when the event occurred. If not provided, the current server time will be used.

context
object

Provides metadata about the user submitting the event and the context in which the event occurred.

name
string

Name of the page visited by the user.

properties
object

Free-form dictionary of properties of the page, like url and referrer. Can contain arbitrary JSON values.

Response

204 - application/json

An empty String