Unfortunately we do not have the feature of the trusted devices from API. However, I would like to forward this to our product management.
Such ideas are always welcome, although I cannot promise when or if this Feature will be implemented, as the decision is based on public demand. Nevertheless, your feedback is very important to us as we want to continue to develop TeamViewer based on our user's needs and demands. We will be happy to inform you about realization of this feature.
If you have any further questions on our product, please feel free to share your ideas or requests.