Skip to content

Commit 90689e7

Browse files
committed
Document Page parameter in Vehicle listing | REL: #758
1 parent 02dd2bd commit 90689e7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/api-basics/vehicles.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,19 @@ One potentially confusing part of Tesla's API is the switching use of the `id` a
1212

1313
For the state and command APIs, you should be using the `id` field. If your JSON parser doesn't support large numbers (>32 bit), then you can use the `id_s` field for a string version of the ID.
1414

15-
## GET `/api/1/vehicles`
15+
## GET `/api/1/vehicles?page={page}`
1616

1717
Retrieve a list of your owned vehicles.
1818

19+
The list is limited to a maximum of 100 entries. Use the `page` GET parameter to iterate over the response page and use
20+
the response `count` variable to determine if another request should be made.
21+
1922
### Request parameters
2023

24+
| Field | Example | Description | Required | Default
25+
|:-------|:--------|:----------------|:---------|:--------|
26+
| `page` | `1` | The page number | no | 1 |
27+
2128
### Response
2229

2330
```json

0 commit comments

Comments
 (0)