Novasense Portal API
The Novasense Portal API provides programmatic access to your solar asset data, performance metrics, and analytics. This RESTful API uses OAuth 2.0 authentication and returns JSON responses.
OpenAPI Documentation
Complete API reference with all available endpoints, request/response schemas, and interactive testing:
https://api.prd.portal.novasense.ch/v2/docs
Getting Started
Request API Access
API access credentials are not self-service. To get started:
- Contact Novasense Support at info@novasense.ch
- Request API access credentials (Client ID and Client Secret)
- Receive your credentials securely from the support team
Authentication
The API uses OAuth 2.0 Client Credentials flow for authentication. You'll need to obtain an access token before making API requests.
Obtaining an Access Token
Token Endpoint:
POST https://auth.prd.portal.novasense.ch/realms/novasense/protocol/openid-connect/token
Request Headers:
Content-Type: application/x-www-form-urlencoded
Request Body:
grant_type=client_credentials
client_id=YOUR_CLIENT_ID
client_secret=YOUR_CLIENT_SECRET
Example using cURL:
curl -X POST https://auth.prd.portal.novasense.ch/realms/novasense/protocol/openid-connect/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials" \
-d "client_id=YOUR_CLIENT_ID" \
-d "client_secret=YOUR_CLIENT_SECRET"
Example Response:
{
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
"expires_in": 300,
"refresh_expires_in":0,
"token_type": "Bearer",
"not-before-policy": 0,
"scope": "api-external-audience profile email"
}
Using the Access Token
Include the access token in the Authorization header of your API requests:
Authorization: Bearer YOUR_ACCESS_TOKEN
Example API Request:
curl -X GET https://api.prd.portal.novasense.ch/v2/YOUR_ENDPOINT \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Token Management
Token Validity
- Access tokens are valid for 5 minutes (
expires_in: 300seconds) - No refresh tokens are provided
- You must request a new access token when the current one expires
Best Practices
- Cache tokens and reuse them until they expire
- Request a new token before the current one expires (e.g., 30 seconds before)
- Minimize authentication requests to reduce unnecessary overhead
Usage Policy and Rate Limiting
The Novasense Portal API is designed for moderate, programmatic usage.
Important Notes
- API usage may be restricted based on request volume and patterns
- Rate limits are applied to ensure fair usage and system stability
- Specific rate limits and usage policies are not publicly documented
Guidelines
To ensure continued API access:
- Cache responses where appropriate to reduce redundant requests
- Implement exponential backoff for retries on errors
- Avoid polling at high frequencies
- Contact Novasense Support to discuss your specific use case and expected usage patterns
Need Higher Limits?
If your use case requires higher API throughput or specific SLAs, please contact info@novasense.ch to discuss custom arrangements.
Support
For questions, issues, or feature requests related to the API:
- Email: info@novasense.ch
- API Documentation: https://api.prd.portal.novasense.ch/v2/docs