Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    Invalid API Key", "errorCode": "AG8004",

    NodeJS SDK
    2
    4
    18
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      satishdwivedi last edited by satishdwivedi

      dear ,
      it work best but from today it stopped working angel one smart api team iam facing problem with api invalid api key with error code ag8004 please fix this
      client id AABL494805
      ihave generated api key secret key multiple time also grnerate auth and refresh token multiple time but it not working facing error "Invalid API Key", "errorCode": "AG8004"," please fix it
      thank you

      A 1 Reply Last reply Reply Quote 0
      • A
        admin @satishdwivedi last edited by

        @satishdwivedi This error happens due to following reasons:

        1. API key used in login is not the same as API key generated
        2. API key used in login is different from the API key used in other API's request.

        Request you to check the same. In case you are still unable to figure it out, you can share the API request snippet and API key screenshot here.

        S 1 Reply Last reply Reply Quote 0
        • S
          satishdwivedi @admin last edited by satishdwivedi

          @admin Dear Sir, please check my client ID AABL494805. all was working fine earlier, but it has not been working since yesterday. I am sharing the console screenshot.

          Screenshot node 2025-09-30 131455.png

          API Key: lkbvu3qc
          Issue: Unable to fetch the 1st 3-minute candle data using auth and refresh token.
          Kindly check at your end.
          if need i will upload the complete code

          A 1 Reply Last reply Reply Quote 0
          • A
            admin @satishdwivedi last edited by

            @satishdwivedi Your screenshot is not visible.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post