How to activate a Bearer Token for access to APIs
What is an API?
An application programming interface (API) is a set of subroutines, functions and procedures (or methods in object-oriented programming) that provides certain libraries and functions for use by other software as an abstraction layer.
How does our domain API work?
The domain API allows domain management in a simple way using standard HTTP requests.
The RESTful API with Bearer Token identification, whose functions are simple, powerful and intuitive, allow you to obtain information or execute actions.
Consult the available functions and their technical documentation at
https://sandbox-api.swhosting.com/docs
How do I get my Bearer Token?
Important: Your token is in your SWPanel.
info Remember that in order to access the API you need to validate your customer account.
The first step is to activate your token. Log in to your SWPanel.
Once inside go to the Customer Dashboard, you will find it in the top right menu that appears when you hover over your name.
info_capture The screenshot is for guidance only. It was taken on version 2024.07.0134 with date 30/10/2024. It may differ from what the current version of SWPanel displays.
At the bottom of the client Dashboard, you will see the APIs and development tools section, here you can activate your Bearer Token.
info_capture The screenshot is for guidance only. It was taken on version 2024.07.0134 with date 30/10/2024. It may differ from what the current version of SWPanel displays.
Once activated, you can start using SW Hosting domain APIs.
For more details, you can take a look at the post published on SW Hosting's blog.