Yes, although the process may vary slightly depending on the requirements of the API.
If the API accepts client credentials access tokens (no end-user involved) then the easiest route would be to have a non-interactive client application authorized for that API and then either:
- generate an access token manually through the Test section available in the relevant API dashboard for the case of performing sporadic and manual test requests.
- obtain an access token through your own client credentials grant request for cases where you just prefer an higher degree of automation.
On the other hand, if the API requires the access token to be associated to an end-user. For example, the API not only check the access token scopes, but also ensures the
sub claim is associated to what the API would classify as an existing user then you may need to have a test-user created (ideally you would have a separate tenant/domain for testing so all the users there would end-up being test users) and then perform a resource owner password credentials grant as a quick (and easily automated) way to obtain an end-user based access token for testing.