Download OpenAPI specification:Download
To run API, use --api-addr=api.staging.viziosense.ai CLI argument or enable it in config file
This endpoint will return and object with basic user information with access_token and refresh_token. It is recommended to use this method if you are implementing a user interface where each user can login to operate. For M2M (Machine to Machine) communication please use the long lived token instead.
{- "data": {
- "user": {
- "type": "string",
- "name": "string",
- "email": "string",
- "role": [ ]
}, - "token_type": "string",
- "expires_in": 0,
- "access_token": "string",
- "refresh_token": "string"
}
}This endpoint will return a list of devices the current user has access to or unfiltered if the user is admin. It can be sorted filter by name or online status
| sort | string Sort option |
| group | string Filter devices by group |
| is_online | string Filter by device |
{- "data": [
- {
- "uuid": "string",
- "name": "string",
- "client_identifier": "string",
- "refreshed": "string",
- "is_online": 0,
- "geo_city": "string",
- "geo_country": "string"
}
], - "meta": {
- "current_page": 0,
- "from": 0,
- "last_page": 0,
- "per_page": 0,
- "total": 0,
- "to": 0,
- "total_pages": 0
}
}Get device by uuid
| device_uuid required | string unique device UUID |
{- "uuid": "string",
- "name": "string",
- "client_identifier": "string",
- "refreshed": "string",
- "is_online": 0,
- "geo_city": "string",
- "geo_country": "string"
}Update device properties for a given uuid. You can only update certain properties like name, geo_city, geo_country
| device_uuid required | string unique device UUID |
| uuid | string |
| name | string device name |
| client_identifier | string Custom identification for integrator |
| refreshed | string The last time the device status was checked |
| is_online | integer If the device is online or disconnected |
| geo_city | string The city where the device is located |
| geo_country | string The country where the device is located |
{- "uuid": "string",
- "name": "string",
- "client_identifier": "string",
- "refreshed": "string",
- "is_online": 0,
- "geo_city": "string",
- "geo_country": "string"
}{- "uuid": "string",
- "name": "string",
- "client_identifier": "string",
- "refreshed": "string",
- "is_online": 0,
- "geo_city": "string",
- "geo_country": "string"
}This endpoint allow you to request a new image from the device. You will get a response immediately however you need to wait at least 20 seconds for the image to be available. The images link will be valid for 30 mins.
| device_uuid required | string unique device UUID |
{- "data": [
- "_raw_image",
- "_annotated_image"
]
}List all webhooks for your devices and sensors Webhook are handy to get the data through your system without having to be connected to the device
| device_uuid | string |
{- "data": [
- {
- "id": 0,
- "url": "string",
- "webhook_type": "string",
- "status": 0,
- "actions": "string",
- "data": {
- "headers": [
- {
- "name": "string",
- "value": "string"
}
], - "params": [
- {
- "name": "string",
- "value": "string"
}
]
}
}
]
}Adding a new webhook to get notified when a event happens on your device. There's two type of event you can subscribe to: payload and keepalive. Payload send you the data from your device. Keepalive sends you a ping to let you know that the device is alive.
You can add headers to your webhook if you want to authenticate the request like Authorization: Token
It support also get parameter in form of ?param1=value1¶m2=value2
| device_uuid | string |
Parameters of the webhooks to add
| url | string webhook url |
| webhook_type | any Enum: "payload" "keepalive" |
| status | integer Is the webhook active or not |
| actions | string What actions trigger the webhook |
object (WebhookData) Webhook Data This is the data that will be sent to your webhook |
{- "url": "string",
- "webhook_type": "payload",
- "status": 0,
- "actions": "string",
- "data": {
- "headers": [
- {
- "name": "string",
- "value": "string"
}
], - "params": [
- {
- "name": "string",
- "value": "string"
}
]
}
}{- "error": [ ]
}Update webhook parameters. To activate or deactivate the webhook change the value of active to true or false
| device_uuid | string |
parameters of the webhook to update
| url | string webhook url |
| webhook_type | any Enum: "payload" "keepalive" |
| status | integer Is the webhook active or not |
| actions | string What actions trigger the webhook |
object (WebhookData) Webhook Data This is the data that will be sent to your webhook |
{- "url": "string",
- "webhook_type": "payload",
- "status": 0,
- "actions": "string",
- "data": {
- "headers": [
- {
- "name": "string",
- "value": "string"
}
], - "params": [
- {
- "name": "string",
- "value": "string"
}
]
}
}{- "error": [ ]
}