Market Data Feed Authorize V3 - getting 401 response

hi there
im gettting 401 response
here is my code:
const url = ‘https://api.upstox.com/v3/feed/market-data-feed/authorize’;
const upstox_access_token1 = ‘not sharing’;

const response = await axios.post(url,{
  headers: {
    Authorization: `Bearer ${upstox_access_token1}`,
    Accept:'application/json'
  }}
);
console.log('WebSocket URL fetched:', response.data);

Hi @Vishnu_Devasi,

Welcome to the Upstox Community!

Let us check this and get back to you, thanks.

Hi @Vishnu_Devasi
A 401 error indicates that the access token is invalid. To resolve this, please regenerate your access token and try again.

You can use the following cURL command to test out if you are getting correct websocket url response.

curl --location 'https://api.upstox.com/v3/feed/market-data-feed/authorize' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {your_access_token}'

For guidance on token generation, refer to this document: Token Generation Documentation.

Thank you.