403 Forbidden Error

i am doing login used mobile number and otp is been also entered , after entering the passcode.
the page is rendered to https://api.upstox.com/?code=v6sRcx&state=your_state
and
{
“message”: “Forbidden”
}
is displayed.
guide me.
i am using Node,Express,React,Mongodb.
tell me where i am getting stuck.

The callback URL you have set appears to be incorrect, or you might be using the outdated v1 API. The latest v2 API can be accessed at https://api.upstox.com/v2.

For proper authentication procedures, please refer to the steps outlined at Authentication | Upstox Developer API.

if i https://api.upstox.com/v2 then i see an error
// https://api.upstox.com/v2

{
“status”: “error”,
“errors”: [
{
“errorCode”: “UDAPI100060”,
“message”: “Resource not Found.”,
“propertyPath”: null,
“invalidValue”: null,
“error_code”: “UDAPI100060”,
“property_path”: null,
“invalid_value”: null
}
]
}
and
Swagger UI use " / " then swagger UI page is opened

Please adjust your redirect_uri URL. It is currently incorrectly set to https://api.upstox.com/v2/. Instead, it should be configured to match your domain, where you handle the callback request.

Also, we kindly ask that you refrain from opening multiple threads for the same issue.