Authorization header of every request.
Create an API token
You will first need to have an Upsun account and create an API Token via the Console.Exchange for an access token
Use the token exchange endpoint to get a short-lived access token:Make authenticated requests
Include the access token in theAuthorization header:
Base URL: All API requests go to
https://api.upsun.com.Token lifecycle
Access tokens expire after 15 minutes. Your application should handle re-authentication by exchanging the API token again when a request returns
401 Unauthorized.