Download OpenAPI specification:Download
Send a feedback to the user for the badge reader.
stationId required | integer >= 1 The identifier of the station. |
X-Knot-Date required | integer Unix epoch in milliseconds of when the request was made. |
X-Api-Key required | string The Api Key used to sign this request. |
status required | integer Enum: 0 1 2 Status of the feedback send to the user:
|
spot | integer [ 1 .. 32 ] REQUIRED FOR V6 STATION. The identifier of the spot to which to send the badge feedback. |
{- "status": 0,
- "spot": 1
}
{- "code": 0,
- "message": "Success"
}
Set a value for the specified configuration on a station. The station should be online to receive the new config value.
stationId required | integer >= 1 The identifier of the station. |
X-Knot-Date required | integer Unix epoch in milliseconds of when the request was made. |
X-Api-Key required | string The Api Key used to sign this request. |
config required | string Enum: "volume" "alarm-threshold" The name of the configuration to edit. |
value required | integer [ 0 .. 100 ] The value of the configuration. |
{- "config": "volume",
- "value": 100
}
{- "code": 0,
- "message": "Success"
}
Enable a station.
stationId required | integer >= 1 The identifier of the station. |
X-Knot-Date required | integer Unix epoch in milliseconds of when the request was made. |
X-Api-Key required | string The Api Key used to sign this request. |
{- "code": 0,
- "message": "Success"
}
Get a station's information and current state.
stationId required | integer >= 1 The identifier of the station. |
X-Knot-Date required | integer Unix epoch in milliseconds of when the request was made. |
X-Api-Key required | string The Api Key used to sign this request. |
{- "code": 0,
- "message": "Success",
- "data": {
- "station_id": 1,
- "model_name": "N5",
- "manufacturer": "Knot",
- "model_type": "station+ac",
- "energy_source": "grid",
- "badge_reader_per_spot": true,
- "spots_count": 4,
- "activation_date": "2021-02-01T09:46:54.000Z",
- "online": true,
- "spots": [
- {
- "spot_id": 1,
- "vehicle": 643,
- "lock": 0
}
]
}
}
Get the list of enabled stations.
X-Knot-Date required | integer Unix epoch in milliseconds of when the request was made. |
X-Api-Key required | string The Api Key used to sign this request. |
{- "code": 0,
- "message": "Success",
- "data": [
- {
- "station_id": 1,
- "spots_count": 8,
- "activation_date": "2021-02-01T09:46:54.000Z",
- "online": true
}
]
}
Get the list of disabled stations.
X-Knot-Date required | integer Unix epoch in milliseconds of when the request was made. |
X-Api-Key required | string The Api Key used to sign this request. |
{- "code": 0,
- "message": "Success",
- "data": [
- {
- "station_id": 1,
- "spots_count": 6
}
]
}
Define a label and optional group to the station (custom name defined by the customer).
stationId required | integer >= 1 The identifier of the station. |
X-Knot-Date required | integer Unix epoch in milliseconds of when the request was made. |
X-Api-Key required | string The Api Key used to sign this request. |
label required | string [ 1 .. 50 ] characters The new label of the station. |
group | string or null [ 1 .. 50 ] characters The new group of the station |
{- "label": "string",
- "group": "string"
}
{- "code": 0,
- "message": "Success"
}
Define the location of the station.
stationId required | integer >= 1 The identifier of the station. |
X-Knot-Date required | integer Unix epoch in milliseconds of when the request was made. |
X-Api-Key required | string The Api Key used to sign this request. |
latitude required | number [ -90 .. 90 ] New latitude of the location of the station. |
longitude required | number [ -180 .. 180 ] New Longitude part of the location of the station. |
{- "latitude": 48.5900027,
- "longitude": 7.7531998
}
{- "code": 0,
- "message": "Success"
}
Confirm the locking of a station and transfer vehicle power info.
stationId required | integer >= 1 The identifier of the station. |
X-Knot-Date required | integer Unix epoch in milliseconds of when the request was made. |
X-Api-Key required | string The Api Key used to sign this request. |
spot required | integer [ 1 .. 32 ] The identifier of the spot to which to send the lock response. |
accepted required | integer Enum: 0 1 2 Response status of the vehicle's lock on the station:
|
{- "spot": 1,
- "accepted": 0
}
{- "code": 0,
- "message": "Success"
}
Ping a station.
stationId required | integer >= 1 The identifier of the station. |
X-Knot-Date required | integer Unix epoch in milliseconds of when the request was made. |
X-Api-Key required | string The Api Key used to sign this request. |
{- "code": 0,
- "message": "Success"
}
Ask a station to reboot.
stationId required | integer >= 1 The identifier of the station. |
X-Knot-Date required | integer Unix epoch in milliseconds of when the request was made. |
X-Api-Key required | string The Api Key used to sign this request. |
{- "code": 0,
- "message": "Success"
}
Request a scan of all spots of a station. For each spot with a vehicle in, the station will re-send the locked event.
stationId required | integer >= 1 The identifier of the station. |
X-Knot-Date required | integer Unix epoch in milliseconds of when the request was made. |
X-Api-Key required | string The Api Key used to sign this request. |
spot | integer [ 1 .. 32 ] Optional, the identifier of the spot. If specified, only this spot will re-scan the vehicle locked in. |
{- "spot": 5
}
{- "code": 0,
- "message": "Success"
}
Unlock the specified spot of a station. If the vehicle contained in the spot has a IoT module handled by Knot, the vehicle will be also unlocked.
stationId required | integer >= 1 The identifier of the station. |
X-Knot-Date required | integer Unix epoch in milliseconds of when the request was made. |
X-Api-Key required | string The Api Key used to sign this request. |
spot required | integer [ 1 .. 32 ] The identifier of the spot to unlock. |
unlock required | integer [ 1 .. 9007199254740991 ] An identifier to track this unlock request. This will be sent back in the unlocked event. |
ignore_vehicle_response | boolean Ignore the vehicle unlock response if there is vehicle with IoT on the spot. Useful for maintenance as it allow to unlock a spot with a broken or unavailable vehicle. |
{- "spot": 5,
- "unlock": 57853,
- "ignore_vehicle_response": true
}
{- "code": 0,
- "message": "Success"
}