Device discovery process


I have built device types to the rest api of a HTTP gateway that works quite well. The API that I’m developing to does enable discovery of devices that are attached to it. Is there any way to hook into the device discovery process so that devices could be automatically configured to SmartThings?