Home Forums The XBRL API Issue with Authentication API

Viewing 2 reply threads
  • Author
    Posts
    • #186136
      Ajit Vasudevan
      Participant

      Hello,

      I am trying to create/generate the auth token, but I am getting the following error from the https://api.xbrl.us/oauth2/token end point

      {
      “error”: “invalid_client”,
      “error_description”: “Bad Client”
      }

      I checked the client ID and secret multiple times.

      The following is the raw body (masked client id and secret):

      grant_type:password
      client_id:XXXXXXXXXXXXXXXXX
      client_secret:XXXXXXXXXXXXXXXXXXX
      username:username
      password:pass
      platform:pc

      Any assistance would be much appreciated.

      Thanks
      Aj

    • #186139
      David Tauriello
      Keymaster

      Hi Ajit – what are you using to POST – ? – Insomnia, Postman or another testing client, or are you writing code in a language – ?

      There are instructions for Insomnia posted at the end of the PDF documentation.

      If you’re working in a language, check out the resources for PHP, Python and R linked in the list of free resources on the XBRL Data Community. Briefly, you need to POST body, and encoding to the token URL, then use the access_token as “Bearer $token” with your query.

      If you’re still having an issue, post back and share the code you have and language you’re using.

      David

    • #186198
      Ajit Vasudevan
      Participant

      Thanks David. It works now. The issue was with the username and password

Viewing 2 reply threads
  • You must be logged in to reply to this topic.

Upcoming XBRL US Events

FERC: How Regulators Use Technology to Improve Efficiency
Wednesday, September 11, 2024

Domain Steering Committee Meeting
Tuesday, September 17, 2024

Communications & Services Steering Committee Meeting
Tuesday, September 17, 2024

Center for Data Quality Committee Meeting
Wednesday, September 25, 2024

Digital Reporting for Measurable Results: Climate, Corporate, Government
Thursday, November 14, 2024