Documentation Index
Fetch the complete documentation index at: https://api.docs.onlydrams.app/llms.txt
Use this file to discover all available pages before exploring further.
Parameters
The type of event being recorded. Must be one of the allowed event types:
custom_bottle_form_openedcustom_bottle_form_abandonedcustom_bottle_search_before_createcustom_bottle_selected_after_resultscustom_bottle_upc_different_selected
Event-specific data payload. See examples below for each event type.
Returns
Returns200 OK with no body if the event was recorded successfully, otherwise returns an error message.
Event Types
Form Opened
Record when user opens the custom bottle creation form.The search term used before opening the form (if any).
Number of search results shown before user chose to create custom.
Whether user scanned a UPC before opening the form.
Number of UPC matches found (if scanned).
Form Abandoned
Record when user closes the form without creating a bottle.List of field names that were filled. Empty array if form was abandoned without filling anything.
Time spent on the form before abandoning.
The last field the user interacted with.
Search Before Create
Record when user performs a search, sees results, but chooses to create a custom bottle anyway.The search term used.
Number of results returned.
Name of the first result shown.
Selected After Results
Record when user searches, gets results, but selects “Add Custom Bottle” instead of an existing result.The search term used.
Total results available.
How many results the user scrolled through.
UPC Different Bottle Selected
Record when user scans a UPC, gets matches, but selects “Different Bottle” to create a custom bottle.The scanned UPC code.
Number of bottles matched to this UPC.
Names of the matched bottles.
UPC Scan Tracking
The existing scan endpoint now tracks the input method. Addinput_method parameter to distinguish camera scans from manual entry.
Parameters
The UPC code to scan.
How the UPC was entered. Either
camera or manual.Automatic Server-Side Tracking
The following data is automatically added to all events by the server:| Field | Description |
|---|---|
subscription_tier | User’s current tier (elite, premium, free, nil) |
is_elite | Boolean |
is_premium | Boolean |
platform | Detected from User-Agent (ios, android, other) |
user_id | From authentication token |
request_id | For debugging/tracing |

