Home Forums The XBRL API Authenticating before every request?

Viewing 1 reply thread
  • Author
    Posts
    • #114364
      Jim Truscott
      Participant

      If I just post an authentication request before every data request, saves me having to write a bunch of code the check whether the access token is still valid. Any problems with that?

      Refresh token would save me having send to username and password again but I still have to submit a sensitive client secret so not sure what that gains me?

    • #114898
      David Tauriello
      Keymaster

      It would be best if you include code to check whether the token is valid instead of requesting a new token for each request – if you’ve got several calls and each requests a new token, you’ll bottleneck your returns and might impact others who are requesting resources.

      Each token has a lifetime of an hour, after which you can use the refresh token to request a new access token.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.

Upcoming XBRL US Events

Reporting Modernization Work Group Meeting
Tuesday, March 10, 2026

XBRL Reporting for Special Purpose Acquisition Companies
Wednesday, March 11, 2026

Communications & Services Steering Committee Meeting
Tuesday, March 17, 2026

Domain Steering Committee Meeting
Tuesday, March 17, 2026

Center for Data Quality Committee Meeting
Wednesday, March 18, 2026

Standard Government Reporting Work Group Meeting
Tuesday, March 24, 2026

AI Meets Auditing: Build Smarter Accounting Estimates with Multi-Agent LLMs
Wednesday, April 1, 2026

States Step In: Corporate Climate Reporting
Tuesday, April 21, 2026