API conventions
These conventions apply across the Lightning Cloud API. The API reference is the authoritative source for each endpoint.
Base URL and versioning
https://api.<region>.voltagepark.com/v1/...Choose the region where your fleet runs. See Regions & endpoints. All public endpoints are under /v1.
The downloadable OpenAPI specification is linked from the footer of every page.
Authentication
Send a bearer token on every request:
Authorization: Bearer <token>See Authentication.
Request and response format
- Request and response bodies are JSON. Send
Content-Type: application/jsonwith a body. - Field names are
camelCase. - Identifiers:
fleetIdis a UUID, andnodeIdis the node'snodeName(for exampleg1234). In storage view URLs,{view}is the mount point without its leading slash (/databecomesdata). - Sizes are in bytes.
Timestamps
Most lifecycle timestamps on fleets, nodes, and history events (requestedAt, createdAt, updatedAt, provisionedAt, eventTimestamp) are Unix epoch milliseconds, UTC:
{ "createdAt": 1755817319000 }Some newer fields are RFC 3339 strings, UTC, for example kubeconfig expiresAt and the audit export's windowStart, windowEnd, and expiresAt:
{ "expiresAt": "2026-12-31T23:59:59Z" }Check the API reference for the type of each field. Don't assume one format everywhere.
Pagination
List endpoints that can return many items use cursor pagination:
| Parameter | Description |
|---|---|
limit |
Maximum number of items to return. |
nextToken |
Opaque cursor from the previous response. |
next=""
while :; do
page=$(curl -s "$API_URL/v1/fleets/$FLEET_ID/nodes?limit=100${next:+&nextToken=$next}" \
-H "Authorization: Bearer $TOKEN")
echo "$page" | jq -c '.nodes[]'
next=$(echo "$page" | jq -r '.nextToken // empty')
[ -z "$next" ] && break
done- Treat
nextTokenas opaque and pass it back unchanged (URL-encode it if needed). - Stop when
nextTokenis absent ornull. A page can contain fewer items thanlimit, or none at all, while more pages remain. - Paginated endpoints:
GET /v1/fleets,GET /v1/fleets/{fleetId}/nodes,GET /v1/fleets/{fleetId}/history.
Idempotency
Mutations that support it accept an Idempotency-Key header. The first response to a key is stored, and any later request with the same key gets that stored response back without running the operation again.
KEY=$(uuidgen) # one key per logical operation
curl -X POST ... -H "Idempotency-Key: $KEY"
# No response (timeout or network error)? Retry with the SAME key.| Situation | Response |
|---|---|
| Same key, same request, already answered | The stored first response, including its status code. |
| Same key, original still in progress | 409 Conflict with "error": "request_in_progress". Wait about 5 seconds and retry with the same key. |
| Same key, different body, method, path, or organization | 422 Unprocessable Entity with "error": "idempotency_key_mismatch". Use a new key. |
Two consequences:
- Retrying doesn't show progress. If the first response was
202 Accepted, retries return202even after the operation finishes. Poll the matching read endpoint for the outcome. - A failed
POSTstays failed for that key. Error responses toPOSTrequests are stored too, so retrying with the same key returns the same error. Check the resource's current state, then start again with a new key if the operation still needs to run. (ForDELETE, a5xxerror is not stored, so retrying with the same key runs the request again.)
Operations that accept Idempotency-Key:
POST /v1/sshkeys,DELETE /v1/sshkeys/{sshKeyId}POST /v1/fleets/{fleetId}/sshkeys,DELETE /v1/fleets/{fleetId}/sshkeys/{sshKeyId}POST /v1/fleets/{fleetId}/nodes/{nodeId}/powerPOST /v1/fleets/{fleetId}/storage/modifyPOST /v1/fleets/{fleetId}/storage/viewsPOST /v1/fleets/{fleetId}/cluster-validationPOST /v1/fleets/{fleetId}/kubernetes-v2/nodes/{nodeId}/cordon,/uncordon,/drain
Other mutations are idempotent by design: storage view PATCH and DELETE act on the resource's state, and POST /v1/audit-logs/export returns the existing archive for the day.
Asynchronous operations
Operations that take time return 202 Accepted. Poll the matching read endpoint, honor any Retry-After header, and back off between polls. See the table in Core concepts.
Errors
Most errors return a JSON body with a machine-readable error code and a human-readable message:
{
"error": "NOT_FOUND",
"message": "Fleet not found. Please verify the identifier and try again.",
"details": {}
}| Field | Description |
|---|---|
error |
Machine-readable error code, such as NOT_FOUND. Branch on this, not on message. |
message |
Human-readable explanation. The wording can change. |
details |
Optional structured detail, such as per-field validation errors. |
Some endpoints add their own fields (for example, fleet health returns fleetId and status with a 422), and a few errors are plain text. Check the Content-Type header, and keep the raw body when the expected fields are missing.
Retries
| Status | Retry? |
|---|---|
| No response (timeout or network error) | Yes, with the same Idempotency-Key. |
409 with request_in_progress |
Yes, after about 5 seconds, with the same key. |
429, 500, 502, 503 |
Yes, with exponential backoff and jitter. For a POST with an Idempotency-Key, the error is stored with the key, so check the resource's state first and retry with a new key. |
Other 4xx |
No. Fix the request first. |
Was this page helpful?
Thanks for the feedback.