Introduction to the Astrocast API
Learn how to retrieve your data in your backend system
1. Create an access token
- Go to the Astrocast Portal.
- In the bottom left corner, click on
⚙️ Settings. - Click on
Access Tokens. - Click on
➕ create new access token. - Enter the access token's
Name, set anExpiration dateand assign aRole. - Click on
Create. 🗒️Copy the access token and store it in a safe place.
caution
You are responsible of storing your access token in a secure location. Astrocast cannot retrieve an access token if you lose one.
2. Try the API
- Go on the Astrocast API Reference.
- In the sidebar, click on "Get devices".
- Click on
Try it ▶️button. - Remove all the default parameters by clicking on the
🗑️icon. - Fill-in the
X-Api-Keyheader with the access token generated above. - Click on
Send. - You shoud receive a
200response code and the list of your devices in a JSON body.