Authentication


All Edgecom APIs use HTTPS and require authentication on every request. The method depends on which product you're integrating with.

Overview

ProductMethodHeader
pTrackAPI KeyX-API-Key: your_key
Demand ResponseAPI KeyX-API-Key: your_key
dataTrackAPI KeyX-API-Key: your_key
NeuraChargeAPI KeyX-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"
  }
}
🚫

A 401 usually 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

ProductMethodHeader
pTrackAPI KeyX-API-Key: your_key
Demand ResponseAPI KeyX-API-Key: your_key
dataTrackAPI KeyX-API-Key: your_key
NeuraChargeAPI KeyX-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"
  }
}