For the complete documentation index, see llms.txt. This page is also available as Markdown.

Deployment Manager

edge hardware पर डिप्लॉय किए गए computer vision models का प्रबंधन और निगरानी करें।

परिचय

Roboflow Deployment Manager की मदद से आप एज डिवाइसों पर कंप्यूटर विज़न मॉडल आसानी से सेट अप, डिप्लॉय और मैनेज कर सकते हैं। मॉडल को ट्रेन करने और वर्कफ़्लो बनाने के बाद, यह बड़े पैमाने पर डिप्लॉयमेंट करने के लिए एक ऑल-इन-वन समाधान देता है।

Deployment Manager का इस्तेमाल आप इन कामों के लिए कर सकते हैं:

  1. नए डिवाइसों को Roboflow Inference सर्वर.

  2. डिप्लॉयमेंट में इस्तेमाल के लिए कैमरा स्ट्रीम कॉन्फ़िगर करें।

  3. एज पर वर्कफ़्लो डिप्लॉय करें।

  4. डिप्लॉय किए गए एज डिवाइसों के लॉग, स्ट्रीम की स्थिति और टेलीमेट्री पर नज़र रखें।

Device overview with service health, disk usage, and running Streams

मुख्य आवश्यकताएँ:

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 Devices

get

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.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

Query parameters
folderstringOptional

Only return devices in this folder. Pass a folder ID, or global for devices at the workspace root. Subfolders are not included.

Example: global
Responses
200

Devices in the workspace.

application/json
get/{workspace}/devices/v2
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

Get a Device

get

Retrieve a single device by ID.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

deviceIdstringRequired

Device ID.

Responses
200

The device.

application/json
idstringOptional
namestring · nullableOptional
statusstring · enumOptional

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.

Possible values:
last_heartbeatstring · date-time · nullableOptional
platformstring · nullableOptional
platform_releasestring · nullableOptional
platform_versionstring · nullableOptional
architecturestring · nullableOptional
hostnamestring · nullableOptional
ip_addressstring · nullableOptional

IP address the device reports.

server_urlstring · nullableOptional

Server URL the device reports in its telemetry.

rfdm_versionstring · nullableOptional

Version of the Roboflow Device Manager running on the device.

typestring · nullableOptional

Device type reported by the device (for example "jetson").

tagsstring[]Optional
created_atstring · date-time · nullableOptional
get/{workspace}/devices/v2/{deviceId}
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

post

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.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

Body
device_namestringRequired

Device name. Must not be empty.

device_typestringOptional

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.

osstring · enumOptional

Set to roboflow-os for a Roboflow OS device. Only valid when device_type is edge.

Possible values:
runtimestring · enumOptional

Container runtime the installer sets up. Required for device_type secure-gateway.

Possible values:
workflow_idstringOptional

Workflow URL slug to assign to the device. For an AI1 device it becomes the Workflow of the camera stream.

tagsstring[]Optional

Tags for the device. Each tag is trimmed and must not be empty. Duplicates are removed.

projectGroupIdstring · nullableOptional

ID of the folder to put the device in. Leave it out to create the device at the workspace root.

offline_modebooleanOptional

Provision the device for offline use. Only valid for AI1 and Roboflow OS devices, on workspaces with Roboflow Lite mode.

sourceDeviceIdstringOptional

ID of a device in the same workspace to copy the configuration from. Its streams, install history, and queued changes are not copied.

Responses
201

Device created.

application/json
deviceIdstringRequired

ID of the newly-created device.

installIdstringRequired

Install ID. Use it to install Deployment Manager on the device. It expires after 10 minutes.

offlineProvisioningQrPayloadstringOptional

Data for the offline provisioning QR code. Only returned for devices created in offline mode.

post/{workspace}/devices/v2
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

यह वर्कस्पेस-व्यापी एंडपॉइंट है। डिवाइस-स्कोप वाली API कुंजियों को यह मिलेगा 403 क्योंकि पाथ में :deviceId नहीं है।

Get Workspace Default Config

get

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.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

Responses
200

The merged config and the workspace patch.

application/json
get/{workspace}/devices/v2/default-config
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
      }
    }
  }
}

वर्कस्पेस का डिफ़ॉल्ट कॉन्फ़िगरेशन अपडेट करें

वर्कस्पेस का कॉन्फ़िगरेशन पैच बदलें। नए डिवाइस मर्ज किए गए परिणाम से शुरू होते हैं। हर बार पूरा पैच भेजें, क्योंकि नया पैच पुराने पैच की जगह लेता है।

Update Workspace Default Config

patch

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.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

Body
Responses
200

The patch was saved.

application/json
successbooleanOptionalExample: true
patch/{workspace}/devices/v2/default-config
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

Get Device Config

get

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.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

deviceIdstringRequired

Device ID.

Query parameters
waitinteger · max: 45Optional

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.

Default: 0
Header parameters
If-None-MatchstringOptional

ETag from an earlier response.

Responses
200

The current device configuration.

application/json

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.

Other propertiesanyOptional
get/{workspace}/devices/v2/{deviceId}/config
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

Update Device Config

patch

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.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

deviceIdstringRequired

Device ID.

Query parameters
forceApplystring · enumOptional

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.

Possible values:
immediateDeltastring · enumOptional

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.

Possible values:
Body

Only the fields you want to change.

Other propertiesanyOptional
Responses
200

The change was saved or staged for production approval.

application/json
successbooleanOptionalExample: true
stagedbooleanOptional

True when production approval is required and live config is unchanged.

deferredbooleanOptional

true when the change waits for the device's next maintenance window.

Example: false
patch/{workspace}/devices/v2/{deviceId}/config
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 Config Revisions

get

List prior configuration revision metadata for a device, newest first.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

deviceIdstringRequired

Device ID.

Query parameters
limitinteger · min: 1 · max: 500Optional

Number of revisions to return. Clamped to 1-500.

Default: 10
cursorstringOptional

next_cursor from the previous page: the save time of the last revision returned, as an ISO 8601 timestamp.

Responses
200

A page of revisions, newest first.

application/json
get/{workspace}/devices/v2/{deviceId}/config/history
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

Set Service Version

patch

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.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

deviceIdstringRequired

Device ID.

Body
servicestring · enumRequired

The service to update.

Example: inferencePossible values:
versionstring · max: 128Required

The Docker image tag to run. Use letters, numbers, dots, hyphens, and underscores, and start with a letter, number, or underscore.

Example: 1.2.3
imagestringRequired

The 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.

Example: roboflow/roboflow-inference-server-jetson
Responses
200

The version was saved. This does not confirm that the device installed it.

application/json
successbooleanOptionalExample: true
deferredbooleanOptional

true when the change waits for the device's next maintenance window.

Example: false
patch/{workspace}/devices/v2/{deviceId}/config/service-version
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

post

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.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

deviceIdstringRequired

Device ID.

Body
actionstring · enumRequired

What the device should do. An action outside this list returns 400.

Example: restartPossible values:
Responses
200

The command was queued, or a stream configuration change was staged for production approval.

application/json
idstring · nullableOptional

Command ID, used to match the device's acknowledgement. Null when staged for production approval.

Example: cmd_abc
stagedbooleanOptional

True when a stream change awaits approval. Read configProposal from the device config.

requestedAtintegerOptional

Only for restart_service. When the server recorded the request, in milliseconds since the epoch.

Example: 1792234200000
post/{workspace}/devices/v2/{deviceId}/commands
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 Streams

get

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.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

deviceIdstringRequired

Device ID.

Responses
200

Streams configured on the device.

application/json
get/{workspace}/devices/v2/{deviceId}/streams
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

Get a Stream

get

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.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

deviceIdstringRequired

Device ID.

streamIdstringRequired

Stream ID.

Query parameters
includestring · enumOptional

Set to status_events to attach the stream's 20 most recent lifecycle events from the last 7 days.

Possible values:
Responses
200

The stream.

application/json
idstring · nullableOptional
namestring · nullableOptional
statusstring · nullableOptional

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".

provisioningbooleanOptional

True when the stream is in the config but has not reported in yet.

modestring · enum · nullableOptional

"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.

Possible values:
pipeline_idstring · nullableOptional
workflow_idstring · nullableOptional
sourceone ofOptional

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.

Example: rtsp://192.168.1.100:554/live
string · nullableOptional
or
objectOptional
or
configured_sourceone ofOptional

Source 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.

string · nullableOptional
or
objectOptional
or
started_atstring · date-time · nullableOptional
last_event_atstring · date-time · nullableOptional
camera_fpsnumber · nullableOptional

Camera frame rate reported by the device heartbeat.

inference_fpsnumber · nullableOptional

Inference pipeline frame rate reported by the device heartbeat.

sharpnessnumber · nullableOptional

Focus score of the most recent frame, reported by the device heartbeat. An integer from 0 (blurry) to 100 (sharp).

Example: 82
errorstring · nullableOptional

Legacy free-text error from the device. Credentials are masked. An error reported as an object is returned as a JSON string.

error_codestring · nullableOptional

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.

Example: STREAM_SOURCE_UNAVAILABLE
error_messagestring · nullableOptional

Text that goes with error_code. Credentials are masked.

error_retryableboolean · nullableOptional

True when the device retries the stream by itself. Null when the device does not report it.

get/{workspace}/devices/v2/{deviceId}/streams/{streamId}
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

Get Device Logs

get

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.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

deviceIdstringRequired

Device ID.

Query parameters
limitinteger · min: 1 · max: 1000Optional

Number of log entries to return. Clamped to 1-1000.

Default: 100
start_timestring · date-timeOptional

ISO 8601 timestamp lower bound. Returns 400 if not parseable.

end_timestring · date-timeOptional

ISO 8601 timestamp upper bound. Returns 400 if not parseable.

servicestringOptional

Comma-separated list of service names to filter by.

severitystringOptional

Comma-separated list of severity levels to filter by (for example "INFO,WARN,ERROR").

cursorstring · date-timeOptional

Pass back next_cursor from the previous response to fetch the next page (older logs). Returns 400 if not parseable.

Responses
200

A page of logs.

application/json
get/{workspace}/devices/v2/{deviceId}/logs
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

Get Device Telemetry

get

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.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

deviceIdstringRequired

Device ID.

Query parameters
time_periodstring · enumOptional

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).

Default: 24hPossible values:
includestringOptional

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.

Default: metrics,system_status,services,stream_fps,hardware,network_interfaces
Responses
200

Aggregated telemetry buckets.

application/json

Sections are selected with the include query parameter. Every section except service_history is returned by default.

time_periodstring · enumOptionalPossible values:
bucket_intervalstringOptional

Human-readable bucket size (for example "30 MINUTE", "4 HOUR").

fill_interval_secondsintegerOptional
services_truncatedbooleanOptional

Present when the service query hit its cap. Gaps in service history may come from the cap rather than a real outage.

stream_fps_truncatedbooleanOptional

Present when the stream FPS query hit its row cap, so some buckets are missing.

get/{workspace}/devices/v2/{deviceId}/telemetry
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

Get Device Events

get

Returns device and stream lifecycle events (for example device boots, stream starts and stops, errors, config changes).

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

deviceIdstringRequired

Device ID.

Query parameters
limitinteger · min: 1 · max: 1000Optional

Number of events to return. Clamped to 1-1000.

Default: 100
entity_typestringOptional

Filter to events for a single entity type (for example "device", "stream").

entity_idstringOptional

Filter to events for a single entity ID.

eventstringOptional

Filter to events with this event name.

start_timestring · date-timeOptional

ISO 8601 timestamp lower bound. Returns 400 if not parseable.

end_timestring · date-timeOptional

ISO 8601 timestamp upper bound. Returns 400 if not parseable.

cursorstringOptional

Opaque pagination cursor from a previous response. Pass back next_cursor or prev_cursor. Malformed cursors return 400.

directionstring · enumOptional

Pagination direction. Other values return 400.

Default: backwardPossible values:
dedupebooleanOptional

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.

Default: true
Responses
200

A page of events.

application/json
get/{workspace}/devices/v2/{deviceId}/events
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

List Device Services

get

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.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

deviceIdstringRequired

Device ID.

Query parameters
includestringOptional

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.

Default: status
kindstringOptional

Return only services of this kind.

time_periodstring · enumOptional

Window for the metrics section. Ignored otherwise.

Default: 24hPossible values:
Responses
200

The device's services.

application/json
device_idstringOptional
metrics_truncatedbooleanOptional

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.

get/{workspace}/devices/v2/{deviceId}/services
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
}

Get Device Service

get

Returns one service, in the same shape as an entry in the list. Returns 404 when the device declares no service with that name.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

deviceIdstringRequired

Device ID.

serviceNamestringRequired

Service name, as declared in the device config.

Query parameters
includestringOptional

Same sections as the list endpoint.

Default: status
time_periodstring · enumOptional

Window for the metrics section. Ignored otherwise.

Default: 24hPossible values:
Responses
200

One service.

application/json

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.

namestringOptionalExample: plc-relay
kindstring · enumOptional

Service kind, resolved from the image. A container Roboflow does not publish resolves to "custom" and has no typed status.

Example: plc_relayPossible values:
imagestring · nullableOptionalExample: repo.roboflow.com/roboflow-edge/plc-relay
tagstring · nullableOptional
tag_is_canonicalboolean · nullableOptional

Whether 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.

automatic_updatesboolean · nullableOptional
has_pending_changesbooleanOptional

True when a config edit is queued behind a maintenance window.

signal_conflictsstring[]Optional

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.

statestring · nullableOptional

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.

Example: running
state_reported_atstring · date-time · nullableOptional

Device clock. Null when the device sent no timestamp.

state_received_atstring · date-time · nullableOptional

Server clock.

error_codestring · nullableOptional
image_statestring · nullableOptionalExample: pull_succeeded
image_state_reported_atstring · date-time · nullableOptional
image_state_received_atstring · date-time · nullableOptional
get/{workspace}/devices/v2/{deviceId}/services/{serviceName}
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 जोड़ें।

include=config पर्यावरण चर के मान उसी रूप में लौटाता है जिस रूप में वे संग्रहीत हैं, और उनमें अक्सर broker पासवर्ड तथा API keys जैसी credentials होती हैं। इसी कारण यह डिफ़ॉल्ट रूप से बंद रहता है। ऐसा कोई भी response जिसमें config शामिल हो, उसे संवेदनशील मानें।

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 लौटाता है।

Get Device Service Metric Series

get

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.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

deviceIdstringRequired

Device ID.

serviceNamestringRequired

Service name, as declared in the device config.

Query parameters
metricstringRequired

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.

time_periodstring · enumOptional

Window to read.

Default: 24hPossible values:
Responses
200

The metric over time.

application/json
device_idstringOptional
servicestringOptionalExample: plc-relay
kindstringOptionalExample: plc_relay
metricstringOptionalExample: connected
metric_typestring · enumOptional

A boolean metric charts as 1 or 0. The type is echoed so a 1 that means "true" stays readable as one.

Possible values:
time_periodstringOptionalExample: 24h
available_metricsstring[]Optional
truncatedbooleanOptional

True 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.

covered_fromstring · date-time · nullableOptional
covered_tostring · date-time · nullableOptional
get/{workspace}/devices/v2/{deviceId}/services/{serviceName}/series
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 Device Groups

get

List the workspace's device groups. Requires the device:read scope.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

Responses
200

The groups, as a JSON array.

application/json

A named set of devices.

idstringOptionalExample: g8Xk2LmQp1
workspace_idstringOptional
namestringOptionalExample: Line 3 cameras
descriptionstring · nullableOptional
device_idsstring[]OptionalExample: ["device-a","device-b"]
colorstring · nullableOptionalExample: #8315F9
created_atanyOptional

When the group was created. Write responses can return this before the server resolves it, so get the group again for an exact value.

updated_atanyOptional

When the group last changed. Write responses can return the value from before the write, so get the group again for an exact value.

created_bystringOptional

ID of the user who created the group. anonymous when an API key created it.

get/{workspace}/devices/v2/groups
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 Device Group

post

Create a group with at least one device. Requires the device:update scope.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

Body
namestringRequiredExample: Line 3 cameras
device_idsstring[] · min: 1RequiredExample: ["device-a","device-b"]
descriptionstringOptional
colorstringOptional
Responses
201

The created group.

application/json

A named set of devices.

idstringOptionalExample: g8Xk2LmQp1
workspace_idstringOptional
namestringOptionalExample: Line 3 cameras
descriptionstring · nullableOptional
device_idsstring[]OptionalExample: ["device-a","device-b"]
colorstring · nullableOptionalExample: #8315F9
created_atanyOptional

When the group was created. Write responses can return this before the server resolves it, so get the group again for an exact value.

updated_atanyOptional

When the group last changed. Write responses can return the value from before the write, so get the group again for an exact value.

created_bystringOptional

ID of the user who created the group. anonymous when an API key created it.

post/{workspace}/devices/v2/groups
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"
}

Get a Device Group

get

Requires the device:read scope.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

groupIdstringRequired

Device group ID, from List Device Groups.

Responses
200

The group.

application/json

A named set of devices.

idstringOptionalExample: g8Xk2LmQp1
workspace_idstringOptional
namestringOptionalExample: Line 3 cameras
descriptionstring · nullableOptional
device_idsstring[]OptionalExample: ["device-a","device-b"]
colorstring · nullableOptionalExample: #8315F9
created_atanyOptional

When the group was created. Write responses can return this before the server resolves it, so get the group again for an exact value.

updated_atanyOptional

When the group last changed. Write responses can return the value from before the write, so get the group again for an exact value.

created_bystringOptional

ID of the user who created the group. anonymous when an API key created it.

get/{workspace}/devices/v2/groups/{groupId}
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"
}

Update a Device Group

patch

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.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

groupIdstringRequired

Device group ID, from List Device Groups.

Body
namestringOptional
descriptionstringOptional
device_idsstring[]Optional
colorstringOptional
Responses
200

The updated group.

application/json

A named set of devices.

idstringOptionalExample: g8Xk2LmQp1
workspace_idstringOptional
namestringOptionalExample: Line 3 cameras
descriptionstring · nullableOptional
device_idsstring[]OptionalExample: ["device-a","device-b"]
colorstring · nullableOptionalExample: #8315F9
created_atanyOptional

When the group was created. Write responses can return this before the server resolves it, so get the group again for an exact value.

updated_atanyOptional

When the group last changed. Write responses can return the value from before the write, so get the group again for an exact value.

created_bystringOptional

ID of the user who created the group. anonymous when an API key created it.

patch/{workspace}/devices/v2/groups/{groupId}
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 a Device Group

delete

Delete the group. Its devices are not changed. Requires the device:update scope.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

groupIdstringRequired

Device group ID, from List Device Groups.

Responses
204

The group was deleted.

No content

delete/{workspace}/devices/v2/groups/{groupId}
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 to a Group

post

Add devices and keep the current members. Requires the device:update scope.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

groupIdstringRequired

Device group ID, from List Device Groups.

Body
device_idsstring[] · min: 1RequiredExample: ["device-a"]
Responses
200

The updated group.

application/json

A named set of devices.

idstringOptionalExample: g8Xk2LmQp1
workspace_idstringOptional
namestringOptionalExample: Line 3 cameras
descriptionstring · nullableOptional
device_idsstring[]OptionalExample: ["device-a","device-b"]
colorstring · nullableOptionalExample: #8315F9
created_atanyOptional

When the group was created. Write responses can return this before the server resolves it, so get the group again for an exact value.

updated_atanyOptional

When the group last changed. Write responses can return the value from before the write, so get the group again for an exact value.

created_bystringOptional

ID of the user who created the group. anonymous when an API key created it.

post/{workspace}/devices/v2/groups/{groupId}/devices
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 from a Group

delete

Remove devices and keep the other members. The devices themselves are not changed. Requires the device:update scope.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

groupIdstringRequired

Device group ID, from List Device Groups.

Body
device_idsstring[] · min: 1RequiredExample: ["device-a"]
Responses
200

The updated group.

application/json

A named set of devices.

idstringOptionalExample: g8Xk2LmQp1
workspace_idstringOptional
namestringOptionalExample: Line 3 cameras
descriptionstring · nullableOptional
device_idsstring[]OptionalExample: ["device-a","device-b"]
colorstring · nullableOptionalExample: #8315F9
created_atanyOptional

When the group was created. Write responses can return this before the server resolves it, so get the group again for an exact value.

updated_atanyOptional

When the group last changed. Write responses can return the value from before the write, so get the group again for an exact value.

created_bystringOptional

ID of the user who created the group. anonymous when an API key created it.

delete/{workspace}/devices/v2/groups/{groupId}/devices
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 सेट करें।

Update a Device

patch

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.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

deviceIdstringRequired

Device ID.

Body
device_namestringOptional

New display name for the device.

Example: Line 3 Camera
workflow_idstringOptional

Workflow URL slug stored on the device record.

production_modebooleanOptional

Stored on the device record as sent.

livesampling_enabledbooleanOptional

Legacy live sampling switch. Turning it on lasts 5 minutes.

Responses
200

The device was updated.

application/json
successbooleanOptionalExample: true
patch/{workspace}/devices/v2/{deviceId}
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

delete

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.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

deviceIdstringRequired

Device ID.

Responses
200

The device was deleted.

application/json
successbooleanOptionalExample: true
delete/{workspace}/devices/v2/{deviceId}
DELETE /{workspace}/devices/v2/{deviceId} HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "success": true
}

किसी डिवाइस को फिर से डिप्लॉय करें

नए installId का उपयोग करके डिवाइस पर Deployment Manager को फिर से इंस्टॉल करें, ठीक वैसे ही जैसे इसके बाद डिवाइस बनाएँ.

Redeploy a Device

post

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.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

deviceIdstringRequired

Device ID.

Responses
200

A new install was created.

application/json
deviceIdstringOptionalExample: abc123
installIdstringOptional

ID of the new install.

Example: MFRGGZDFMZTWQ2LK
offlineProvisioningQrPayloadstringOptional

Provisioning data for an offline device. Only returned for offline devices.

post/{workspace}/devices/v2/{deviceId}/redeploy
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 Pending Config

post

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.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

deviceIdstringRequired

Device ID.

Responses
200

The pending changes were applied, or there were none.

application/json
successbooleanOptionalExample: true
deferredbooleanOptionalExample: false
post/{workspace}/devices/v2/{deviceId}/config/apply-pending
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" वाला जवाब बताता है कि इमेज अपलोड स्क्रीनिंग के नतीजे की प्रतीक्षा में रोकी गई है और अभी प्रोजेक्ट में नहीं है। लौटाए गए प्रोजेक्ट विवरण में उसका अनुरोधित गंतव्य बताया गया है।

Capture a Frame to a Project

post

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.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

deviceIdstringRequired

Device ID.

streamIdstringRequired

Stream ID.

Body
projectIdstringRequired

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.

Example: x3Gq1F0wDXhqPHpWzFbL
frameTypestring · enumOptional

live is the latest camera frame. inference is the last frame the workflow ran on.

Default: livePossible values:
Responses
200

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.

application/json
statusstringOptional

screening means the frame is held for a verdict and is not yet in the project.

sourceIdstringOptional

Returned image ID. With status screening, the image is still held outside the project.

Example: a1B2c3D4e5F6
duplicatebooleanOptionalExample: false
projectUrlstringOptionalExample: my-project
projectNamestringOptionalExample: My Project
post/{workspace}/devices/v2/{deviceId}/streams/{streamId}/capture
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 फ़्रेम की एक कॉपी की ओर इशारा करता है, इसलिए वह एक घंटे तक मान्य रहता है।

Sample a Live Frame

post

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.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

deviceIdstringRequired

Device ID.

streamIdstringRequired

Stream ID.

Body
timeout_secondsnumber · max: 45Optional

How long to wait for the device to send a new frame when no recent one exists.

Default: 30Example: 30
Responses
200

A frame was found.

application/json
image_urlstringOptional

Signed URL to a copy of the frame. Valid for one hour.

Example: https://storage.googleapis.com/...
content_typestringOptionalExample: image/jpeg
captured_atstring · date-timeOptionalExample: 2026-10-17T09:30:00.000Z
expires_atstring · date-timeOptional

When image_url stops working.

Example: 2026-10-17T10:30:02.000Z
post/{workspace}/devices/v2/{deviceId}/streams/{streamId}/sample
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"
}

अलर्ट कुछ समय के लिए रोकें

Snooze Device Alerts

post

Stop health alerts for this device for one day. Requires the device:update scope.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

deviceIdstringRequired

Device ID.

Responses
200

Alerts are snoozed. The body is false when the device has never reported in.

application/json
or
boolean · enumOptionalPossible values:
post/{workspace}/devices/v2/{deviceId}/alerts/snooze
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 आवश्यक है।

List Workspace Device Events

get

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.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

Query parameters
device_idstringOptional

Only return events from this device.

entity_typestringOptional

Only return events for this entity type (ex: device, stream).

entity_idstringOptional

Only return events for this entity ID.

eventstringOptional

Only return events with this name.

eventsstringOptional

Comma-separated event names to return.

Example: device.boot,stream.error
entity_filtersstringOptional

JSON 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.

Example: [{"entity_type":"stream","entity_id":"entrance-cam"}]
dedupestring · enumOptional

Set to false to return every raw row instead of collapsing repeats of the same event for the same entity.

Default: truePossible values:
start_timestring · date-timeOptional

ISO 8601 lower bound.

end_timestring · date-timeOptional

ISO 8601 upper bound.

page_sizeinteger · min: 1 · max: 1000Optional

Number of events per page.

Default: 100
cursorstringOptional

next_cursor or prev_cursor from a previous response.

directionstring · enumOptional

Pagination direction.

Default: backwardPossible values:
Responses
200

A page of events.

application/json
get/{workspace}/devices/v2/events
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"
    }
  }
}

Get Inference Versions

get

Returns the inference server version each device last reported. Requires the device:read scope and a workspace API key.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

Query parameters
device_idsstringRequired

Comma-separated device IDs. Up to 200.

Example: abc123,def456
Responses
200

Versions keyed by device ID. A device that has not reported a version, or is not in the workspace, is null.

application/json
get/{workspace}/devices/v2/inference-versions
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"
  }
}

List Stream Options

get

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.

Authorizations
AuthorizationstringRequired

Roboflow API key passed as a Bearer token.

Path parameters
workspacestringRequired

Workspace ID (URL slug).

Responses
200

Devices and their streams.

application/json
get/{workspace}/devices/v2/stream-options
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 इस्तेमाल करता है और आपके खाते की अनुमतियों के अनुसार काम करता है।

Roboflow MCP Server सेट अप करें कुछ ही मिनटों में, फिर अपने एजेंट से अपने डिवाइसों के बारे में पूछें।

MCP Server कनेक्ट होने पर, आपका एजेंट ये काम कर सकता है:

  • अपने फ़्लीट की स्थिति देखें: ऑफ़लाइन डिवाइस ढूँढें, लॉग और टेलीमेट्री पढ़ें, और हाल की गड़बड़ियों की वजह बताएँ।

  • कैमरे का दृश्य देखें: लाइव फ़्रेम लें, दृश्य देखें, और डिप्लॉय करने से पहले उस पर Workflow जाँचें।

  • डिवाइस में बदलाव करें: उसका कॉन्फ़िगरेशन अपडेट करें, इन्फ़रेंस का कोई संस्करण पिन करें या उसका नाम बदलें—मेंटेनेंस विंडो का ध्यान रखते हुए।

  • स्ट्रीम चलाएँ: स्ट्रीम जोड़ें, रोकें, फिर से शुरू करें, ट्रिगर करें या हटाएँ, और अटके हुए कैमरे के PoE पोर्ट को पावर-साइकिल करें।

  • डिवाइस व्यवस्थित करें: डिवाइस समूह बनाएँ और डिवाइसों को उनके बीच स्थानांतरित करें।

ये सवाल पूछकर देखें:

  • "मेरे कौन-से डिवाइस ऑफ़लाइन हैं और क्यों?"

  • "मुझे अभी दिखाएँ कि लोडिंग डॉक का कैमरा क्या देख रहा है।"

  • "Line 3 समूह के हर डिवाइस पर इन्फ़रेंस संस्करण 1.2.3 सेट करें।"

हर डिवाइस टूल यहाँ देखें: MCP Server टूल सूची.

अंतिम अपडेट

क्या यह उपयोगी था?