Each summary object is uniquely identified by its id.

If multiple events are received at the same id, the last event received replaces all its previous versions.

Properties

event_type
const string
required

Constant: daily.data.meal.created

team_id
string
required
user_id
string
required
client_user_id
string
required
data
MealInDBBase_ClientFacingSource_
required
id
string
required
user_id
string
required
priority_id
integer
required
source_id
integer
required
provider_id
string
required
timestamp
string
required
name
string
required
energy
anyOf
required

Any of:

  • Energy
  • null
macros
anyOf
required

Any of:

  • Macros
  • null
micros
anyOf
required

Any of:

  • Micros
  • null
data
Record<string, ClientFacingFood> | null
{key=*}
ClientFacingFood | null
energy
anyOf | null

Any of:

  • Energy
  • null
macros
anyOf | null

Any of:

  • Macros
  • null
micros
anyOf | null

Any of:

  • Micros
  • null
source
ClientFacingSource
required
provider
string
required

Provider slug. e.g., oura, fitbit, garmin.

type
string | null

The type of the data source (app or device) by which the summary or the timeseries data were recorded. This defaults to unknown when Vital cannot extract or infer that information

app_id
anyOf | null

The identifier of the app which recorded this summary. This is only applicable to multi-source providers like Apple Health and Android Health Connect. Any of:

  • string
  • null
name
string | null
deprecated

Deprecated. Subject to removal after 1 Jan 2024.

slug
string | null
deprecated

Deprecated. Use provider instead. Subject to removal after 1 Jan 2024.

logo
string | null
deprecated

Deprecated. Subject to removal after 1 Jan 2024.

created_at
string
required
updated_at
string
required
source_app_id
anyOf | null

Any of:

  • string
  • null