Legacy Dev Forum Posts

 View Only

Sign Up

Invalid login credentials on Outbound API

  • 1.  Invalid login credentials on Outbound API

    Posted 06-05-2025 18:19

    marcoflopes | 2021-05-10 13:00:50 UTC | #1

    Hello everyone,

    I need help with Outbound API. We have created a service that allows the customer to create, delete and edit dnc lists.

    It works very well, however, after a while, I start getting the exception "INFO a.c.h.e.i.DefaultHttpExceptionHandler - Invalid login credentials."

    Why does this exception occur? The oauth user is allowed to edit the lists.

    Thanks


    John_Carnell | 2021-05-10 13:20:10 UTC | #2

    Hi Marco,

    It sounds to me like your OAuth2 token has expired. When you set up your OAuth2 client you set a token expiration date. If you are using the Code Auth OAuth2 flow you can leverage refresh token otherwise you need to do a complete re-authorization.

    The maximum time a token is valid is 48 hours.

    Take a look at our OAuth2 documentation here. Please let me know if you any other questions or concerns, I am thinking about putting together some new documentation on our OAuth2 API and I would love feedback.

    Thanks, John Carnell Manager - Developer Engagement


    system | 2021-06-10 13:20:13 UTC | #3

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 10860