Deployment Manager
edge hardware पर डिप्लॉय किए गए computer vision models का प्रबंधन और निगरानी करें।
परिचय
Roboflow Deployment Manager की मदद से आप एज डिवाइसों पर कंप्यूटर विज़न मॉडल आसानी से सेट अप, डिप्लॉय और मैनेज कर सकते हैं। मॉडल को ट्रेन करने और वर्कफ़्लो बनाने के बाद, यह बड़े पैमाने पर डिप्लॉयमेंट करने के लिए एक ऑल-इन-वन समाधान देता है।
Deployment Manager का इस्तेमाल आप इन कामों के लिए कर सकते हैं:
नए डिवाइसों को Roboflow Inference सर्वर.
डिप्लॉयमेंट में इस्तेमाल के लिए कैमरा स्ट्रीम कॉन्फ़िगर करें।
एज पर वर्कफ़्लो डिप्लॉय करें।
डिप्लॉय किए गए एज डिवाइसों के लॉग, स्ट्रीम की स्थिति और टेलीमेट्री पर नज़र रखें।

मुख्य आवश्यकताएँ:
Deployment Manager, Roboflow द्वारा समर्थित हार्डवेयर के लिए बनाया गया है:
समर्थित: Roboflow के ज़रिए खरीदा गया हार्डवेयर
असमर्थित (अपने जोखिम पर इस्तेमाल करें): NVIDIA Jetson, NVIDIA GPU वाले Debian-आधारित Linux पर चलने वाली x86 मशीनें
अभी समर्थित नहीं: Mac या Windows-आधारित सिस्टम
सेटअप, रिमोट मैनेजमेंट और निगरानी के लिए डिवाइसों को Roboflow से कनेक्ट होना ज़रूरी है। इंटरनेट एक्सेस के बिना किसी साइट पर इन्फ़रेंस चलाने के लिए, अपने डिवाइस को ऑफ़लाइन संचालन के लिए तैयार करें.
एज सेवाएँ
इन्फ़रेंस सर्वर के साथ-साथ, डिवाइस अतिरिक्त Roboflow सेवाएँभी चला सकता है। डिवाइस के Configuration टैब से उन्हें जोड़ें और कॉन्फ़िगर करें। इसका वर्णन डिवाइस कॉन्फ़िगरेशन अपडेट करें.
Event Store डिवाइस पर इन्फ़रेंस इवेंट संग्रहीत करता है। इसमें डेटा को अपने-आप बनाए रखने और वैकल्पिक रूप से क्लाउड में बैकअप लेने की सुविधा है।
OPC UA Server PLCs और SCADA सिस्टम के लिए डेटा को OPC UA टैग के रूप में प्रकाशित करता है।
PLC Relay Allen-Bradley, Modbus TCP या Siemens S7 के ज़रिए PLC टैग पढ़ता और लिखता है।
RTSP Simulator टेस्टिंग के लिए अपलोड की गई वीडियो फ़ाइल को RTSP स्रोत के रूप में स्ट्रीम करता है।
हर सेवा डिवाइस के पते पर अपना HTTP API उपलब्ध कराती है। इनके साझा आधार URL, प्रमाणीकरण और त्रुटि-फ़ॉर्मैट के नियमों के लिए देखें सेवाएँ ।
गाइड
सेटअप
डिवाइस को ऑनलाइन लाने और उस पर वर्कफ़्लो चलाने के लिए सेटअप गाइड का क्रम से पालन करें।
समर्थित हार्डवेयर, कैमरे, नेटवर्क और आउटबाउंड ट्रैफ़िक की आवश्यकताएँ।
नया एज डिवाइस प्रोविज़न करें और उसे अपने खाते में रजिस्टर करें।
वर्कफ़्लो चलाने वाली कैमरा स्ट्रीम कॉन्फ़िगर करें।
कनेक्टिविटी, डिस्क और FPS से जुड़ी समस्याओं के लिए ईमेल अलर्ट चालू करें।
तय करें कि डिप्लॉयमेंट को प्रभावित करने वाले बदलाव कब लागू होंगे।
बदलाव करना
यह बदलाव करना गाइड सेटअप के बाद डिवाइस और स्ट्रीम को अपडेट करने, फिर से कॉन्फ़िगर करने और हटाने के बारे में हैं।
डिवाइस की सेटिंग, सेवा संस्करण और अतिरिक्त सेवाएँ प्रबंधित करें।
क्लाउड से IP एड्रेसिंग, गेटवे, DNS और होस्टनेम सेट करें।
एक्सपोज़र, गेन, फ़ोकस और AI1 कैमरे की अन्य सेटिंग को लाइव समायोजित करें।
GigE Basler या Lucid कैमरे को स्थायी स्थिर IP असाइन करें।
अटके हुए कैमरा कनेक्शन को बहाल करने के लिए PoE पोर्ट को बंद करके फिर चालू करें।
चल रही स्ट्रीम को कुछ समय के लिए रोकें और बाद में फिर से शुरू करें।
ट्रिगर की गई स्ट्रीम पर मांग के अनुसार Workflow चलाएँ।
स्ट्रीम और उसका कॉन्फ़िगरेशन स्थायी रूप से हटाएँ।
विफलता के बाद डिवाइस का कॉन्फ़िगरेशन बहाल करें।
जिस डिवाइस का अब आप उपयोग नहीं करते, उसे स्थायी रूप से हटाएँ।
जानें कि डिवाइस API कुंजियाँ कैसे बनाई जाती हैं, उनका दायरा कैसे तय होता है और उन्हें कैसे रद्द किया जाता है।
निगरानी
ये निगरानी गाइड दिखाती हैं कि स्ट्रीम की स्थिति, लॉग, संसाधन और Event Store की स्थिति कैसे जाँचें।
स्ट्रीम की स्थिति, नवीनतम फ़्रेम और Workflow का विवरण देखें।
Roboflow सेवाओं के लॉग खोजें, फ़िल्टर करें और डाउनलोड करें।
डिस्क, मेमोरी, CPU, GPU और सेवा कंटेनर की स्थिति पर नज़र रखें।
Event Store का उपयोग, बैकअप की प्रगति और इतिहास देखें।
HTTP API
Deployment Manager API की मदद से आप अपने Roboflow Deployment Manager (RFDM) डिवाइसों की प्रोग्राम के ज़रिए निगरानी और प्रबंधन कर सकते हैं।
सभी एंडपॉइंट इस पाथ के अंतर्गत माउंट किए गए हैं: /:workspace/devices/v2 सार्वजनिक API होस्ट पर (https://api.roboflow.com)। रीड एंडपॉइंट के लिए एक सीमित दायरे वाली API कुंजी की आवश्यकता होती है device:read स्कोप; डिवाइस में बदलाव करने वाले एंडपॉइंट के लिए device:updateस्कोप आवश्यक है। जिन वर्कस्पेस API कुंजियों में स्कोप की स्पष्ट सूची नहीं है, उन्हें सभी स्कोप स्वतः दिए जाते हैं (पुराना व्यवहार); जिन कुंजियों में स्पष्ट scopes ऐरे है, उसमें संबंधित स्कोप शामिल होना चाहिए।
Deployment Manager API से आप ये काम कर सकते हैं:
वैकल्पिक एज सेवाएँ (Event Store, PLC Relay, RTSP Simulator, OPC UA Server) अपने HTTP API को api.roboflow.comके बजाय डिवाइस के पते पर उपलब्ध कराती हैं। वे Roboflow API कुंजी स्वीकार नहीं करतीं और उनका प्रमाणीकरण तथा त्रुटियों का फ़ॉर्मैट नीचे दी गई अन्य सभी चीज़ों से अलग है। देखें सेवाएँ.
प्रमाणीकरण
सभी एंडपॉइंट वर्कस्पेस API कुंजी को इनमें से किसी एक तरीके से स्वीकार करते हैं:
क्वेरी स्ट्रिंग:
?api_key=YOUR_API_KEYहेडर:
Authorization: Bearer YOUR_API_KEY
डिवाइस-विशिष्ट API कुंजियाँ
किसी विशिष्ट डिवाइस के लिए बनाई गई API कुंजियाँ (उदाहरण के लिए, इंस्टॉलेशन के दौरान RFDM द्वारा) उसी डिवाइस तक सीमित होती हैं। वे केवल उन रूट को कॉल कर सकती हैं जिनका :deviceId पाथ पैरामीटर कुंजी से जुड़े डिवाइस के बराबर हो। वर्कस्पेस-व्यापी सूची और निर्माण एंडपॉइंट पर उन्हें 403 मिलेगा, और किसी भी :deviceId पाथ पर भी जो मेल नहीं खाता।
वर्कस्पेस के बीच अलगाव
वर्कस्पेस API कुंजी केवल उसी वर्कस्पेस के डिवाइसों को पढ़ या संशोधित कर सकती है। किसी दूसरे वर्कस्पेस से संबंधित डिवाइस आईडी के अनुरोधों पर 404लौटाया जाता है, भले ही आईडी अन्यथा मान्य हो।
त्रुटियाँ
400
अमान्य क्वेरी पैरामीटर (अज्ञात time_period, गलत फ़ॉर्मैट में कर्सर या तारीख, अमान्य directionआदि) या अमान्य अनुरोध बॉडी।
401
API कुंजी मौजूद नहीं है या अमान्य है।
403
डिवाइस-विशिष्ट API कुंजी से किसी दूसरे डिवाइस या वर्कस्पेस-व्यापी सूची/निर्माण रूट को लक्षित किया गया है, डुप्लिकेशन के दौरान स्रोत डिवाइस किसी दूसरे वर्कस्पेस का है, या सुविधा-सीमित अनुरोध अस्वीकार कर दिया गया है (उदाहरण के लिए, offline_mode का उपयोग Roboflow Lite मोड के बिना किया गया है, या वर्कस्पेस के लिए Secure Gateway सक्षम नहीं है)।
404
डिवाइस, स्ट्रीम, कॉन्फ़िगरेशन या स्रोत डिवाइस नहीं मिला। किसी दूसरे वर्कस्पेस से संबंधित डिवाइस आईडी के लिए पढ़ने के अनुरोधों पर भी 404 लौटाया जाता है।
429
रेट लिमिट पार हो गई। लॉग पढ़ने की सीमा प्रति वर्कस्पेस प्रति मिनट 120 अनुरोध है; टेलीमेट्री पढ़ने की सीमा प्रति डिवाइस प्रति मिनट 60 अनुरोध है, जिसमें 10 सेकंड में 10 अनुरोधों का बर्स्ट शामिल है।
त्रुटि प्रतिक्रियाएँ इन दो में से किसी एक रूप में होती हैं:
हैंडलर-स्तर की त्रुटियाँ (आमतौर पर हैंडलर से ही 400, 403, 404 और 429) यह लौटाती हैं
{ "error": "<message>" }.प्रमाणीकरण और वर्कस्पेस-सत्यापन संबंधी विफलताएँ (आमतौर पर 401) एक संरचित
errorऑब्जेक्ट लौटाती हैं:{ "error": { "message": "...", "status": 401, "type": "OAuthException", "hint": "..." } }.
लॉग्स रेट लिमिटर ट्रिगर होने पर साधारण स्ट्रिंग बॉडी (JSON नहीं) भी लौटाता है 429.
डिवाइसों की सूची प्राप्त करना और डिवाइस प्राप्त करना
डिवाइसों की सूची बनाएँ
वर्कस्पेस में पंजीकृत सभी डिवाइसों की सूची बनाएँ। डिवाइस-स्कोप वाली API कुंजियाँ इस एंडपॉइंट को कॉल नहीं कर सकतीं और उन्हें यह मिलता है 403.
आवश्यक स्कोप: device:read
List every device in the workspace that your API key can see. Devices in folders outside a folder-scoped key's access are left out. Device-scoped API keys cannot call this endpoint and receive 403.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Only return devices in this folder. Pass a folder ID, or global for devices at the workspace root. Subfolders are not included.
globalDevices in the workspace.
Invalid query parameter or request body.
Missing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
The folder does not exist or your API key cannot see it.
GET /{workspace}/devices/v2 HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"id": "abc123",
"name": "factory-floor-cam-1",
"status": "online",
"last_heartbeat": "2026-04-28T12:00:00.000Z",
"platform": "Linux",
"platform_release": "5.10.104-tegra",
"platform_version": "#1 SMP PREEMPT ...",
"architecture": "aarch64",
"hostname": "jetson-01",
"ip_address": "192.168.1.20",
"server_url": "http://192.168.1.20:9001",
"rfdm_version": "1.2.3",
"rfdm_update": null,
"config_delivery": {
"verified": false
},
"type": "jetson",
"hardware": {
"processor": "aarch64",
"gpu": null,
"total_memory_mb": 7620,
"total_disk_space_mb": 118662
},
"network_interfaces": [],
"discovered_cameras": [],
"tags": [
"production",
"line-3"
],
"created_at": "2026-01-15T08:30:00.000Z"
}
]
}डिवाइस प्राप्त करें
आईडी के आधार पर एक डिवाइस प्राप्त करें।
आवश्यक स्कोप: device:read
Retrieve a single device by ID.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Device ID.
The device.
online if a heartbeat was received within the last 5 minutes, offline if older, unknown if no heartbeat has ever been recorded. A newly provisioned device is listed before its first heartbeat. Until then its status is unknown and most monitoring fields are null.
IP address the device reports.
Server URL the device reports in its telemetry.
Version of the Roboflow Device Manager running on the device.
Device type reported by the device (for example "jetson").
Missing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
Device, stream, configuration, or source device not found. Read requests for devices owned by another workspace also return 404.
GET /{workspace}/devices/v2/{deviceId} HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"name": "text",
"status": "online",
"last_heartbeat": "2026-01-01T00:00:00.000Z",
"platform": "text",
"platform_release": "text",
"platform_version": "text",
"architecture": "text",
"hostname": "text",
"ip_address": "text",
"server_url": "text",
"rfdm_version": "text",
"rfdm_update": {
"target_version": "text",
"error": "text",
"attempt_count": 1,
"backoff_until": "2026-01-01T00:00:00.000Z"
},
"type": "text",
"hardware": {
"processor": "text",
"gpu": "text",
"total_memory_mb": 1,
"total_disk_space_mb": 118662
},
"config_delivery": {
"verified": true,
"workspace_id": "text",
"config_sha256": "text",
"signature": "text"
},
"network_interfaces": [
{
"name": "text",
"mac_address": "text",
"ip_addresses": [
"text"
]
}
],
"discovered_cameras": [
{
"id": "text",
"status": "text",
"vendor": "text",
"serial_number": "text",
"model_name": "text",
"ip_address": "text",
"mac_address": "text",
"connection_type": "text",
"last_seen": "2026-01-01T00:00:00.000Z"
}
],
"tags": [
"text"
],
"created_at": "2026-01-01T00:00:00.000Z"
}डिवाइस बनाना
अपने वर्कस्पेस में नया डिवाइस बनाएँ और उसे इंस्टॉल करने के लिए आवश्यक आइडेंटिफ़ायर लौटाएँ। डिवाइस-स्कोप वाली API कुंजियाँ इस एंडपॉइंट को कॉल नहीं कर सकतीं और उन्हें यह मिलता है 403.
आवश्यक स्कोप: device:update
Create a device and an API key bound to it, and return the install ID for setting it up. The device starts from the workspace default config, merged with the config of the folder it goes in. Device-scoped API keys cannot call this endpoint and receive 403. Requires the device:update scope.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Device name. Must not be empty.
Device type (ex: edge, ai1). ai1 sets up an AI1 camera stream and inference image. secure-gateway needs the Secure Gateway feature on the workspace and runtime docker.
Set to roboflow-os for a Roboflow OS device. Only valid when device_type is edge.
Container runtime the installer sets up. Required for device_type secure-gateway.
Workflow URL slug to assign to the device. For an AI1 device it becomes the Workflow of the camera stream.
Tags for the device. Each tag is trimmed and must not be empty. Duplicates are removed.
ID of the folder to put the device in. Leave it out to create the device at the workspace root.
Provision the device for offline use. Only valid for AI1 and Roboflow OS devices, on workspaces with Roboflow Lite mode.
ID of a device in the same workspace to copy the configuration from. Its streams, install history, and queued changes are not copied.
Device created.
ID of the newly-created device.
Install ID. Use it to install Deployment Manager on the device. It expires after 10 minutes.
Data for the offline provisioning QR code. Only returned for devices created in offline mode.
Invalid query parameter or request body.
Missing or invalid API key.
A device-scoped API key was used, offline_mode is set but Roboflow Lite mode is off, Secure Gateway is not on for the workspace, or sourceDeviceId is in another workspace.
sourceDeviceId, workflow_id, or projectGroupId does not exist or your API key cannot see it.
POST /{workspace}/devices/v2 HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 58
{
"device_name": "factory-floor-cam-2",
"device_type": "edge"
}{
"deviceId": "abc456",
"installId": "MFRGGZDFMZTWQ2LK"
}लौटाए गए installId का उपयोग Roboflow Deployment Manager इंस्टॉलर से डिवाइस को बूटस्ट्रैप करने के लिए करें।
AI1 और Roboflow OS डिवाइसों के बारे में नोट्स
offline_modeकेवल AI1 डिवाइसों और Roboflow OS डिवाइसों (device_type"edge"के साथos"roboflow-os") के लिए मान्य है, और केवल उन वर्कस्पेस में जहाँ Roboflow Lite मोड सक्षम है। अन्य डिवाइस प्रकार 400लौटाते हैं, और जिन वर्कस्पेस में Roboflow Lite मोड सक्षम नहीं है वे 403.ऑफ़लाइन मोड लागू होने पर, प्रतिक्रिया में ऑफ़लाइन प्रोविज़निंग के लिए QR पेलोड एन्कोड करने वाला
offlineProvisioningQrPayloadफ़ील्ड भी शामिल होता है।
डुप्लिकेशन के बारे में नोट्स
जब sourceDeviceId दिया जाता है, तो नया डिवाइस स्रोत डिवाइस के कॉन्फ़िगरेशन की कॉपी से बनाया जाता है। स्रोत डिवाइस उसी वर्कस्पेस का होना चाहिए जिससे अनुरोध किया गया है; अन्यथा अनुरोध यह लौटाता है 403। मौजूद न होने वाला sourceDeviceId लौटाता है 404.
डिवाइस कॉन्फ़िगरेशन
वर्कस्पेस का डिफ़ॉल्ट कॉन्फ़िगरेशन प्राप्त करें
वर्कस्पेस-स्तर का डिफ़ॉल्ट डिवाइस कॉन्फ़िगरेशन लौटाता है। यह आधारभूत डिफ़ॉल्ट कॉन्फ़िगरेशन है, जिसमें वर्कस्पेस का कॉन्फ़िगरेशन पैच (यदि कोई हो) मिला दिया गया है। नया डिवाइस प्रोविज़न करते समय, इसे कॉल करने से पहले टेम्पलेट के रूप में उपयोग करें POST /:workspace/devices/v2.
आवश्यक स्कोप: device:read
Returns the workspace default device config: the base default config with the workspace patch merged in, plus the patch itself. New devices start from it. Stream credentials are removed. Requires the device:read scope and a workspace API key.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
The merged config and the workspace patch.
Missing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
GET /{workspace}/devices/v2/default-config HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"config": {
"version": "1.0.0",
"config": {
"inference": {
"confidence": 0.7
},
"log_shipping_level": "INFO"
},
"services": {}
},
"patch": {
"config": {
"inference": {
"confidence": 0.7
}
}
}
}वर्कस्पेस का डिफ़ॉल्ट कॉन्फ़िगरेशन अपडेट करें
वर्कस्पेस का कॉन्फ़िगरेशन पैच बदलें। नए डिवाइस मर्ज किए गए परिणाम से शुरू होते हैं। हर बार पूरा पैच भेजें, क्योंकि नया पैच पुराने पैच की जगह लेता है।
Replace the workspace's config patch. The patch is merged over the base default config, and the result must pass schema validation. Requires the device:update scope and a workspace API key.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
The patch was saved.
trueThe merged config does not match the schema. details lists the errors.
Missing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
PATCH /{workspace}/devices/v2/default-config HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"patch": {
"config": {
"inference": {
"confidence": 0.7
}
}
}
}{
"success": true,
"deviceGroup": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}कॉन्फ़िगरेशन प्राप्त करें
डिवाइस का संग्रहीत कॉन्फ़िगरेशन लौटाता है, न कि उसकी चालू स्थिति का प्रमाण। प्रतिक्रिया का रूप Roboflow Deployment Manager (RFDM) कॉन्फ़िगरेशन विनिर्देश के अनुरूप है।
आवश्यक स्कोप: device:read
Returns the stored configuration. Stream credentials are removed unless a device-bound key reads its own config, which retains encrypted credentials. Environment variables and other values are returned as stored, so treat the body as sensitive. The response has an ETag header: send it back in If-None-Match to get 304 when nothing changed. Rate-limited to 30 requests per minute per device.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Device ID.
Seconds to wait for a change when If-None-Match matches the current config, up to 45. The response comes as soon as the config changes, or 304 when the time runs out.
0ETag from an earlier response.
The current device configuration.
Full RFDM configuration document. Top-level fields include device_id, device_name, workspace_id, version, last_updated, last_updated_at, created_at, config (the device settings tree, including device_type, stream, and offline_mode), services (per-service container definitions, including image, volumes, and environment_variables), environment_variables (top-level variables, in addition to the per-service ones), pendingUpdates (changes queued for a maintenance window), production_mode, last_automatic_update, updated, updated_by, $schema, and id. A stream that has stored credentials has stream_credentials_set set to true. RFDM can write more fields, so read only the fields you need.
The config has not changed since the ETag you sent.
Missing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
The device does not exist, belongs to another workspace, or has no stored configuration.
Rate limit exceeded. Most rate-limited responses are JSON; the device logs limiter can return a plain string response.
GET /{workspace}/devices/v2/{deviceId}/config HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}कॉन्फ़िगरेशन अपडेट करें
डिवाइस के कॉन्फ़िगरेशन का कोई हिस्सा बदलें (जैसे, किसी स्ट्रीम का Workflow, विश्वास-सीमा या सेवा सेटिंग)। केवल वे फ़ील्ड भेजें जिन्हें आप बदलना चाहते हैं: नेस्टेड ऑब्जेक्ट मर्ज होते हैं, null किसी कुंजी को हटाता है, और कोई ऐरे पूरे ऐरे की जगह लेता है। आपको पूरा कॉन्फ़िगरेशन वापस भेजने की ज़रूरत नहीं है।
कॉन्फ़िगरेशन अनुमोदन सक्षम वाले Workspace में किसी प्रोडक्शन डिवाइस पर, बदलाव से यह लौट सकता है staged: true और configProposal जब तक वह अनुमोदन की प्रतीक्षा में हो। इससे लाइव कॉन्फ़िगरेशन नहीं बदलता। अननुमोदित बदलाव रखरखाव विंडो के दौरान भी लंबित रहते हैं, और न तो forceApply न ही immediateDelta अनुमोदन प्रक्रिया को दरकिनार करता है।
अनुमोदन की ज़रूरतें पूरी होने के बाद भी, डिप्लॉयमेंट के बदलाव रखरखाव विंडोका इंतज़ार कर सकते हैं, और इनके साथ deferred: trueलौट सकता है। forceApply=true से इस बदलाव और कतार में मौजूद सभी बदलावों को अभी लागू करने का अनुरोध करें, या immediateDelta=true से केवल इस पैच को लागू करने का अनुरोध करें। सेव की पुष्टि के लिए कॉन्फ़िगरेशन फिर से पढ़ें, फिर डिवाइस द्वारा रिपोर्ट किए गए सेवा संस्करण, स्ट्रीम स्थिति और आउटपुट की जाँच करें कि बदलाव चल रहा है।
आवश्यक स्कोप: device:update
Changes part of the device configuration. The body is a JSON merge patch: nested objects merge, a null value removes that key, keys you leave out stay as they are, and an array replaces the whole array. By default the patch applies on top of any queued changes. Each save adds a revision to the config history. Requires the device:update scope. Rate-limited to 10 requests per minute per device. On production devices in Workspaces with configuration approval enabled, changes can return staged: true and configProposal without changing live config. Approval is still required with forceApply or immediateDelta.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Device ID.
Set to true (or 1) to apply the change now, outside the maintenance window. This also applies every change already queued for the window. It wins over immediateDelta when you set both. Production approval can still hold the change.
Set to true (or 1) to apply only this patch now, on top of the active config, and keep the other queued changes for the window. Ignored when forceApply is set. Production approval can still hold the change.
Only the fields you want to change.
The change was saved or staged for production approval.
trueTrue when production approval is required and live config is unchanged.
true when the change waits for the device's next maintenance window.
falseInvalid query parameter or request body.
Missing or invalid API key.
The key cannot change this device, or the change turns on Vision Events backup without the vision-events:write scope.
Device, stream, configuration, or source device not found. Read requests for devices owned by another workspace also return 404.
Rate limit exceeded. Most rate-limited responses are JSON; the device logs limiter can return a plain string response.
PATCH /{workspace}/devices/v2/{deviceId}/config HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 43
{
"config": {
"inference": {
"confidence": 0.6
}
}
}{
"success": true,
"config": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"staged": true,
"configProposal": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"deferred": false
}कॉन्फ़िगरेशन इतिहास
किसी डिवाइस के पिछले कॉन्फ़िगरेशन संशोधनों का मेटाडेटा सूचीबद्ध करें, सबसे नए पहले।
आवश्यक स्कोप: device:read
List prior configuration revision metadata for a device, newest first.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Device ID.
Number of revisions to return. Clamped to 1-500.
10next_cursor from the previous page: the save time of the last revision returned, as an ISO 8601 timestamp.
A page of revisions, newest first.
Malformed cursor.
Missing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
Device, stream, configuration, or source device not found. Read requests for devices owned by another workspace also return 404.
GET /{workspace}/devices/v2/{deviceId}/config/history HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"revision_id": "rev_abc",
"created_at": "2026-04-20T14:30:00.000Z",
"created_by": "user_123"
}
],
"pagination": {
"next_cursor": "2026-04-20T14:30:00.000Z",
"has_more": true,
"limit": 10
}
}सेवा संस्करण सेट करें
पूरा कॉन्फ़िगरेशन भेजे बिना, किसी एक डिवाइस पर अनुमान या प्रबंधक का संस्करण सेट करें। सेवा का मौजूदा image यहाँ से पढ़ें कॉन्फ़िगरेशन प्राप्त करें और इसे नए संस्करण के साथ भेजें। यदि आपके पढ़ने के बाद इमेज बदल गई हो, तो अनुरोध विफल हो जाता है, इसलिए आप कभी भी गलत इमेज के लिए संस्करण पिन नहीं करेंगे। रखरखाव विंडो वाले डिवाइस पर, बदलाव अगली विंडो तक प्रतीक्षा करता है। कई डिवाइस अपडेट करने के लिए, हर डिवाइस पर यह एक बार कॉल करें। रखरखाव विंडोवाले डिवाइस पर, बदलाव अगली विंडो तक प्रतीक्षा करता है। कई डिवाइस अपडेट करने के लिए, हर डिवाइस पर यह एक बार कॉल करें।
आवश्यक स्कोप: device:update
Sets the version of the inference or manager service on a V2 device. The rest of the device configuration stays as it is. Each save adds a revision to the config history. Requires the device:update scope. On production devices in Workspaces with configuration approval enabled, changes can be staged for approval without changing live config.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Device ID.
The service to update.
inferencePossible values: The Docker image tag to run. Use letters, numbers, dots, hyphens, and underscores, and start with a letter, number, or underscore.
1.2.3The service's current image, from services..image in the device config. It must match, so a version is never set on an image that changed after you read it.
roboflow/roboflow-inference-server-jetsonThe version was saved. This does not confirm that the device installed it.
truetrue when the change waits for the device's next maintenance window.
falseInvalid query parameter or request body.
Missing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
Device, stream, configuration, or source device not found. Read requests for devices owned by another workspace also return 404.
The service was removed or its image changed. Get the config again and retry.
Rate limit exceeded. Most rate-limited responses are JSON; the device logs limiter can return a plain string response.
PATCH /{workspace}/devices/v2/{deviceId}/config/service-version HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 93
{
"service": "inference",
"version": "1.2.3",
"image": "roboflow/roboflow-inference-server-jetson"
}{
"success": true,
"deferred": false
}डिवाइस कमांड
वेब ऐप से शुरू की गई कार्रवाइयाँ (जैसे, डिवाइस रीस्टार्ट करना, स्ट्रीम रोकना, कैमरों को स्कैन करना) कमांड के रूप में कतार में लगाई जाती हैं। डिवाइस अगले पोल पर उन्हें प्राप्त करता है।
कमांड कतार में डालें
डिवाइस के अगले पोल पर चलाने के लिए कोई कमांड कतार में डालें। API के ज़रिए यह वही करता है जो वेब ऐप डिवाइस रीस्टार्ट करने या स्ट्रीम शुरू करने पर करता है।
आवश्यक स्कोप: device:update
Queue a command for a device. The device runs it on its next poll. This is the API equivalent of the actions you start from the web app.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Device ID.
What the device should do. An action outside this list returns 400.
restartPossible values: The command was queued, or a stream configuration change was staged for production approval.
Command ID, used to match the device's acknowledgement. Null when staged for production approval.
cmd_abcTrue when a stream change awaits approval. Read configProposal from the device config.
Only for restart_service. When the server recorded the request, in milliseconds since the epoch.
1792234200000Invalid query parameter or request body.
Missing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
Device, stream, configuration, or source device not found. Read requests for devices owned by another workspace also return 404.
POST /{workspace}/devices/v2/{deviceId}/commands HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 30
{
"action": "restart",
"data": {}
}{
"id": "cmd_abc",
"staged": true,
"requestedAt": 1792234200000
}डिवाइस से नेटवर्क जाँच करने के लिए, कतार में यह डालें action: "network_probe" साथ में प्रोब का प्रकार और होस्टनेम या IP पता दें। लौटाई गई कमांड ID का मतलब है कि प्रोब कतार में डाल दिया गया है। इसका परिणाम डिवाइस के "नेटवर्किंग" टैब में, "कनेक्टिविटी जाँचें" के अंतर्गत देखें। सार्वजनिक डिवाइस रीड में network_probesशामिल नहीं होते; यदि ऐप में परिणाम उपलब्ध न हो, तो प्रोब को कतार में डाला गया बताएं और स्पष्ट करें कि उसका परिणाम सत्यापित नहीं है।
डिवाइस स्ट्रीम
स्ट्रीम सूचीबद्ध करें
किसी डिवाइस पर कॉन्फ़िगर की गई सभी स्ट्रीम सूचीबद्ध करें।
आवश्यक स्कोप: device:read
List every stream configured on a device, including streams that are set up in the device config but have not reported in yet, which are returned with a provisioning status. Credentials are stripped from URLs and known credential-bearing object keys are removed from each stream's source.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Device ID.
Streams configured on the device.
Missing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
Device, stream, configuration, or source device not found. Read requests for devices owned by another workspace also return 404.
GET /{workspace}/devices/v2/{deviceId}/streams HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"id": "stream_abc",
"name": "entrance-cam",
"status": "running",
"pipeline_id": "pipe_123",
"workflow_id": "wf_456",
"source": "rtsp://192.168.1.100:554/live",
"started_at": "2026-04-28T10:00:00.000Z",
"last_event_at": "2026-04-28T12:30:00.000Z",
"camera_fps": 29.97,
"inference_fps": 12.4,
"sharpness": 82,
"error": null,
"error_code": null,
"error_message": null,
"error_retryable": null
}
]
}स्ट्रीम प्राप्त करें
एक स्ट्रीम प्राप्त करें।
आवश्यक स्कोप: device:read
Retrieve a single stream on a device. A stream that exists only in the device config is returned as a provisioning entry. Returns 404 when the stream exists neither live nor in the config.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Device ID.
Stream ID.
Set to status_events to attach the stream's 20 most recent lifecycle events from the last 7 days.
The stream.
Stream status reported by the streams service (for example "running", "stopped", or transitional states). Streams that exist in the device config but have not reported in yet are returned with status "provisioning".
True when the stream is in the config but has not reported in yet.
"triggered" for streams that run their Workflow only when triggered, "continuous" for streams that run all the time. Null when the stream has no config entry.
Sanitized source descriptor. URL userinfo is stripped (ex: rtsp://admin:password@192.168.1.100:554/live becomes rtsp://192.168.1.100:554/live). Object keys whose lowercase name is password, passwd, secret, api_key, apikey, auth, authorization, token, or access_token are removed, and all other keys are kept. Arrays and nested objects are sanitized the same way.
rtsp://192.168.1.100:554/liveSource taken from the device config, sanitized the same way as source. Filled in for provisioning streams that have no live source yet, and null otherwise.
Camera frame rate reported by the device heartbeat.
Inference pipeline frame rate reported by the device heartbeat.
Focus score of the most recent frame, reported by the device heartbeat. An integer from 0 (blurry) to 100 (sharp).
82Legacy free-text error from the device. Credentials are masked. An error reported as an object is returned as a JSON string.
Code for the most recent stream failure, taken from the latest status event. Codes are uppercase identifiers reported by the device. A failure with an unusable code becomes "STREAM_ERROR". Null when the stream is healthy or the status event has expired, so it clears when the stream recovers. Use it to branch in your own code.
STREAM_SOURCE_UNAVAILABLEText that goes with error_code. Credentials are masked.
True when the device retries the stream by itself. Null when the device does not report it.
Missing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
Device, stream, configuration, or source device not found. Read requests for devices owned by another workspace also return 404.
GET /{workspace}/devices/v2/{deviceId}/streams/{streamId} HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"name": "text",
"status": "text",
"provisioning": true,
"mode": "continuous",
"pipeline_id": "text",
"workflow_id": "text",
"source": "rtsp://192.168.1.100:554/live",
"configured_source": "text",
"started_at": "2026-01-01T00:00:00.000Z",
"last_event_at": "2026-01-01T00:00:00.000Z",
"camera_fps": 1,
"inference_fps": 1,
"sharpness": 82,
"cloud_fallback": {
"state": "text",
"enabled": true,
"attempt_ended": true,
"stop_status": "unconfirmed",
"error": "text"
},
"error": "text",
"error_code": "STREAM_SOURCE_UNAVAILABLE",
"error_message": "text",
"error_retryable": true,
"status_events": [
{
"id": "text",
"event": "text",
"entity_type": "text",
"entity_id": "text",
"event_description": "text",
"error_code": "text",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"device_timestamp": "text",
"server_timestamp": "text",
"event_end_timestamp": "text"
}
]
}डिवाइस लॉग और टेलीमेट्री
लॉग
पृष्ठांकित डिवाइस लॉग लौटाता है।
आवश्यक स्कोप: device:read
Returns the newest device log lines that match the filters, oldest first on the page. Pass next_cursor as cursor to page back through older lines. Rate-limited to 120 requests per minute per workspace, separate from log upload. The 429 body is plain text.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Device ID.
Number of log entries to return. Clamped to 1-1000.
100ISO 8601 timestamp lower bound. Returns 400 if not parseable.
ISO 8601 timestamp upper bound. Returns 400 if not parseable.
Comma-separated list of service names to filter by.
Comma-separated list of severity levels to filter by (for example "INFO,WARN,ERROR").
Pass back next_cursor from the previous response to fetch the next page (older logs). Returns 400 if not parseable.
A page of logs.
Invalid query parameter or request body.
Missing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
Device, stream, configuration, or source device not found. Read requests for devices owned by another workspace also return 404.
Rate limit exceeded. Most rate-limited responses are JSON; the device logs limiter can return a plain string response.
GET /{workspace}/devices/v2/{deviceId}/logs HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"timestamp": "2026-04-28T12:01:00.000Z",
"service": "inference",
"severity": "INFO",
"message": "Model loaded successfully"
}
],
"pagination": {
"next_cursor": "2026-04-28T12:01:00.000Z",
"has_more": true,
"limit": 50
}
}दर सीमा: प्रति वर्कस्पेस 120 अनुरोध प्रति मिनट। लॉग पढ़ने और लॉग ingest के लिए अलग-अलग rate-limit buckets हैं, इसलिए लॉग पोल करने से आपकी ingest quota कम नहीं होगी (और इसके विपरीत भी)।
टेलीमेट्री
किसी डिवाइस के लिए समेकित हार्डवेयर मेट्रिक्स (CPU, मेमोरी, डिस्क, GPU) और हर स्ट्रीम का FPS लौटाता है। डेटा को एक तय समयावधि के आधार पर समूहित किया जाता है।
आवश्यक स्कोप: device:read
Returns device health data: hardware metrics (CPU, memory, disk, GPU, network) bucketed across the requested time window, plus Docker and NTP health, per-service container status, per-stream FPS, hardware, and network interfaces. Rate-limited to 60 requests per minute per device with a 10-request burst over 10 seconds.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Device ID.
Time window to aggregate over. Each window has a fixed bucket size: 1h uses 2 MINUTE buckets (fill_interval_seconds 120), 24h uses 30 MINUTE (1800), 7d uses 4 HOUR (14400), and 14d uses 8 HOUR (28800).
24hPossible values: Comma-separated sections to return: metrics, system_status, services, service_history, stream_fps, hardware, network_interfaces. Every section except service_history is returned by default, and service_history implies services. Smaller requests return faster. An unknown section returns 400 with the valid values.
metrics,system_status,services,stream_fps,hardware,network_interfacesAggregated telemetry buckets.
Sections are selected with the include query parameter. Every section except service_history is returned by default.
Human-readable bucket size (for example "30 MINUTE", "4 HOUR").
Present when the service query hit its cap. Gaps in service history may come from the cap rather than a real outage.
Present when the stream FPS query hit its row cap, so some buckets are missing.
Invalid query parameter or request body.
Missing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
Device, stream, configuration, or source device not found. Read requests for devices owned by another workspace also return 404.
Rate limit exceeded. Most rate-limited responses are JSON; the device logs limiter can return a plain string response.
GET /{workspace}/devices/v2/{deviceId}/telemetry HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"time_period": "24h",
"bucket_interval": "30 MINUTE",
"fill_interval_seconds": 1800,
"buckets": [
{
"bucket_start": "2026-04-28T00:00:00.000Z",
"cpu_pct": 42.5,
"used_memory_mb": 3200,
"total_memory_mb": 7860,
"used_disk_space_mb": 15000,
"total_disk_space_mb": 29000,
"gpu_pct": 78.2
}
]
}रेट सीमाएँ
इस endpoint पर प्रति डिवाइस अनुरोधों की सीमा है: 60 अनुरोध प्रति मिनट इसके अतिरिक्त, 10 अनुरोध प्रति 10 सेकंड की burst सीमा है। सीमा से अधिक अनुरोधों पर 429 लौटता है। प्रति डिवाइस टेलीमेट्री की यही quota, डिवाइस के telemetry ingest path के साथ साझा होती है, इसलिए बहुत अधिक पढ़ने से उसी डिवाइस का ingest प्रभावित हो सकता है।
डिवाइस इवेंट
डिवाइस और स्ट्रीम के lifecycle events लौटाता है (उदाहरण के लिए, डिवाइस बूट, स्ट्रीम शुरू और बंद होना, त्रुटियाँ, कॉन्फ़िगरेशन में बदलाव)।
आवश्यक स्कोप: device:read
Returns device and stream lifecycle events (for example device boots, stream starts and stops, errors, config changes).
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Device ID.
Number of events to return. Clamped to 1-1000.
100Filter to events for a single entity type (for example "device", "stream").
Filter to events for a single entity ID.
Filter to events with this event name.
ISO 8601 timestamp lower bound. Returns 400 if not parseable.
ISO 8601 timestamp upper bound. Returns 400 if not parseable.
Opaque pagination cursor from a previous response. Pass back next_cursor or prev_cursor. Malformed cursors return 400.
Pagination direction. Other values return 400.
backwardPossible values: By default, events in a row that carry the same event name for the same entity collapse into one state change, unless the TTL of the earlier one has passed. That is right for lifecycle events and wrong for periodic telemetry, which reuses one event name for every sample. Set dedupe=false to read the raw rows. It needs both entity_type and entity_id, it reports event_end_timestamp as null, and it is rate-limited to 30 requests per minute per device.
trueA page of events.
Invalid query parameter or request body.
Missing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
Device, stream, configuration, or source device not found. Read requests for devices owned by another workspace also return 404.
GET /{workspace}/devices/v2/{deviceId}/events HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"id": "evt_abc123",
"event": "device.boot",
"entity_type": "device",
"entity_id": "abc123",
"event_description": "Device started up",
"error_code": null,
"metadata": {
"source": "boot-loop"
},
"device_timestamp": "2026-04-28 10:00:00",
"server_timestamp": "2026-04-28 10:00:01",
"event_end_timestamp": null
}
],
"pagination": {
"next_cursor": "...",
"prev_cursor": "...",
"has_more": true,
"limit": 50
}
}डिफ़ॉल्ट रूप से, फ़ीड बार-बार आने वाले events को state changes में समेट देता है, जिससे उस आवधिक टेलीमेट्री का पता नहीं चलता जो एक ही event नाम का फिर से उपयोग करती है। dedupe=false के साथ entity_type और entity_id दोनों पास करें, ताकि हर raw row पढ़ी जा सके। समय के साथ किसी एक मान का चार्ट बनाने के लिए इसके बजाय service series endpoint का उपयोग करें: यह आपके लिए entity ID ढूँढ़ता है।
डिवाइस सेवाएँ
उन services को लौटाता है जिन्हें कोई डिवाइस चलाता है, साथ ही उनकी लाइव स्थिति भी: container की स्थिति, image version और हर प्रकार की स्थिति, जैसे PLC कनेक्शन की स्थिति या Event Store की क्षमता।
आवश्यक स्कोप: device:read
Returns the services a device runs and what each one is doing now. It joins the services declared in the device config with the same live status the Deployment Manager UI shows. Rate-limited to 30 requests per minute per device, in a bucket shared with the other service routes.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Device ID.
Comma-separated sections to return: status, config, signals, metrics. Only status is returned by default. Ask for config only when you need it: it returns environment variable values as stored, which often hold credentials. An unknown section returns 400 with the valid values.
statusReturn only services of this kind.
Window for the metrics section. Ignored otherwise.
24hPossible values: The device's services.
Present and true when the metrics aggregation hit its row cap. The newest rows are kept, so the oldest containers report metrics as null. Use a shorter time_period for full coverage.
Invalid query parameter or request body.
Missing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
Device, stream, configuration, or source device not found. Read requests for devices owned by another workspace also return 404.
Rate limit exceeded. Most rate-limited responses are JSON; the device logs limiter can return a plain string response.
GET /{workspace}/devices/v2/{deviceId}/services HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"device_id": "text",
"services": [
{
"name": "plc-relay",
"kind": "plc_relay",
"image": "repo.roboflow.com/roboflow-edge/plc-relay",
"tag": "text",
"tag_is_canonical": true,
"automatic_updates": true,
"has_pending_changes": true,
"signal_conflicts": [
"text"
],
"state": "running",
"state_reported_at": "2026-01-01T00:00:00.000Z",
"state_received_at": "2026-01-01T00:00:00.000Z",
"error_code": "text",
"image_state": "pull_succeeded",
"image_state_reported_at": "2026-01-01T00:00:00.000Z",
"image_state_received_at": "2026-01-01T00:00:00.000Z",
"config": {
"ports": [
"text"
],
"volumes": [
"text"
],
"restart": "text",
"environment_variables": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
},
"status": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"signals": {
"ANY_ADDITIONAL_PROPERTY": {
"event": "plc_snapshot",
"event_description": "PLC connected, 2 tag(s)",
"error_code": "text",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"reported_at": "2026-01-01T00:00:00.000Z",
"received_at": "2026-01-01T00:00:00.000Z",
"ttl_s": 1,
"expired": true
}
},
"metrics": {
"current_status": "up",
"cpu_pct": 1,
"mem_usage_mb": 1,
"avg_cpu_pct": 1,
"avg_mem_usage_mb": 1,
"sample_count": 1,
"last_seen": "2026-01-01T00:00:00.000Z",
"last_received": "2026-01-01T00:00:00.000Z",
"last_reported_by_container": "2026-01-01T00:00:00.000Z"
}
}
],
"unassociated_signals": {
"ANY_ADDITIONAL_PROPERTY": {
"event": "plc_snapshot",
"event_description": "PLC connected, 2 tag(s)",
"error_code": "text",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"reported_at": "2026-01-01T00:00:00.000Z",
"received_at": "2026-01-01T00:00:00.000Z",
"ttl_s": 1,
"expired": true
}
},
"metrics_truncated": true
}Returns one service, in the same shape as an entry in the list. Returns 404 when the device declares no service with that name.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Device ID.
Service name, as declared in the device config.
Same sections as the list endpoint.
statusWindow for the metrics section. Ignored otherwise.
24hPossible values: One service.
One service declared on the device, joined to its live status. The config, status, signals, and metrics sections are returned only when you ask for them with the include parameter.
plc-relayService kind, resolved from the image. A container Roboflow does not publish resolves to "custom" and has no typed status.
plc_relayPossible values: repo.roboflow.com/roboflow-edge/plc-relayWhether the configured tag matches the version Roboflow ships for this service. Null when the service has no Roboflow-managed pin. This describes the config, not the running container.
True when a config edit is queued behind a maintenance window.
Entity IDs that more than one declared service claims. Signal IDs come from the service kind, so two services of the same kind collide unless each sets its own DEVICE_EVENT_ENTITY_ID. The status of an affected service is null because the reading cannot be attributed.
Container lifecycle state. Null when the last report is past its TTL, and also null when the service never reported. Use state_received_at to tell the two apart.
runningDevice clock. Null when the device sent no timestamp.
Server clock.
pull_succeededInvalid query parameter or request body.
Missing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
Device, stream, configuration, or source device not found. Read requests for devices owned by another workspace also return 404.
Rate limit exceeded. Most rate-limited responses are JSON; the device logs limiter can return a plain string response.
GET /{workspace}/devices/v2/{deviceId}/services/{serviceName} HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"name": "plc-relay",
"kind": "plc_relay",
"image": "repo.roboflow.com/roboflow-edge/plc-relay",
"tag": "text",
"tag_is_canonical": true,
"automatic_updates": true,
"has_pending_changes": true,
"signal_conflicts": [
"text"
],
"state": "running",
"state_reported_at": "2026-01-01T00:00:00.000Z",
"state_received_at": "2026-01-01T00:00:00.000Z",
"error_code": "text",
"image_state": "pull_succeeded",
"image_state_reported_at": "2026-01-01T00:00:00.000Z",
"image_state_received_at": "2026-01-01T00:00:00.000Z",
"config": {
"ports": [
"text"
],
"volumes": [
"text"
],
"restart": "text",
"environment_variables": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
},
"status": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"signals": {
"ANY_ADDITIONAL_PROPERTY": {
"event": "plc_snapshot",
"event_description": "PLC connected, 2 tag(s)",
"error_code": "text",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"reported_at": "2026-01-01T00:00:00.000Z",
"received_at": "2026-01-01T00:00:00.000Z",
"ttl_s": 1,
"expired": true
}
},
"metrics": {
"current_status": "up",
"cpu_pct": 1,
"mem_usage_mb": 1,
"avg_cpu_pct": 1,
"avg_mem_usage_mb": 1,
"sample_count": 1,
"last_seen": "2026-01-01T00:00:00.000Z",
"last_received": "2026-01-01T00:00:00.000Z",
"last_reported_by_container": "2026-01-01T00:00:00.000Z"
}
}फ्लीट को पोल करने के लिए इन endpoints का उपयोग करें: यह जाँचने के लिए include=status माँगें कि कोई service चालू है और रिपोर्ट कर रही है, और उसके CPU तथा मेमोरी के लिए include=metrics जोड़ें।
Services, सेवा के प्रकार से मिलने वाली entity ID के अंतर्गत टेलीमेट्री रिपोर्ट करती हैं। इसलिए, एक ही डिवाइस पर एक ही प्रकार की दो services आपस में टकराती हैं, जब तक कि आप हर service को उसकी अपनी DEVICE_EVENT_ENTITY_IDन दें। ऐसा होने पर API साझा IDs को signal_conflicts में सूचीबद्ध करता है और status को nullलौटाता है, क्योंकि वह यह नहीं बता सकता कि कौन-से container ने रीडिंग भेजी। कस्टम entity ID में केवल अक्षर, अंक, हाइफ़न और अंडरस्कोर होने चाहिए। ये वर्ण ., /, *, ~, [, और ] status cache को बिगाड़ देते हैं, और फिर service कोई भी status रिपोर्ट नहीं करती।
Service Metric Series
चार्ट बनाने के लिए, समय के साथ किसी एक service का एक metric लौटाता है।
Returns one named metric for one service over time, for charting. The metric name resolves to the right entity ID and event names for that service kind, and every raw sample is returned with no deduplication. The time_period selects samples by when Roboflow received them, so a device with a wrong clock still returns its current data. Returns 409 when another service of the same kind claims the same entity ID.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Device ID.
Service name, as declared in the device config.
Metric to return. Names depend on the service kind. event_store has records, records_percent, images, bytes_used, bytes_percent, backed_up_records, backed_up_bytes_percent, pending_records, pending_bytes, draft_records, oldest_draft_age_seconds, and disk_percent_used. plc_relay has connected. opcua_server has session_count and refused_total. rtsp_simulator, rf_video_connector, device_hmi, and custom have none: they report container state and metrics only. An unknown name returns 400 with the valid names for that kind in valid_values.
Window to read.
24hPossible values: The metric over time.
plc-relayplc_relayconnectedA boolean metric charts as 1 or 0. The type is echoed so a 1 that means "true" stays readable as one.
24hTrue when the window held more than 5,000 samples. The newest samples are kept, so covered_from and covered_to can cover less than the requested time_period.
Invalid query parameter or request body.
Missing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
Device, stream, configuration, or source device not found. Read requests for devices owned by another workspace also return 404.
Two services of the same kind report under the same entity ID.
Rate limit exceeded. Most rate-limited responses are JSON; the device logs limiter can return a plain string response.
GET /{workspace}/devices/v2/{deviceId}/services/{serviceName}/series?metric=text HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"device_id": "text",
"service": "plc-relay",
"kind": "plc_relay",
"metric": "connected",
"metric_type": "number",
"time_period": "24h",
"available_metrics": [
"text"
],
"truncated": true,
"covered_from": "2026-01-01T00:00:00.000Z",
"covered_to": "2026-01-01T00:00:00.000Z",
"points": [
{
"timestamp": "2026-01-01T00:00:00.000Z",
"value": 1
}
]
}डिवाइस समूह
डिवाइसों को समूहित करें, ताकि उन्हें एक साथ ढूँढ़ा और प्रबंधित किया जा सके (उदाहरण: एक लाइन के सभी कैमरे)।
List the workspace's device groups. Requires the device:read scope.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
The groups, as a JSON array.
A named set of devices.
g8Xk2LmQp1Line 3 cameras["device-a","device-b"]#8315F9When the group was created. Write responses can return this before the server resolves it, so get the group again for an exact value.
When the group last changed. Write responses can return the value from before the write, so get the group again for an exact value.
ID of the user who created the group. anonymous when an API key created it.
Missing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
GET /{workspace}/devices/v2/groups HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": "g8Xk2LmQp1",
"workspace_id": "text",
"name": "Line 3 cameras",
"description": "text",
"device_ids": [
"device-a",
"device-b"
],
"color": "#8315F9",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"created_at": null,
"updated_at": null,
"created_by": "text"
}
]Create a group with at least one device. Requires the device:update scope.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Line 3 cameras["device-a","device-b"]The created group.
A named set of devices.
g8Xk2LmQp1Line 3 cameras["device-a","device-b"]#8315F9When the group was created. Write responses can return this before the server resolves it, so get the group again for an exact value.
When the group last changed. Write responses can return the value from before the write, so get the group again for an exact value.
ID of the user who created the group. anonymous when an API key created it.
Invalid query parameter or request body.
Missing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
One of the devices was not found.
A group with this name already exists. Names ignore case.
POST /{workspace}/devices/v2/groups HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 148
{
"name": "Line 3 cameras",
"device_ids": [
"device-a",
"device-b"
],
"description": "text",
"color": "text",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}{
"id": "g8Xk2LmQp1",
"workspace_id": "text",
"name": "Line 3 cameras",
"description": "text",
"device_ids": [
"device-a",
"device-b"
],
"color": "#8315F9",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"created_at": null,
"updated_at": null,
"created_by": "text"
}Requires the device:read scope.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Device group ID, from List Device Groups.
The group.
A named set of devices.
g8Xk2LmQp1Line 3 cameras["device-a","device-b"]#8315F9When the group was created. Write responses can return this before the server resolves it, so get the group again for an exact value.
When the group last changed. Write responses can return the value from before the write, so get the group again for an exact value.
ID of the user who created the group. anonymous when an API key created it.
Missing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
Device, stream, configuration, or source device not found. Read requests for devices owned by another workspace also return 404.
GET /{workspace}/devices/v2/groups/{groupId} HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "g8Xk2LmQp1",
"workspace_id": "text",
"name": "Line 3 cameras",
"description": "text",
"device_ids": [
"device-a",
"device-b"
],
"color": "#8315F9",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"created_at": null,
"updated_at": null,
"created_by": "text"
}Change any of the fields below. Fields you leave out stay as they are. device_ids replaces the whole member list. Requires the device:update scope.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Device group ID, from List Device Groups.
The updated group.
A named set of devices.
g8Xk2LmQp1Line 3 cameras["device-a","device-b"]#8315F9When the group was created. Write responses can return this before the server resolves it, so get the group again for an exact value.
When the group last changed. Write responses can return the value from before the write, so get the group again for an exact value.
ID of the user who created the group. anonymous when an API key created it.
Invalid query parameter or request body.
Missing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
Device, stream, configuration, or source device not found. Read requests for devices owned by another workspace also return 404.
Another group already has this name, or the group changed while saving. Get the group again and retry.
PATCH /{workspace}/devices/v2/groups/{groupId} HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 123
{
"name": "text",
"description": "text",
"device_ids": [
"text"
],
"color": "text",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}{
"id": "g8Xk2LmQp1",
"workspace_id": "text",
"name": "Line 3 cameras",
"description": "text",
"device_ids": [
"device-a",
"device-b"
],
"color": "#8315F9",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"created_at": null,
"updated_at": null,
"created_by": "text"
}Delete the group. Its devices are not changed. Requires the device:update scope.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Device group ID, from List Device Groups.
The group was deleted.
No content
Missing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
Device, stream, configuration, or source device not found. Read requests for devices owned by another workspace also return 404.
DELETE /{workspace}/devices/v2/groups/{groupId} HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
कुछ डिवाइस जोड़ने या हटाने के लिए, Update a Device Group को पूरी सदस्य सूची भेजने के बजाय इनका उपयोग करें।
Add devices and keep the current members. Requires the device:update scope.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Device group ID, from List Device Groups.
["device-a"]The updated group.
A named set of devices.
g8Xk2LmQp1Line 3 cameras["device-a","device-b"]#8315F9When the group was created. Write responses can return this before the server resolves it, so get the group again for an exact value.
When the group last changed. Write responses can return the value from before the write, so get the group again for an exact value.
ID of the user who created the group. anonymous when an API key created it.
Invalid query parameter or request body.
Missing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
Device, stream, configuration, or source device not found. Read requests for devices owned by another workspace also return 404.
POST /{workspace}/devices/v2/groups/{groupId}/devices HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 27
{
"device_ids": [
"device-a"
]
}{
"id": "g8Xk2LmQp1",
"workspace_id": "text",
"name": "Line 3 cameras",
"description": "text",
"device_ids": [
"device-a",
"device-b"
],
"color": "#8315F9",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"created_at": null,
"updated_at": null,
"created_by": "text"
}Remove devices and keep the other members. The devices themselves are not changed. Requires the device:update scope.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Device group ID, from List Device Groups.
["device-a"]The updated group.
A named set of devices.
g8Xk2LmQp1Line 3 cameras["device-a","device-b"]#8315F9When the group was created. Write responses can return this before the server resolves it, so get the group again for an exact value.
When the group last changed. Write responses can return the value from before the write, so get the group again for an exact value.
ID of the user who created the group. anonymous when an API key created it.
Invalid query parameter or request body.
Missing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
Device, stream, configuration, or source device not found. Read requests for devices owned by another workspace also return 404.
DELETE /{workspace}/devices/v2/groups/{groupId}/devices HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 27
{
"device_ids": [
"device-a"
]
}{
"id": "g8Xk2LmQp1",
"workspace_id": "text",
"name": "Line 3 cameras",
"description": "text",
"device_ids": [
"device-a",
"device-b"
],
"color": "#8315F9",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"created_at": null,
"updated_at": null,
"created_by": "text"
}डिवाइस प्रबंधन
ये endpoints API से वही काम करते हैं जो वेब ऐप में डिवाइस पेज करता है। डिलीट और फिर से डिप्लॉय करने के लिए workspace API key चाहिए, इसलिए कोई डिवाइस अपनी ही key से खुद को डिलीट या फिर से इंस्टॉल नहीं कर सकता।
डिवाइस अपडेट करें
किसी डिवाइस का नाम बदलें या उसके environment variables सेट करें।
Rename a device or change its environment variables. Fields you leave out stay as they are. A field that is not listed here fails the request. Requires the device:update scope.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Device ID.
New display name for the device.
Line 3 CameraWorkflow URL slug stored on the device record.
Stored on the device record as sent.
Legacy live sampling switch. Turning it on lasts 5 minutes.
The device was updated.
trueInvalid query parameter or request body.
Missing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
Device, stream, configuration, or source device not found. Read requests for devices owned by another workspace also return 404.
PATCH /{workspace}/devices/v2/{deviceId} HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 165
{
"device_name": "Line 3 Camera",
"environment_variables": {
"LOG_LEVEL": "debug",
"OLD_FLAG": null
},
"workflow_id": "text",
"production_mode": true,
"livesampling_enabled": true
}{
"success": true
}डिवाइस हटाएँ
Delete a device and revoke its API keys. This cannot be undone. Requires the device:update scope and a workspace API key: a device-scoped key gets 403. You also get 403 when deletes are locked for the workspace after unusual delete activity. Rate-limited to 10 requests per minute per device.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Device ID.
The device was deleted.
trueMissing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
Device, stream, configuration, or source device not found. Read requests for devices owned by another workspace also return 404.
Rate limit exceeded. Most rate-limited responses are JSON; the device logs limiter can return a plain string response.
DELETE /{workspace}/devices/v2/{deviceId} HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": true
}किसी डिवाइस को फिर से डिप्लॉय करें
नए installId का उपयोग करके डिवाइस पर Deployment Manager को फिर से इंस्टॉल करें, ठीक वैसे ही जैसे इसके बाद डिवाइस बनाएँ.
Create a new install for an existing device, so you can reinstall it with the same device ID. Requires the device:update scope and a workspace API key: a device-scoped key gets 403. Rate-limited to 10 requests per minute per device.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Device ID.
A new install was created.
abc123ID of the new install.
MFRGGZDFMZTWQ2LKProvisioning data for an offline device. Only returned for offline devices.
Missing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
Device, stream, configuration, or source device not found. Read requests for devices owned by another workspace also return 404.
Rate limit exceeded. Most rate-limited responses are JSON; the device logs limiter can return a plain string response.
POST /{workspace}/devices/v2/{deviceId}/redeploy HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"deviceId": "abc123",
"installId": "MFRGGZDFMZTWQ2LK",
"offlineProvisioningQrPayload": "text"
}लंबित कॉन्फ़िगरेशन लागू करें
ऐसे डिवाइस पर जहाँ मेंटेनेंस विंडोहोती हैं, स्वीकृत कॉन्फ़िगरेशन बदलाव अगली विंडो तक प्रतीक्षा कर सकते हैं। उन्हें अभी लागू करने का अनुरोध करने के लिए इसे कॉल करें। कॉन्फ़िगरेशन अनुमोदन सक्षम वाले Workspace में प्रोडक्शन डिवाइस पर, अनुमोदन अब भी बदलाव को रोक सकता है।
Apply config changes that wait for a maintenance window now. If nothing is pending, the config stays as it is. Requires the device:update scope. Production approval can still hold the change.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Device ID.
The pending changes were applied, or there were none.
truefalseInvalid query parameter or request body.
Missing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
Device, stream, configuration, or source device not found. Read requests for devices owned by another workspace also return 404.
POST /{workspace}/devices/v2/{deviceId}/config/apply-pending HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": true,
"config": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"deferred": false
}किसी फ़्रेम को प्रोजेक्ट में कैप्चर करें
ट्रेनिंग के लिए किसी स्ट्रीम का नवीनतम फ़्रेम कैप्चर करें। status: "screening" वाला जवाब बताता है कि इमेज अपलोड स्क्रीनिंग के नतीजे की प्रतीक्षा में रोकी गई है और अभी प्रोजेक्ट में नहीं है। लौटाए गए प्रोजेक्ट विवरण में उसका अनुरोधित गंतव्य बताया गया है।
Add the stream's latest frame to a project in the same workspace. The image goes to the train split in the "Device Captures" batch with the device-capture tag. Requires the device:read and image:create scopes, on a key that is not limited to project groups. Rate-limited to 10 requests per minute per device.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Device ID.
Stream ID.
ID of the project to add the frame to (not its URL slug). A project that does not exist or is in another workspace returns 400.
x3Gq1F0wDXhqPHpWzFbLlive is the latest camera frame. inference is the last frame the workflow ran on.
livePossible values: The frame was accepted or held for upload screening. A screening response does not mean the image is in the project. duplicate is true when the same image was already there.
screening means the frame is held for a verdict and is not yet in the project.
Returned image ID. With status screening, the image is still held outside the project.
a1B2c3D4e5F6falsemy-projectMy ProjectInvalid query parameter or request body.
Missing or invalid API key.
The key lacks image:create, is limited to project groups, or the workspace turns off camera stream viewing.
Device, stream, configuration, or source device not found. Read requests for devices owned by another workspace also return 404.
Rate limit exceeded. Most rate-limited responses are JSON; the device logs limiter can return a plain string response.
POST /{workspace}/devices/v2/{deviceId}/streams/{streamId}/capture HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 55
{
"projectId": "x3Gq1F0wDXhqPHpWzFbL",
"frameType": "live"
}{
"status": "text",
"sourceId": "a1B2c3D4e5F6",
"duplicate": false,
"projectUrl": "my-project",
"projectName": "My Project"
}लाइव फ़्रेम का सैंपल लें
कैमरे से हाल का फ़्रेम इमेज URL के रूप में प्राप्त करें (उदाहरण के लिए, यह देखने के लिए कि कैमरा क्या देख रहा है, या इमेज को Workflow में देने के लिए)। अगर स्ट्रीम में 10 सेकंड से कम पुराना फ़्रेम है, तो वह तुरंत मिल जाता है। अगर नहीं, तो Roboflow डिवाइस से नया फ़्रेम माँगता है और अधिकतम timeout_secondsतक प्रतीक्षा करता है। URL फ़्रेम की एक कॉपी की ओर इशारा करता है, इसलिए वह एक घंटे तक मान्य रहता है।
Get a signed URL to a recent live frame from the stream. Requires the device:update scope. Rate-limited to 10 requests per minute per device.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Device ID.
Stream ID.
How long to wait for the device to send a new frame when no recent one exists.
30Example: 30A frame was found.
Signed URL to a copy of the frame. Valid for one hour.
https://storage.googleapis.com/...image/jpeg2026-10-17T09:30:00.000ZWhen image_url stops working.
2026-10-17T10:30:02.000ZInvalid query parameter or request body.
Missing or invalid API key.
The key is not allowed, or the workspace turns off camera stream viewing.
Device, stream, configuration, or source device not found. Read requests for devices owned by another workspace also return 404.
Rate limit exceeded. Most rate-limited responses are JSON; the device logs limiter can return a plain string response.
The device did not send a frame before timeout_seconds ran out.
POST /{workspace}/devices/v2/{deviceId}/streams/{streamId}/sample HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 22
{
"timeout_seconds": 30
}{
"image_url": "https://storage.googleapis.com/...",
"content_type": "image/jpeg",
"captured_at": "2026-10-17T09:30:00.000Z",
"expires_at": "2026-10-17T10:30:02.000Z"
}अलर्ट कुछ समय के लिए रोकें
Stop health alerts for this device for one day. Requires the device:update scope.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Device ID.
Alerts are snoozed. The body is false when the device has never reported in.
Missing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
Device, stream, configuration, or source device not found. Read requests for devices owned by another workspace also return 404.
POST /{workspace}/devices/v2/{deviceId}/alerts/snooze HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"deviceId": "abc123",
"alerts_snoozed_until": "2026-10-18T09:30:00.000Z"
}पूरे फ़्लीट से डेटा पढ़ें
ये रीड अनुरोध Workspace के सभी डिवाइसों का डेटा पढ़ते हैं, इसलिए इनके लिए Workspace API key आवश्यक है।
Returns lifecycle events across every device in the workspace. Credentials in event data are redacted. Requires the device:read scope and a workspace API key.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Only return events from this device.
Only return events for this entity type (ex: device, stream).
Only return events for this entity ID.
Only return events with this name.
Comma-separated event names to return.
device.boot,stream.errorJSON array of entity_type and entity_id pairs. Returns events from any of them. When you send it without start_time, only the last 14 days are read.
[{"entity_type":"stream","entity_id":"entrance-cam"}]Set to false to return every raw row instead of collapsing repeats of the same event for the same entity.
truePossible values: ISO 8601 lower bound.
ISO 8601 upper bound.
Number of events per page.
100next_cursor or prev_cursor from a previous response.
Pagination direction.
backwardPossible values: A page of events.
Invalid query parameter or request body.
Missing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
GET /{workspace}/devices/v2/events HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"id": "text",
"event": "text",
"entity_type": "text",
"entity_id": "text",
"event_description": "text",
"error_code": "text",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"device_timestamp": "text",
"server_timestamp": "text",
"event_end_timestamp": "text"
}
],
"pagination": {
"next_cursor": "text",
"prev_cursor": "text",
"has_more": true,
"page_size": 100
},
"metadata": {
"count": 1,
"filters": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
}Returns the inference server version each device last reported. Requires the device:read scope and a workspace API key.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Comma-separated device IDs. Up to 200.
abc123,def456Versions keyed by device ID. A device that has not reported a version, or is not in the workspace, is null.
Invalid query parameter or request body.
Missing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
GET /{workspace}/devices/v2/inference-versions?device_ids=text HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"devices": {
"abc123": {
"inference_version": "0.52.0",
"reported_at": "2026-10-17T09:30:00.000Z"
},
"def456": null
},
"catalogs": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}Returns each device in the workspace with its stream IDs and camera type. Stream URLs are never returned, because they can hold camera passwords. Requires the device:read scope and a workspace API key.
Roboflow API key passed as a Bearer token.
Workspace ID (URL slug).
Devices and their streams.
Missing or invalid API key.
API key is bound to a different device, the key cannot change one of the devices, or this endpoint is not permitted for device-scoped keys, a source device belongs to another workspace, or a feature gate (for example Roboflow Lite mode or Secure Gateway) blocks the request.
GET /{workspace}/devices/v2/stream-options HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"devices": [
{
"id": "abc123",
"deviceName": "Line 3 Camera",
"streams": [
{
"streamId": "front-door",
"streamName": "front-door",
"cameraFamily": "basler"
}
]
}
]
}MCP Server
किसी AI एजेंट (उदाहरण के लिए, Claude, Cursor, ChatGPT, Codex) को Roboflow MCP Server से कनेक्ट करें और सरल भाषा में पूछकर अपने डिवाइसों को प्रबंधित करें। एजेंट वेब ऐप वाला ही API इस्तेमाल करता है और आपके खाते की अनुमतियों के अनुसार काम करता है।
MCP Server कनेक्ट होने पर, आपका एजेंट ये काम कर सकता है:
अपने फ़्लीट की स्थिति देखें: ऑफ़लाइन डिवाइस ढूँढें, लॉग और टेलीमेट्री पढ़ें, और हाल की गड़बड़ियों की वजह बताएँ।
कैमरे का दृश्य देखें: लाइव फ़्रेम लें, दृश्य देखें, और डिप्लॉय करने से पहले उस पर Workflow जाँचें।
डिवाइस में बदलाव करें: उसका कॉन्फ़िगरेशन अपडेट करें, इन्फ़रेंस का कोई संस्करण पिन करें या उसका नाम बदलें—मेंटेनेंस विंडो का ध्यान रखते हुए।
स्ट्रीम चलाएँ: स्ट्रीम जोड़ें, रोकें, फिर से शुरू करें, ट्रिगर करें या हटाएँ, और अटके हुए कैमरे के PoE पोर्ट को पावर-साइकिल करें।
डिवाइस व्यवस्थित करें: डिवाइस समूह बनाएँ और डिवाइसों को उनके बीच स्थानांतरित करें।
ये सवाल पूछकर देखें:
"मेरे कौन-से डिवाइस ऑफ़लाइन हैं और क्यों?"
"मुझे अभी दिखाएँ कि लोडिंग डॉक का कैमरा क्या देख रहा है।"
"Line 3 समूह के हर डिवाइस पर इन्फ़रेंस संस्करण 1.2.3 सेट करें।"
हर डिवाइस टूल यहाँ देखें: MCP Server टूल सूची.
अंतिम अपडेट
क्या यह उपयोगी था?