cURL
curl --request POST \ --url https://api.velt.dev/v2/livestate/broadcast \ --header 'Content-Type: application/json' \ --header 'x-velt-api-key: <x-velt-api-key>' \ --header 'x-velt-auth-token: <x-velt-auth-token>' \ --data '{ "data": { "organizationId": "<string>", "documentId": "<string>", "liveStateDataId": "<string>", "data": {}, "merge": true } }'
{ "result": { "status": "success", "message": "Event broadcasted successfully.", "data": { "success": true } } }
POST https://api.velt.dev/v2/livestate/broadcast
Show properties
{ "organizationId": "YOUR_ORGANIZATION_ID", "documentId": "YOUR_DOCUMENT_ID", "liveStateDataId": "sample_live_state_data_id", "data": { "status": "active", "message": "Hello World", "customField": "custom value" }, "merge": true }
{ "error": { "message": "ERROR_MESSAGE", "status": "ERROR_CODE" } }
Was this page helpful?