magento2.4 – Magento 2: How to get Token via Rest API?

Magento 2: I want to get admin or customer token via Rest API. Early I used:

End point POST / rest / <store_code> / V1 / integration / admin(or customer) / token

Headings Content-Type / json app

Payload { “username”: “admin”, “password”: “123123q” }

But now this method doesn’t work. Can anyone please help me?