List chargers
curl --request GET \
--url https://api.plugchoice.com/sdk/v1/chargers \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.plugchoice.com/sdk/v1/chargers"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.plugchoice.com/sdk/v1/chargers', 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.plugchoice.com/sdk/v1/chargers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.plugchoice.com/sdk/v1/chargers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.plugchoice.com/sdk/v1/chargers")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.plugchoice.com/sdk/v1/chargers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"identity": "<string>",
"connection_status": "never_seen",
"connectors": [
{
"connector_id": 2,
"status": "Available",
"max_amperage": 123,
"current_limit": 123,
"power_type": "AC_1_PHASE"
}
],
"device_type": "charger",
"site_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"capabilities": {
"network_setup": {
"capable": true,
"needs": [
"wifi"
]
},
"electrical_setup": {
"capable": true,
"needs": [
"wifi"
]
},
"reconnect": {
"capable": true,
"needs": [
"wifi"
]
}
},
"created_at": "2023-11-07T05:31:56Z",
"vendor": "<string>",
"model": "<string>",
"serial_number": "<string>",
"firmware_version": "<string>",
"last_connection_at": "2023-11-07T05:31:56Z",
"status": "Available",
"external_user_id": "<string>",
"reference": "<string>",
"setup": {
"phases": 1,
"max_current": 7,
"net_type": "IT",
"phase_rotation": "R"
},
"link_session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"next_cursor": "<string>"
}{
"type": "https://developer.plugchoice.com/sdk/errors/identity-taken",
"title": "Identity already registered",
"status": 123,
"detail": "<string>",
"code": "unauthenticated",
"errors": {},
"site": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"claimable": true,
"vendor_charger": {
"id": "<string>",
"serial": "<string>"
}
}{
"type": "https://developer.plugchoice.com/sdk/errors/identity-taken",
"title": "Identity already registered",
"status": 123,
"detail": "<string>",
"code": "unauthenticated",
"errors": {},
"site": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"claimable": true,
"vendor_charger": {
"id": "<string>",
"serial": "<string>"
}
}API reference
List chargers
Newest first, with what each can do (capabilities): for an integration every charger at a site its team
owns, whether Link added it or not; for a Plugchoice user the chargers at sites they have Sensitive
access to. Filter by user (integrations) or site.
GET
/
chargers
List chargers
curl --request GET \
--url https://api.plugchoice.com/sdk/v1/chargers \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.plugchoice.com/sdk/v1/chargers"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.plugchoice.com/sdk/v1/chargers', 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.plugchoice.com/sdk/v1/chargers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.plugchoice.com/sdk/v1/chargers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.plugchoice.com/sdk/v1/chargers")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.plugchoice.com/sdk/v1/chargers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"identity": "<string>",
"connection_status": "never_seen",
"connectors": [
{
"connector_id": 2,
"status": "Available",
"max_amperage": 123,
"current_limit": 123,
"power_type": "AC_1_PHASE"
}
],
"device_type": "charger",
"site_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"capabilities": {
"network_setup": {
"capable": true,
"needs": [
"wifi"
]
},
"electrical_setup": {
"capable": true,
"needs": [
"wifi"
]
},
"reconnect": {
"capable": true,
"needs": [
"wifi"
]
}
},
"created_at": "2023-11-07T05:31:56Z",
"vendor": "<string>",
"model": "<string>",
"serial_number": "<string>",
"firmware_version": "<string>",
"last_connection_at": "2023-11-07T05:31:56Z",
"status": "Available",
"external_user_id": "<string>",
"reference": "<string>",
"setup": {
"phases": 1,
"max_current": 7,
"net_type": "IT",
"phase_rotation": "R"
},
"link_session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"next_cursor": "<string>"
}{
"type": "https://developer.plugchoice.com/sdk/errors/identity-taken",
"title": "Identity already registered",
"status": 123,
"detail": "<string>",
"code": "unauthenticated",
"errors": {},
"site": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"claimable": true,
"vendor_charger": {
"id": "<string>",
"serial": "<string>"
}
}{
"type": "https://developer.plugchoice.com/sdk/errors/identity-taken",
"title": "Identity already registered",
"status": 123,
"detail": "<string>",
"code": "unauthenticated",
"errors": {},
"site": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"claimable": true,
"vendor_charger": {
"id": "<string>",
"serial": "<string>"
}
}Authorizations
integrationTokenuserToken
Your integration's client credentials (test or live). The token acts as your integration's team and
lasts 1 hour; request a new one when it expires. Send client_id, client_secret and
grant_type=client_credentials. No OAuth scopes are needed.
FlowClient Credentials
- Token URL
- https://app.plugchoice.com/oauth/token
Headers
The API version to answer with (400 unknown-version for one this API does not know). Every response carries the version that answered in the same header.
Available options:
2026-10-07 Query Parameters
Integrations only. Your own id for one of your users.
Required string length:
1 - 200Pattern:
^[A-Za-z0-9._:@-]+$Required range:
1 <= x <= 100next_cursor from the previous page.
⌘I