curl https://api.chargeapi.co/v1/policies/pol_63RXZHIfXAPPKYRkrWNfTCL9997xFuCP \
-H "Authorization: Bearer ch_sk_test_..."
{
"id": "pol_63RXZHIfXAPPKYRkrWNfTCL9997xFuCP",
"object": "policy",
"created": "2026-04-01T00:14:23.114Z",
"description": null,
"metadata": {},
"mode": "enforcement",
"name": "Example Policy",
"rules": {
"allowed_operators": ["example_operator"],
"denied_operators": [],
"geofences": [
{
"center": {
"latitude": 48.8698,
"longitude": 2.3319
},
"name": "Example Zone",
"radius_meters": 1500
}
],
"max_price_per_kwh": 25,
"time_windows": [
{
"days_of_week": ["monday", "tuesday", "wednesday", "thursday", "friday"],
"end_time": "18:00",
"start_time": "09:00"
}
]
},
"status": "active"
}
curl https://api.chargeapi.co/v1/policies/pol_63RXZHIfXAPPKYRkrWNfTCL9997xFuCP \
-H "Authorization: Bearer ch_sk_test_..."
{
"id": "pol_63RXZHIfXAPPKYRkrWNfTCL9997xFuCP",
"object": "policy",
"created": "2026-04-01T00:14:23.114Z",
"description": null,
"metadata": {},
"mode": "enforcement",
"name": "Example Policy",
"rules": {
"allowed_operators": ["example_operator"],
"denied_operators": [],
"geofences": [
{
"center": {
"latitude": 48.8698,
"longitude": 2.3319
},
"name": "Example Zone",
"radius_meters": 1500
}
],
"max_price_per_kwh": 25,
"time_windows": [
{
"days_of_week": ["monday", "tuesday", "wednesday", "thursday", "friday"],
"end_time": "18:00",
"start_time": "09:00"
}
]
},
"status": "active"
}
curl https://api.chargeapi.co/v1/policies/pol_63RXZHIfXAPPKYRkrWNfTCL9997xFuCP \
-H "Authorization: Bearer ch_sk_test_..."
{
"id": "pol_63RXZHIfXAPPKYRkrWNfTCL9997xFuCP",
"object": "policy",
"created": "2026-04-01T00:14:23.114Z",
"description": null,
"metadata": {},
"mode": "enforcement",
"name": "Example Policy",
"rules": {
"allowed_operators": ["example_operator"],
"denied_operators": [],
"geofences": [
{
"center": {
"latitude": 48.8698,
"longitude": 2.3319
},
"name": "Example Zone",
"radius_meters": 1500
}
],
"max_price_per_kwh": 25,
"time_windows": [
{
"days_of_week": ["monday", "tuesday", "wednesday", "thursday", "friday"],
"end_time": "18:00",
"start_time": "09:00"
}
]
},
"status": "active"
}