Add to timeline
add_blockAdd one block to a trip's timeline. This is the only way to write to a timeline; a DAY_MARKER block separates days. Layouts and their payload shapes: learn('block_types').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | See learn('block_types/<TYPE>'). | |
| badge | No | A short label for what kind of moment this is — a meal, a museum, checking in. Shown to readers, so name the occasion, not the data. | |
| payload | Yes | Content for this layout; shape depends on type. title / subtitle / text / caption / facts / badge are printed on the page and read by people who were not there, so write them in the traveller's language, not English. No field names or debugging traces, and no coordinates — the share page withholds those on purpose. The worked examples in learn('block_types') are written in English only to show the shape of each payload; your text goes in the traveller's language. See learn('voice'). | |
| trip_id | Yes | (must not be empty) | |
| sort_key | No | Manual ordering override; defaults to occurred_at_utc. | |
| client_id | Yes | Your own key for this block, so a retry does not create a duplicate. (must not be empty) | |
| tz_offset | No | Minutes east of UTC; defaults to the trip's own offset. | |
| occurred_at_utc | Yes | When this happened, epoch milliseconds UTC. Orders the timeline. |