post
https://production-api.shoutaboutus.com/api/v1/widget/activity
Record a view or click event for a widget, deduplicated per widget + activity type + IP + device per calendar day (increments a running total_count when the same combination is seen again that day).
Auth
- Bearer — account (account) role.
Rate limit
- No rate limit.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
widget_unique_id | string | Required | Existing widget unique_id. |
activity_type | string | Required | view or click. |
referrer_url | string | Optional | Page the widget was embedded on. |
ip_address | string | Optional | Client IP (used in the daily dedup key). |
device_type | string | Optional | desktop, mobile or tablet. |
Behaviour
- 200 with
{ "data": { "status": "success", "message": "Record saved successfully!" } }. - 422 validation (unknown widget / bad activity_type).
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
