curl --request GET \
--url https://stage-api.getswitch.io/integrations/tasks \
--header 'Authorization: Bearer <token>'import requests
url = "https://stage-api.getswitch.io/integrations/tasks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://stage-api.getswitch.io/integrations/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://stage-api.getswitch.io/integrations/tasks"
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))
}{
"items": [
{
"id": "task-5531",
"vehicle_id": "veh-1042",
"operation_type": "battery_swap",
"priority": "high",
"additional_notes": "Battery at 18%, swap before the evening peak.",
"generated_at": "2026-11-30T08:15:00Z",
"valid_from": "2026-11-30T08:15:00Z",
"valid_until": "2026-11-30T16:00:00Z",
"title": "Battery swap AB123CD",
"labels": [
"centro"
],
"extra_params": {}
}
],
"next_cursor": "NTA=",
"has_more": true,
"total_count": 23
}List Fleet Tasks
Open tasks (work orders such as battery swaps, pickups or maintenance) that your fleet platform holds for vehicles in one location, with priority and validity window. Filtering, sorting and pagination (filter, sort, limit, cursor) apply to the whole list; follow next_cursor while has_more is true. The list is cached for up to 1 minutes.
Integrations talk to the fleet platform your company is linked to (for example Wunder, ATOM or an MDS feed) and return its data in one common format, whatever the platform. They need a fleet integration configured for your company; GET /integrations/availability shows which kinds of data and operations your platform supports.
Failure Modes:
- 401: Token is missing or invalid
- 403:
access_deniedwhen your role or API key lacks the permission below - 404:
no_data_binding(kind: fleet) when no fleet integration is configured for your company;no_data_binding(kind: location) whenlocationis not one of its locations - 422: Invalid parameters, or your fleet platform does not support this (
Unknown provider: ...) - 502: The fleet platform returned an error (
Upstream provider error: ...)
Required Auth Scopes:
integrations:tasks:read
curl --request GET \
--url https://stage-api.getswitch.io/integrations/tasks \
--header 'Authorization: Bearer <token>'import requests
url = "https://stage-api.getswitch.io/integrations/tasks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://stage-api.getswitch.io/integrations/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://stage-api.getswitch.io/integrations/tasks"
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))
}{
"items": [
{
"id": "task-5531",
"vehicle_id": "veh-1042",
"operation_type": "battery_swap",
"priority": "high",
"additional_notes": "Battery at 18%, swap before the evening peak.",
"generated_at": "2026-11-30T08:15:00Z",
"valid_from": "2026-11-30T08:15:00Z",
"valid_until": "2026-11-30T16:00:00Z",
"title": "Battery swap AB123CD",
"labels": [
"centro"
],
"extra_params": {}
}
],
"next_cursor": "NTA=",
"has_more": true,
"total_count": 23
}Authorizations
Query Parameters
Filter on a field of the returned items, as field:op:value (or field:value for eq); repeat the parameter to combine filters (AND). Operators: eq, neq, contains (case-insensitive, text fields), gt, gte, lt, lte (numbers), in (comma-separated values). Nested fields use dots, e.g. extra_params.zone. A filter with an unknown operator is ignored. Example: battery_level:lt:20.
