Indexing Issue in DB

Hi, In one of the bots, we have to update DB on daily basis, for this we are dropping previous data with the “Drop DB” API and inserting new data from the client’s API in the same function, here we faced an indexing issue, so we used the “Index DB” API for reindexing, these 2 API’s are working fine for staging, but for production, we are getting a 403 error.

Any possible solution or alternative for this?

Also, Index DB is working fine in production with the latest cookie, any way to get the latest cookie?
Bot id’s-
Production:- x1614863859815
Staging:- x1611051796858 ,x-api-key:- fHL4wZqNDrcX1wPaVmne2fwVQ22UUPt-Ww0YX643

  1. Drop DB Api curl:
    curl --location --request POST ‘https://app.yellow.ai/api/data/datastore/purge-records?bot=botid
    –header ‘authority: app.yellow.ai’
    –header ‘accept: /
    –header ‘Content-Type: application/json’
    –header ‘x-api-key: apikey’
    –data-raw ‘{
    “ttl”: 0,
    “table”: “table_name”
    }’

  2. Index DB Api Curl:
    curl --location --request GET ‘https://app.yellow.ai/api/data/data/reIndex?bot=x1614863859815&collection=product_catalogue_all
    –header ‘authority: app.yellow.ai’
    –header ‘accept: /
    –header ‘accept-language: en-GB,en-US;q=0.9,en;q=0.8’
    –header ‘cookie: G_ENABLED_IDPS=google; __zlcmid=1DAlPTVydkS5jo1; _gcl_au=1.1.1660983064.1669731814; _hjSessionUser_2486628=eyJpZCI6IjhiN2FmZTdhLWE3ODEtNTNiMi1hYzMwLTJhMzAzMjE5ODQ0ZiIsImNyZWF0ZWQiOjE2Njk3MzE4MTQwMzgsImV4aXN0aW5nIjp0cnVlfQ==; ajs_anonymous_id=%2291d24efa-9ade-4101-9dad-8fa5acd77bd1%22; ajs_user_id=%22aravind%40yellow.ai%22; mp_a063233f393369e13c1277b3b3f6edb5_mixpanel=%7B%22distinct_id%22%3A%20%2218519505343f8e-0abf8e6b6b0e45-17525635-1d73c0-185195053441cbd%22%2C%22%24device_id%22%3A%20%2218519505343f8e-0abf8e6b6b0e45-17525635-1d73c0-185195053441cbd%22%2C%22%24initial_referrer%22%3A%20%22%24direct%22%2C%22%24initial_referring_domain%22%3A%20%22%24direct%22%2C%22__alias%22%3A%2087327%2C%22%24user_id%22%3A%2087327%7D; G_AUTHUSER_H=0; _hjSessionUser_2240153=eyJpZCI6ImU5NGQ0MjllLTc4YmYtNWQ2OS1hOWM4LWQ5Njc1MzgzYjlhMiIsImNyZWF0ZWQiOjE2NzYzOTExMzE2MjQsImV4aXN0aW5nIjpmYWxzZX0=; _ga=GA1.2.1409224925.1669731814; _fbp=fb.1.1676391132999.1401882282; _fuid=NDMyY2U2NTctNjBhOC00NjVkLWJhNGEtNDAzMzgzNTIwNTZl; __hstc=13271144.725622d9f26a41531f1d61615fdcbe77.1676391138477.1676391138477.1676391138477.1; hubspotutk=725622d9f26a41531f1d61615fdcbe77; __hssrc=1; _ga_Q1KNN61M40=GS1.1.1676391132.71.1.1676391216.0.0.0; ym_xid=3961c04ff91a1882305b18896a9e73265b4c1b7a81017ad22e85e2bdbac2b96ev1ePuOYyjIBnAqWFkWNPy; mp_f3e9502217a0898772562aafff40d69e_mixpanel=%7B%22distinct_id%22%3A%20%22184ad0c0eadcc1-0dcdd9c2d2f3b2-18525635-1d73c0-184ad0c0eae1456%22%2C%22%24device_id%22%3A%20%22184ad0c0eadcc1-0dcdd9c2d2f3b2-18525635-1d73c0-184ad0c0eae1456%22%2C%22%24initial_referrer%22%3A%20%22%24direct%22%2C%22%24initial_referring_domain%22%3A%20%22%24direct%22%7D; _csrf=y66Fbu8E-eONIlY2q-EioZyqltCQDkO2bP1k; _csrf=MljbnnGn-d2DLEYZf-Nutv6_t2kgb8ZztgT8’
    –header ‘newrelic: eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkJyb3dzZXIiLCJhYyI6IjI1NDYzMTUiLCJhcCI6Ijg2Mzg5OTAwMyIsImlkIjoiZDg3ZjAzNzFjYjFiMmIyZiIsInRyIjoiOTAwNzBjZjJmOGU4NGUzMmQ5YWI5ZjI2YTg4OTNmNDAiLCJ0aSI6MTY3NjQ4MDE5OTUzOH19’
    –header ‘sec-ch-ua: “Not_A Brand”;v=“99”, “Google Chrome”;v=“109”, “Chromium”;v=“109”’
    –header ‘sec-ch-ua-mobile: ?0’
    –header ‘sec-ch-ua-platform: “macOS”’
    –header ‘sec-fetch-dest: empty’
    –header ‘sec-fetch-mode: cors’
    –header ‘sec-fetch-site: same-origin’
    –header ‘traceparent: 00-90070cf2f8e84e32d9ab9f26a8893f40-d87f0371cb1b2b2f-01’
    –header ‘tracestate: 2546315@nr=0-1-2546315-863899003-d87f0371cb1b2b2f----1676480199538’
    –header ‘user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36’