Analytics require a Pro or Enterprise plan.
Analytics streaming is available only on Enterprise plans.
Add a destination
- Navigate to the Streaming page of your dashboard.
- In the Stream configuration section, click Configure.
- Select Add destination.
- Enter an optional label, then provide the Amazon S3 bucket, AWS region, access key ID, and secret access key. Optionally, enter a prefix that Mintlify adds to the beginning of every object key.
- Select Add destination.
Prepare Amazon S3 credentials
Prepare Amazon S3 credentials
Create an AWS Identity and Access Management (IAM) user with an access key whose policy allows writing to the target bucket. Mintlify does not support role assumption or temporary credentials that require a session token. At minimum, grant Use the access key ID and secret access key from that IAM user when adding the destination. The key prefix is optional. Mintlify adds it to the beginning of every object key.
s3:PutObject on the bucket and key prefix that you plan to use. For example:Select streamed categories
- Navigate to the Streaming page of your dashboard.
- In the Stream configuration section, click Configure.
-
In the categories table, select the categories that you want to send.
The examples summarize each category. Use the streamed
eventTypevalue to identify the exact event. - Click Save.
Select streamed projects
Select which of your organization’s projects send events. The dashboard lists each project by subdomain. If you create a project, return to the streaming configuration and select it. New projects do not automatically start streaming events.- Navigate to the Streaming page of your dashboard.
- In the Stream configuration section, click Configure.
- In the Projects table, select the projects that you want to send events from.
- Click Save.
Understand streamed data
Mintlify writes newline-delimited JSON (.jsonl) objects to your bucket. Mintlify generates object names from UTC timestamps. If you configure a key prefix, Mintlify writes the objects under that prefix.
Each line contains an event envelope with an eventType and payload. The eventType is the event name, such as docs.content.view. The payload contains the analytics event as a JSON object or a JSON-encoded string. If payload is a string, parse it as JSON before loading it into your warehouse.
Example streamed event
Example streamed event
Configuration changes can take up to one minute to apply.