One of the ways to get a task ID is to look for it in the Tasklist.
The URL from task is correct ?? http://localhost:8082/v1/tasks/:XX
if the Tasklist is running on port 8082 in your environment then the call looks correct to me.
You can check all available API calls here: Overview | Camunda 8 Docs
Regards,
Alex