Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. Dibyendu1997
    3. Posts
    D
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Groups 0

    Posts made by Dibyendu1997

    • Invalid API Key: Historical Data and Market Data

      Hello, I was trying to use the Smart API to fetch historical and market data. Yesterday, it was working, but suddenly, whenever I try to access market data or historical data from the api.

      It is showing, Invalid Api Key. "errorCode": "AG8004"

      Note: I have put the SECRET key of the created app as X-PrivateKey and I kept the header as mentioned in the documentation, but it is still failing.

      Please note that it was working initially, but it has suddenly stopped working as of today. I regenerated new api keys a few times and used them, but they are still not working, same Invalid API key error. I'm attaching a screenshot.

      Screenshot from 2025-09-27 22-13-17.png

      posted in Bugs
      D
      Dibyendu1997