Log Entry
log_entryCREATES one entry from what the user said: type food/meal/snack/drink/kopi/coffee → Food Diary (with its Finance row when amount is given), expense → Finance, moment → a private Moment. Uses the same duplicate check as Dayze chat: the identical entry sent again within about 2 minutes is not saved twice and the reply says "Already logged that a moment ago". Shows in Dayze with "Added by " and can be undone from the record. Returns the saved record id (food_id, expense_id or moment_id). ($0.10; API key required)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | What the user had, bought or did, in their words (max 500). For food the item ("kopi peng"); for an expense what it was for. | |
| type | Yes | What kind of entry. | |
| when | No | Optional ISO 8601 instant with offset when it happened. Leave out for now. | |
| place | No | Optional place or merchant name. | |
| amount | No | Price paid, a positive number. Required for type expense. | |
| category | No | Optional Finance category, type expense only. | |
| currency | No | 3-letter currency of amount (e.g. SGD). | |
| timezone | No | Optional IANA zone of the user's device (e.g. Asia/Singapore). Used only when the account has no zone set; the profile zone wins. | |
| request_id | No | A new id (UUID) per write; send the same value again only to retry this exact call (the retry returns the first result). | |
| idempotency_key | No | Alias for request_id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| logged | Yes | ||
| record | Yes | { table, id } of the saved (or already saved) record. | |
| account | No | The Dayze account this data belongs to. With more than one Dayze connection, name it in the answer. | |
| food_id | No | ||
| message | Yes | ||
| timezone | No | ||
| duplicate | Yes | ||
| moment_id | No | ||
| entry_type | Yes | ||
| expense_id | No | ||
| provenance | No | Which connector wrote the record and which connected Dayze account received it. |