For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
SupportDashboard
Getting StartedAPI ReferenceRoadmapBlog
Getting StartedAPI ReferenceRoadmapBlog
    • Resources
    • Authentication
    • Pagination
    • Rate limiting
  • API Keys
    • GETList api keys
    • GETGet api key
    • POSTCreate api key
    • PUTUpdate api key
    • DELDelete api key
  • Environments
    • POSTCreate environment
    • PUTUpdate environment
    • DELDelete environment
  • Plans
    • The Plan object
    • GETList plans
    • GETGet plan
    • POSTCreate plan
    • PUTUpdate plan
    • DELDelete plan
  • Companies
    • The Company object
    • GETList companies
    • POSTUpsert company
    • GETLookup company
    • DELDelete company
    • POSTDelete company by keys
    • GETList company memberships
    • POSTGet or create company membership
    • DELDelete company membership
    • POSTUpsert company trait
  • Users
    • The User object
    • GETList users
    • GETLookup user
    • POSTUpsert user
    • DELDelete user
    • POSTDelete user by keys
    • POSTUpsert user trait
  • Events
    • The Event object
    • GETList events
    • POSTCreate event
    • POSTCreate event batch
    • GETGet event
  • Features
    • The Feature object
    • GETList features
    • GETGet feature
    • POSTCreate feature
    • PUTUpdate feature
    • DELDelete feature
  • Flags
    • The Flag object
    • GETList flags
    • GETGet flag
    • POSTCreate flag
    • PUTUpdate flag
    • DELDelete flag
    • PUTUpdate flag rules
    • POSTCheck flag
    • POSTCheck flags
  • Entitlements
    • GETList company overrides
    • GETGet company override
    • POSTCreate company override
    • PUTUpdate company override
    • DELDelete company override
    • GETList plan entitlements
    • GETGet plan entitlement
    • POSTCreate plan entitlement
    • PUTUpdate plan entitlement
    • DELDelete plan entitlement
  • Feature Usage
    • GETList feature usage
  • Billing Credits
    • GETList credits
    • POSTCreate credit
    • GETGet credit
    • PUTUpdate credit
    • DELDelete credit
    • GETList credit bundles
    • POSTCreate credit bundle
    • GETGet credit bundle
    • PUTUpdate credit bundle
    • DELDelete credit bundle
    • POSTGrant credits to company
    • GETList company credit grants
    • GETList credit grants
    • PUTZero out credit grant
    • GETList plan credit grants
    • POSTCreate plan credit grant
    • DELDelete plan credit grant
    • GETGet credit ledger
  • Account Members
    • GETList account members
    • GETGet account member
LogoLogo
SupportDashboard
Events

The Event object

Response
1{
2 "id" : "evt_ZdqQDDkxyQW",
3 "feature_id" : "feat_PWMi30qsPme",
4 "user_id" : "user_uRMQbMNozA4",
5 "company_id" : "comp_8414zCTfoJ4",
6 "sent_at" : "2000-01-23T04:56:07.000+00:00",
7 "captured_at" : "2000-01-23T04:56:07.000+00:00",
8 "loaded_at" : "2000-01-23T04:56:07.000+00:00",
9 "processed_at" : "2000-01-23T04:56:07.000+00:00",
10 "enriched_at" : "2000-01-23T04:56:07.000+00:00",
11 "updated_at" : "2000-01-23T04:56:07.000+00:00",
12 "environment_id" : "env_KGPydWrP3Fo",
13 "type" : "track",
14 "subtype" : "search_query",
15 "api_key" : "api_key",
16 "processing_status" : "enriched",
17 "idempotency_key" : "order-9f3b2c-attempt-1",
18 "body" : {
19 "company": {
20 "id": "comp_8414zCTfoJ4"
21 },
22 "event": "search_query",
23 "traits": {
24 "feature": "feat_PWMi30qsPme",
25 },
26 "user": {
27 "email": "newuser@example.com"
28 }
29 }
30}
Was this page helpful?
Previous

List events

Next
Built with

The Event object describes events from your application that can be associated with Users , Companies, and Features. A new Event is created when it is submitted via the API.

Events are typically sent to Schematic to create or update Users or Companies (identify events), or to log usage events (track events) for usage analytics or metering.

Track events can have any number of subtypes denoting what event is being tracked (e.g. query_run, endpoint_added, etc.). Properties (e.g. num_users, num_endpoints, etc.) can be Events but we recommend they be submitted as traits on the Company and User objects.

Attributes

id
string

Unique id generated by Schematic for the object.

feature_id
string

The Schematic id associated with the feature tied to the event.

user_id
string

The Schematic id associated with the user tied to the event.

company_id
string

The Schematic id associated with the company tied to the event.

sent_at
datetime

Datetime when event was sent to Schematic. Format is ISO 8601.

captured_at
datetime

Effective timestamp of the event in Schematic. By default this is the server receipt time, but when the event is submitted with trusted_client_clock or backfill, it is the client-provided sent_at. Format is ISO 8601. See Backfills and usage corrections.

loaded_at
datetime

Datetime when event was loaded into the Schematic database. Format is ISO 8601.

enriched_at
datetime

Datetime when event was associated with objects in Schematic. Format is ISO 8601.

updated_at
datetime

Datetime of last update to event data. Format is ISO 8601.

environment_id
string

Unique identifier of Schematic environment the event is associated with.

type
string

There are two types of events - identify and track. identify events correspond to Company and User upserts. track events correspond to usage data.

subtype
string

track events can have any number of subtypes denoting what event is being tracked (e.g. query_run, endpoint_added, etc.). Subtypes are grouped together.

processing_status
string

Current status of event in Schematic data pipeline (pending, success, failed, unknown).

body
dictionary

Event payload sent to Schematic (either an identify or track payload).

idempotency_key
string

Optional client-supplied key used to deduplicate events. If a second event is submitted with the same idempotency_key within 24 hours, scoped to the same environment and event type, it is dropped before processing.

Request-only fields

Two optional boolean fields on the create-event payload let you submit events with client-provided timestamps. Both require a secret API key and a sent_at value. See Backfills and usage corrections for full semantics.

trusted_client_clock
boolean

When true, the client-provided sent_at is used as the effective event timestamp instead of server receipt time. Billing side effects still fire. sent_at must be within 5 minutes in the future and 34 days in the past.

backfill
boolean

When true, the event is stored at its sent_at timestamp but all billing impact, webhooks, and last_seen_at bumps are skipped. Intended for analytics-only imports of historical usage. sent_at must be within 5 minutes in the future and 365 days in the past.