Access task id within the task script?

Is it possible to access the id of the currently running task within the flux script itself?

In our project we have many different tasks that do callbacks to our API using http post.
It’d be really useful if those http posts could contain the influx task id (and possibly other properties of the task) so that the receiver may log (and possibly act) differently depending on which task did the call.

The tasks package has functionality for accessing the last success time, but nothing more.
Would it make sense to be able to access other metadata about the current task from the tasks package? like task id, and updatedAt (for version checking)?

Or is there some other way to access task metadata within the running task that I haven’t thought of?