Getting invalid token error when trying to acess Mautic API

Have been getting 401 error when trying to acess Mautic API
I get this error

{
  "errors": [
    {
      "message": "The access token provided is invalid.",
      "code": 401,
      "type": "invalid_grant"
    }
  ]
}

Your software
My Mautic version is: 4.2.1
My PHP version is:
My Database type and version is:

Your problem
My problem is: API Integration

These errors are showing in the log:

Steps I have tried to fix the problem: Creating another API credential, clearing cache