Navigation

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

    Invalid API Key: Historical Data and Market Data

    Bugs
    @admin
    1
    1
    11
    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.
    • D
      Dibyendu1997 last edited by

      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

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