realtime
Vesta API · 6.0.77 · Community with mTLS
GET/api/v1/config/realtimeGet Realtime Config
Get real-time configuration for the client.
Authentication
Responses
200
Successful response
application/json
Schema
{
"additionalProperties": false,
"properties": {
"enablePolling": {
"type": "boolean"
},
"enableWebSocket": {
"type": "boolean"
},
"pollingInterval": {
"type": "integer"
},
"wsMaxReconnectAttempts": {
"type": "integer"
},
"wsReconnectDelay": {
"type": "integer"
}
},
"required": [
"enableWebSocket",
"enablePolling",
"pollingInterval",
"wsReconnectDelay",
"wsMaxReconnectAttempts"
],
"type": "object"
}401
Bearer absent, invalid, disabled, stale or organization unavailable
Headers
{
"WWW-Authenticate": {
"schema": {
"type": "string"
}
}
}application/json
Schema
{
"anyOf": [
{
"additionalProperties": false,
"properties": {
"detail": {
"type": "string"
}
},
"required": [
"detail"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"const": "Invalid tenant credentials",
"type": "string"
}
},
"required": [
"detail"
],
"type": "object"
}
]
}403
Only in demo deployment mode: ordinary API surface is denied before handlers
Headers
{
"X-Vnbui-Environment": {
"schema": {
"type": "string"
}
},
"X-Vnbui-Simulated": {
"schema": {
"type": "string"
}
}
}application/json
Schema
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "DEMO_POLICY_DENIED",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
},
"environment": {
"const": "demo",
"type": "string"
},
"simulated": {
"const": true,
"type": "boolean"
}
},
"required": [
"detail",
"environment",
"simulated"
],
"type": "object"
}500
Unhandled exception outside route-level conversion; body is plain text
text/plain
Schema
{
"const": "Internal Server Error",
"type": "string"
}GET/api/v1/updatesGet Updates
Best-effort process-local invalidations, not lossless history. contract=2 returns ordered items and an opaque continuation bound to this process and authenticated organization/user/role. History retains at most 1000 events for 300 seconds. Initial/missing, expired, overflowed, restarted or different-worker/scope cursors explicitly require authoritative full-state resynchronization. Capture next_cursor, read snapshots, then continue from that cursor. Socket messages are hints; use this feed for continuation. The legacy since array is deprecated. It returns the oldest matching limit with strict greater-than timestamps; ties and limits cannot prove completeness. since requires Z or an explicit UTC offset; malformed/naive values return 400.
Parameters
since · query · Optional
Deprecated aware ISO8601 timestamp; oldest-first limited array, no completeness guarantee
{
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Deprecated aware ISO8601 timestamp; oldest-first limited array, no completeness guarantee",
"title": "Since"
}limit · query · Optional
{
"default": 100,
"maximum": 500,
"minimum": 1,
"title": "Limit",
"type": "integer"
}contract · query · Optional
Set 2 for the cursor envelope
{
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Set 2 for the cursor envelope",
"title": "Contract"
}cursor · query · Optional
Opaque continuation from contract=2
{
"anyOf": [
{
"maxLength": 2048,
"type": "string"
},
{
"type": "null"
}
],
"description": "Opaque continuation from contract=2",
"title": "Cursor"
}Authentication
Responses
200
Successful Response
application/json
Schema
{
"anyOf": [
{
"$ref": "#/components/schemas/RealtimePage"
},
{
"items": {
"$ref": "#/components/schemas/LegacyRealtimeEvent"
},
"type": "array"
}
],
"title": "Response Get Updates Api V1 Updates Get"
}400
Stable coded contract, cursor or timestamp refusal; no cursor content is echoed.
application/json
Schema
{
"anyOf": [
{
"$ref": "#/components/schemas/RealtimeErrorResponse"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "realtime_contract_unsupported",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
}
},
"required": [
"detail"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "realtime_cursor_contract_required",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
}
},
"required": [
"detail"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "realtime_parameters_conflict",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
}
},
"required": [
"detail"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "realtime_cursor_invalid",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
}
},
"required": [
"detail"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "realtime_timestamp_invalid",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
}
},
"required": [
"detail"
],
"type": "object"
}
]
}Examples
{
"invalid_cursor": {
"value": {
"detail": {
"code": "realtime_cursor_invalid",
"message": "Invalid realtime cursor"
}
}
},
"unsupported_contract": {
"value": {
"detail": {
"code": "realtime_contract_unsupported",
"message": "Unsupported realtime contract"
}
}
}
}401
Bearer absent, invalid, disabled, stale or organization unavailable
Headers
{
"WWW-Authenticate": {
"schema": {
"type": "string"
}
}
}application/json
Schema
{
"anyOf": [
{
"additionalProperties": false,
"properties": {
"detail": {
"type": "string"
}
},
"required": [
"detail"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"const": "Invalid tenant credentials",
"type": "string"
}
},
"required": [
"detail"
],
"type": "object"
}
]
}403
Only in demo deployment mode: ordinary API surface is denied before handlers
Headers
{
"X-Vnbui-Environment": {
"schema": {
"type": "string"
}
},
"X-Vnbui-Simulated": {
"schema": {
"type": "string"
}
}
}application/json
Schema
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "DEMO_POLICY_DENIED",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
},
"environment": {
"const": "demo",
"type": "string"
},
"simulated": {
"const": true,
"type": "boolean"
}
},
"required": [
"detail",
"environment",
"simulated"
],
"type": "object"
}422
Validation Error
application/json
Schema
500
Unhandled exception outside route-level conversion; body is plain text
text/plain
Schema
{
"const": "Internal Server Error",
"type": "string"
}