Communication with SmartThings from third party

Hi @Itati I got that issue resolved. The schema connector was already extracting the tokens using the code being received in the grantCallbackAccess interaction type.
Right now the only issue I’m experiencing is at the time of discovery.
The issue only happens when I add the device to ST app for the first time. The error it shows me is ‘Couldn’t add device: A network or server error occurred. Try again later.’ Although the devices are added and device is linked.
After the first time I unlink and link the device again and everytime it shows success. I checked my logs in my lambda and grantcallback, discovery, and staterefresh are executed successfully and logs are same for the first time as well after first time.