ServiceNow Frame.io Integration - Getting 401 error after few successful runs

Hope you are doing well.

We’ve integrated Frame with ServiceNow to retrieve Software Subscription and Storage consumption of the users.

Two integration profiles have been created (2 flows), one to retrieve user information while other to retrieve storage consumption.

Connection URL (API) - https://api.frame.io/v2/
Authorization URL - https://applications.frame.io/oauth2/auth

Using Get OAuth Token (Related link) in ServiceNow, we are generating the tokens. When we generate a new token, it works for 1 Hr (Access token) or few hours sometimes. After that, we expect, Frame to issue a new Access token which fails, and we are receiving 401 error. We’ve validated and confirmed that Refresh token exists, and they are valid.

I’ve attached screenshots that shows both working API and with error after couple of hours.

:
{“headers”:“{"x-request-id":["GEeozk16gEmKEesYncgJ"],"vary":["accept-encoding"],"x-frame-options":["SAMEORIGIN"],"Connection":["keep-alive"],"Date":["Tue, 10 Jun 2025 10:49:44 GMT"],"strict-transport-security":["max-age=31536000; includeSubDomains"],"access-control-expose-headers":["page-number,per-page,total-pages,total,authorization,x-refresh-token,x-session-token,x-expires,x-review-link-id,x-ratelimit-limit,x-ratelimit-window,x-ratelimit-remaining,x-application-env,x-application-instance"],"access-control-allow-origin":["*"],"access-control-allow-credentials":["true"],"x-content-type-options":["nosniff"],"x-xss-protection":["1; mode=block"],"Content-Length":["156"],"cache-control":["max-age=0, private, must-revalidate"],"Content-Type":["application/vnd.api+json; charset=utf-8"]}”,“errInfo”:{“code”:“3”,“message”:“Method failed: (/v2/accounts/a3a97590-c895-4b3b-82ee-10477b9b0abc/teams) with code: 401 - Invalid username/password combo”},“error”:true,“body”:“”,“url”:“accounts/a3a97590-c895-4b3b-82ee-10477b9b0abc/teams”}

Team,

Please find below requested details:

What APIs are you using for this integration?

API Used for the integration - https://api.frame.io/v2/

What specifically is the team trying to accomplish with the APIs?

In ServiceNow, we’ve configured two workflows to connect to this API and populate below tables:

Software Subscription table

Users assigned with frame license is populated in this table.

The below attributes are populated in this table:

Publisher
Product
Software Model
User principal name

Software Subscription Storage

Storage consumption of each Team is populated in this table:

Publisher
Product
Software Model
Size in Bytes
Team name

What exactly is the race condition that they are having the error with?

As explained earlier, we’ve configured two workflows to fetch the below details from frame.

Users assigned with frame license
Storage consumption of each Team

After generating the token, when both the jobs are executed for the first time, API connection is made successfully, and the required details are retrieved.
Second time, when the job is executed, frame.io is not authenticating the API call from ServiceNow and requesting for re-authentication.
If you need additional details, please let us know.

@elahi@adobe.com
@doug.ruggiero@wpp.com FYI