`time.Time` does RFC3339-style time marshalling, which is kind of tedious to handle in Javascript, so I think Unix timestamps are better to use in an API.

If we keep this in seconds since the epoch, would `CreatedAtSeconds` be a good idea? Same for `EndsAtSeconds`. Or maybe just a comment and leave the field names unchanged?