POST
/
events
curl --request POST \
  --url https://api.schematichq.com/events \
  --header 'Content-Type: application/json' \
  --header 'X-Schematic-Api-Key: <api-key>' \
  --data '{
  "body": {
    "company": {},
    "event": "<string>",
    "traits": {},
    "user": {}
  },
  "event_type": "identify",
  "sent_at": "2023-11-07T05:31:56Z"
}'
{
  "data": {
    "captured_at": "2023-11-07T05:31:56Z",
    "event_id": "<string>",
    "remote_addr": "<string>",
    "remote_ip": "<string>",
    "user_agent": "<string>"
  },
  "params": {}
}

Authorizations

X-Schematic-Api-Key
string
headerrequired

Body

application/json
body
object
event_type
enum<string>
required

Either 'identify' or 'track'

Available options:
identify,
track
sent_at
string | null

Optionally provide a timestamp at which the event was sent to Schematic

Response

201 - application/json
data
object
required
params
object
required

Input parameters