create a token trough the api