The application programming interface, also known by the acronym API, is a set of subroutines, functions and procedures (or methods in object-oriented programming) that offers certain libraries and functions to be used by other software as an abstraction layer.
The domain API allows domain management in a simple way, using standard HTTP requests.
The RESTful API with identification by Bearer Token, whose functions are simple, powerful and intuitive, allow you to obtain information or execute actions.
Consult the available functions and their technical documentation in https://ote-api.swhosting.com/apidocs
Important: Your token is in your SW Panel.
The first step will be to activate your Token. Access your SW Panel. Once inside, go to the client Dashboard, you will find it in the top right menu that appears when you place the cursor over your name.
At the bottom of the client Dashboard, you will see the section APIs and development tools; here you can activate your Bearer Token.
Once activated, you can start using the domain APIs of SW Hosting
For more details, you can check out the SW Hosting blog post