How to check if a task is already claimed during runtime in Camunda

I have a requirement where I need to check if a task is claimed or not during runtime. How do I check the same?

If you query for the task the response will have an assignee if it’s claimed.
The REST API docs should help you more.