Skip to main content
POST
/
v1
/
events
Aampe Events Ingestion
curl --request POST \
  --url https://ingestion.{region}.api.aampe.com/v1/events \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "contact_id": "<string>",
  "event_name": "<string>",
  "timestamp": 123,
  "timezone": "UTC",
  "event_id": "b448c670-5b8e-4707-8a33-a56ee4c7fe20",
  "metadata": {}
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Your Ingestion API key. Obtain from Integrations > API keys in the Aampe Dashboard. See Authentication for details.

Body

application/json
contact_id
string
required

User ID that is triggering the event

Minimum string length: 1
event_name
string
required

The name of the event that took place

Minimum string length: 1
timestamp
required

Unix time of the event

timezone
string | null
default:UTC

Local timezone where the event took place

event_id
string | null
default:b448c670-5b8e-4707-8a33-a56ee4c7fe20

Optional unique ID of the event

metadata
Metadata · object

Optional dictionary representing any extra metadata

Response

Successful Response