Authentication
All Edgecom APIs use HTTPS and require authentication on every request. The method depends on which product you're integrating with.
Overview
| Product | Method | Header |
|---|---|---|
| pTrack | API Key | X-API-Key: your_key |
| Demand Response | API Key | X-API-Key: your_key |
| dataTrack | API Key | X-API-Key: your_key |
| NeuraCharge | API Key | X-API-Key: your_key |
API Key
pTrack uses static API key authentication. Include your key in the
X-API-Key header on every request.
curl --request GET \
--url https://dev.edgecom.ai/ptrack/ieso/demand/actual/hourly \
--header 'X-API-Key: your_key' \
--header 'accept: application/json'
To get your API key, sign in at https://portal.edgecom.ai/, then click your profile icon (bottom-left), go to API Management, and select Create API Key.
Authentication Errors
If authentication fails, the API returns 401 Unauthorized:
{
"error": {
"code": "unauthorized",
"message": "Missing or invalid API key"
}
}
A401usually means your key is missing, malformed, or revoked. Check for extra spaces — these are the most common mistakes.
Overview
Edgecom APIs use API key authentication across all products. All requests must be made over HTTPS.
API Key (pTrack)
pTrack uses API key authentication. Include your key in the X-API-Key
header with every request:
curl --request GET \
--url https://dev.edgecom.ai/ptrack/ieso/demand/actual/hourly \
--header 'X-API-Key: your_key' \
--header 'accept: application/json'
Contact your Edgecom account manager to obtain your API key.
Summary
| Product | Method | Header |
|---|---|---|
| pTrack | API Key | X-API-Key: your_key |
| Demand Response | API Key | X-API-Key: your_key |
| dataTrack | API Key | X-API-Key: your_key |
| NeuraCharge | API Key | X-API-Key: your_key |
Error Responses
If authentication fails, the API returns a 401 Unauthorized response:
{
"error": {
"code": "unauthorized",
"message": "Missing or invalid API key"
}
}Updated 28 days ago