Aampe Rest Endpoint
Estimated setup time
1 hour
The Events API endpoint allows you to post real-time event data to Aampe's system. This endpoint is designed for streaming live user interactions and activities as they occur within your application.
Authentication
To use this API, you'll need an API key.
[Authentication screenshot will be added here]
Endpoint Details
URL: https://ingestion.api.aampe.com/v1/events
Method: POST
Content-Type: application/json
Request Parameters
Parameter | Type | Description |
---|---|---|
contact_id | string | Unique identifier for the user triggering the event. Must be at least 1 character long. |
event_name | string | Name of the event that occurred. Must be at least 1 character long. |
timestamp | string | Unix timestamp when the event occurred. |
Optional Parameters
Parameter | Type | Description |
---|---|---|
event_id | string | Optional unique identifier for the event. |
metadata | string | Optional JSON object containing additional event information. |
Example Request
{ "contact_id": "user123", "event_name": "button_click", "timestamp": 1638360000, "event_id": "evt_123456", "metadata": { "button_location": "header", "page": "home", "user_type": "premium" } }
Description | |
---|---|
202 | Event successfully received and accepted for processing |
422 | Validation error - request parameters are invalid |
Error response example
{ "detail": [ { "loc": ["body", "contact_id"], "msg": "field required", "type": "value_error.missing" } ] }
Further details
Find detailed developer documentation here
Updated 11 days ago