Managed Service for TimescaleDB has an API for integration and automation tasks. For information about using the endpoints, see the API Documentation. MST offers an HTTP API with token authentication and JSON-formatted data. You can use the API for all the tasks that can be performed using the web console. To get started you need to first create an authentication token, and then use the token in the header to use the API endpoints.
- Sign in to your Managed Service for TimescaleDB portal.
User Informationin the top right corner.
- In the
User Profilepage, navigate to the
- In the
Generate access tokendialog, type a descriptive name for the token and leave the rest of the fields blank.
- Copy the generated authentication token and save it.
Set the environment variable
MST_API_TOKENwith the access token that you generate:
To get the details about the current user session using the
The output looks similar to this:
Found an issue on this page?Report an issue!