Operator — Energy & Flexibility
Load flexibility control
Sends a load-control command to a group of chargers (e.g., reduce power by 50% across an entire site, or pause all charging for 10 minutes for grid-balancing purposes).
POST
/
operator
/
control
/
flexibility
Load flexibility control
curl --request POST \
--url https://api.telluspower.example.com/v1/operator/control/flexibility \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"target_type": "site",
"target_ids": [
"site_001",
"site_002"
],
"command": "set_power_limit",
"params": {
"power_limit_percent": 50,
"duration": 1800,
"reason": "grid_overload"
}
}
'import requests
url = "https://api.telluspower.example.com/v1/operator/control/flexibility"
payload = {
"target_type": "site",
"target_ids": ["site_001", "site_002"],
"command": "set_power_limit",
"params": {
"power_limit_percent": 50,
"duration": 1800,
"reason": "grid_overload"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
target_type: 'site',
target_ids: ['site_001', 'site_002'],
command: 'set_power_limit',
params: {power_limit_percent: 50, duration: 1800, reason: 'grid_overload'}
})
};
fetch('https://api.telluspower.example.com/v1/operator/control/flexibility', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.telluspower.example.com/v1/operator/control/flexibility",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'target_type' => 'site',
'target_ids' => [
'site_001',
'site_002'
],
'command' => 'set_power_limit',
'params' => [
'power_limit_percent' => 50,
'duration' => 1800,
'reason' => 'grid_overload'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.telluspower.example.com/v1/operator/control/flexibility"
payload := strings.NewReader("{\n \"target_type\": \"site\",\n \"target_ids\": [\n \"site_001\",\n \"site_002\"\n ],\n \"command\": \"set_power_limit\",\n \"params\": {\n \"power_limit_percent\": 50,\n \"duration\": 1800,\n \"reason\": \"grid_overload\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.telluspower.example.com/v1/operator/control/flexibility")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"target_type\": \"site\",\n \"target_ids\": [\n \"site_001\",\n \"site_002\"\n ],\n \"command\": \"set_power_limit\",\n \"params\": {\n \"power_limit_percent\": 50,\n \"duration\": 1800,\n \"reason\": \"grid_overload\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telluspower.example.com/v1/operator/control/flexibility")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"target_type\": \"site\",\n \"target_ids\": [\n \"site_001\",\n \"site_002\"\n ],\n \"command\": \"set_power_limit\",\n \"params\": {\n \"power_limit_percent\": 50,\n \"duration\": 1800,\n \"reason\": \"grid_overload\"\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 123,
"message": "<string>",
"data": {
"control_id": "<string>",
"status": "executing"
}
}Authorizations
OAuth2 client-credentials grant for operator-side integrations.
Obtain an access token by POSTing client_id and client_secret
to /v1/operator/oauth/token. Tokens are valid for 24 hours
(86,400 seconds).
Body
application/json
Available options:
site, operator, all Available options:
set_power_limit, pause_charging Command-specific parameters.
- For
set_power_limit:{ power_limit_percent: int 0–100, duration: int seconds, reason?: string } - For
pause_charging:{ duration: int seconds, reason?: string }
Required when target_type is site or operator.
Response
200 - application/json
Flexibility command issued.
Standard response envelope. code is 0 on success and a non-zero
application code on error (see Error Codes — §14).
⌘I
Load flexibility control
curl --request POST \
--url https://api.telluspower.example.com/v1/operator/control/flexibility \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"target_type": "site",
"target_ids": [
"site_001",
"site_002"
],
"command": "set_power_limit",
"params": {
"power_limit_percent": 50,
"duration": 1800,
"reason": "grid_overload"
}
}
'import requests
url = "https://api.telluspower.example.com/v1/operator/control/flexibility"
payload = {
"target_type": "site",
"target_ids": ["site_001", "site_002"],
"command": "set_power_limit",
"params": {
"power_limit_percent": 50,
"duration": 1800,
"reason": "grid_overload"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
target_type: 'site',
target_ids: ['site_001', 'site_002'],
command: 'set_power_limit',
params: {power_limit_percent: 50, duration: 1800, reason: 'grid_overload'}
})
};
fetch('https://api.telluspower.example.com/v1/operator/control/flexibility', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.telluspower.example.com/v1/operator/control/flexibility",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'target_type' => 'site',
'target_ids' => [
'site_001',
'site_002'
],
'command' => 'set_power_limit',
'params' => [
'power_limit_percent' => 50,
'duration' => 1800,
'reason' => 'grid_overload'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.telluspower.example.com/v1/operator/control/flexibility"
payload := strings.NewReader("{\n \"target_type\": \"site\",\n \"target_ids\": [\n \"site_001\",\n \"site_002\"\n ],\n \"command\": \"set_power_limit\",\n \"params\": {\n \"power_limit_percent\": 50,\n \"duration\": 1800,\n \"reason\": \"grid_overload\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.telluspower.example.com/v1/operator/control/flexibility")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"target_type\": \"site\",\n \"target_ids\": [\n \"site_001\",\n \"site_002\"\n ],\n \"command\": \"set_power_limit\",\n \"params\": {\n \"power_limit_percent\": 50,\n \"duration\": 1800,\n \"reason\": \"grid_overload\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telluspower.example.com/v1/operator/control/flexibility")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"target_type\": \"site\",\n \"target_ids\": [\n \"site_001\",\n \"site_002\"\n ],\n \"command\": \"set_power_limit\",\n \"params\": {\n \"power_limit_percent\": 50,\n \"duration\": 1800,\n \"reason\": \"grid_overload\"\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 123,
"message": "<string>",
"data": {
"control_id": "<string>",
"status": "executing"
}
}