Create tokens with REST API / CLI

When a token is created through the admin panel, an XHR request is made to the server. Could you check which endpoint that is?