POST
/
events
curl --request POST \
  --url https://api.cloud.flexprice.io/v1/events \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "customer_id": "customer456",
  "event_id": "event123",
  "event_name": "api_request",
  "external_customer_id": "customer456",
  "properties": {
    "\"response_status\"": "200}",
    "{\"request_size\"": "100"
  },
  "source": "api",
  "timestamp": "2024-03-20T15:04:05Z"
}'
{}

Authorizations

x-api-key
string
header
required

Enter your API key in the format x-api-key <api-key>*

Body

application/json
Event data
event_name
string
required
Example:

"api_request"

external_customer_id
string
required
Example:

"customer456"

customer_id
string
Example:

"customer456"

event_id
string
Example:

"event123"

properties
object

Handled separately for dynamic columns

Example:
{
  "\"response_status\"": "200}",
  "{\"request_size\"": "100"
}
source
string
Example:

"api"

timestamp
string

Handled separately due to parsing

Example:

"2024-03-20T15:04:05Z"

Response

202
application/json
message:Event accepted for processing
{key}
string