π Authentication
Skycaster uses API key-based authentication to secure requests. Every request to our endpoints must include your unique API key.
π§Ύ How It Works
After signing up and creating an account on the Skycaster Dashboardβ, youβll receive a personal API key.
Include this key in every API call either as a query parameter or as a header.
π Base URL
https://skycaster.tv/api/public/v1/
All API endpoints are relative to this base URL.
β Using API Key
π Query Parameter
Append your API key to the URL like so:
curl -X GET 'https://skycaster.tv/api/public/v1/weather?apiKey=YOUR_API_KEY_HERE'
π§Ύ HTTP Header
Alternatively, include the API key in the Authorization header:
curl -X GET 'https://skycaster.tv/api/public/v1/weather' \
-H 'Authorization: Bearer YOUR_API_KEY_HERE'
Tip: The header method is more secure and is recommended for production usage.
π« Invalid or Missing API Key
If your API key is invalid or not included, the API will return an error response:
{
"error": "Unauthorized",
"message": "API key is missing or invalid."
}
π‘οΈ Security Best Practices
- Keep your API key secret β never expose it in frontend code or public repositories.
- Make requests from a secure, server-side environment whenever possible.
- Rotate your key regularly and revoke any compromised credentials.
- Store the key securely using environment variables or secrets managers.
π Need Assistance?
If you have questions or need support:
- Contact Support: Reach out via our Support Pageβ.
- Email Us: Send inquiries to support@skycaster.tv.
Last updated on