How to get workflow by issueid or issuekey using jira rest API

Is there any way I can use the issueid or issuekey to get its workflow?

Hello @AlineMutesi

Assuming that you are talking about Jira (Your questions has no product or platform tags) then the answer would be… no.

Workflows are part of workflow schemes, which are applied to Issue types, not individual Issues.

Refer to the Configure workflow schemes documentation.