Skip to main content
POST
/
core
/
devices
/
{device_id}
/
pipelines
Create pipeline
curl --request POST \
  --url https://acusight.io/api/core/devices/{device_id}/pipelines \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "auto_assign_to": 123,
  "config": [
    123
  ],
  "description": "<string>",
  "hls_port": 123,
  "stream_path": "<string>",
  "video_source_url": "<string>",
  "webrtc_port": 123
}
'
import requests

url = "https://acusight.io/api/core/devices/{device_id}/pipelines"

payload = {
"name": "<string>",
"auto_assign_to": 123,
"config": [123],
"description": "<string>",
"hls_port": 123,
"stream_path": "<string>",
"video_source_url": "<string>",
"webrtc_port": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
auto_assign_to: 123,
config: [123],
description: '<string>',
hls_port: 123,
stream_path: '<string>',
video_source_url: '<string>',
webrtc_port: 123
})
};

fetch('https://acusight.io/api/core/devices/{device_id}/pipelines', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://acusight.io/api/core/devices/{device_id}/pipelines",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'auto_assign_to' => 123,
'config' => [
123
],
'description' => '<string>',
'hls_port' => 123,
'stream_path' => '<string>',
'video_source_url' => '<string>',
'webrtc_port' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://acusight.io/api/core/devices/{device_id}/pipelines"

payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"auto_assign_to\": 123,\n \"config\": [\n 123\n ],\n \"description\": \"<string>\",\n \"hls_port\": 123,\n \"stream_path\": \"<string>\",\n \"video_source_url\": \"<string>\",\n \"webrtc_port\": 123\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://acusight.io/api/core/devices/{device_id}/pipelines")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"auto_assign_to\": 123,\n \"config\": [\n 123\n ],\n \"description\": \"<string>\",\n \"hls_port\": 123,\n \"stream_path\": \"<string>\",\n \"video_source_url\": \"<string>\",\n \"webrtc_port\": 123\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://acusight.io/api/core/devices/{device_id}/pipelines")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"auto_assign_to\": 123,\n \"config\": [\n 123\n ],\n \"description\": \"<string>\",\n \"hls_port\": 123,\n \"stream_path\": \"<string>\",\n \"video_source_url\": \"<string>\",\n \"webrtc_port\": 123\n}"

response = http.request(request)
puts response.read_body
{
  "auto_assign_to": 123,
  "config": [
    123
  ],
  "config_synced_at": "<string>",
  "created_at": "<string>",
  "current_config": [
    123
  ],
  "current_topology": [
    123
  ],
  "description": "<string>",
  "desired_config": [
    123
  ],
  "device": {
    "auto_assign_to": 123,
    "compose_file_path": "<string>",
    "config_last_sync": "<string>",
    "created_at": "<string>",
    "device_id": "<string>",
    "device_type": "<string>",
    "edge_key": "<string>",
    "hls_port": 123,
    "id": 123,
    "ip_address": "<string>",
    "last_seen": "<string>",
    "last_snapshot_at": "<string>",
    "name": "<string>",
    "organization_id": "<string>",
    "pipelines": "<array>",
    "portainer_endpoint_id": 123,
    "provisioned_at": "<string>",
    "provisioned_by": "<string>",
    "running_model": {
      "alias": "<string>",
      "archived_at": "<string>",
      "artifact_uri": "<string>",
      "class_labels": [
        123
      ],
      "created_at": "<string>",
      "display_name": "<string>",
      "format": "<string>",
      "framework": "<string>",
      "id": 123,
      "is_reference": true,
      "model_type": "<string>",
      "project_id": 123,
      "source_model_version_id": 123,
      "updated_at": "<string>",
      "version": 123,
      "version_id": 123
    },
    "running_model_version_id": 123,
    "status": "<string>",
    "stream_path": "<string>",
    "target_model": {
      "alias": "<string>",
      "archived_at": "<string>",
      "artifact_uri": "<string>",
      "class_labels": [
        123
      ],
      "created_at": "<string>",
      "display_name": "<string>",
      "format": "<string>",
      "framework": "<string>",
      "id": 123,
      "is_reference": true,
      "model_type": "<string>",
      "project_id": 123,
      "source_model_version_id": 123,
      "updated_at": "<string>",
      "version": 123,
      "version_id": 123
    },
    "target_model_version_id": 123,
    "updated_at": "<string>",
    "virtual_device_config": {
      "active_track_count": 123,
      "batch_size": 123,
      "created_at": "<string>",
      "current_image_index": 123,
      "dataset_format": "<string>",
      "dataset_path": "<string>",
      "dataset_version_id": 123,
      "device_id": "<string>",
      "event_frequency": 123,
      "event_types": "<string>",
      "id": 123,
      "loop": true,
      "max_concurrent_tracks": 123,
      "random_order": true,
      "simulation_mode": "<string>",
      "simulation_status": "<string>",
      "total_events_sent": 123,
      "total_images": 123,
      "total_images_uploaded": 123,
      "track_max_duration": 123,
      "track_min_duration": 123,
      "updated_at": "<string>",
      "upload_frequency": 123
    },
    "webrtc_port": 123
  },
  "device_id": "<string>",
  "hls_port": 123,
  "id": 123,
  "last_snapshot_at": "<string>",
  "name": "<string>",
  "organization_id": "<string>",
  "pipeline_id": "<string>",
  "running_model_version_id": 123,
  "status": "<string>",
  "stream_path": "<string>",
  "target_model_version_id": 123,
  "updated_at": "<string>",
  "video_source_type": "<string>",
  "video_source_url": "<string>",
  "webrtc_port": 123
}
{}
{}
{}

Authorizations

Authorization
string
header
required

JWT access token. Paste the token only; the Bearer prefix is added automatically.

Path Parameters

device_id
string
required

Device ID

Body

application/json

Pipeline creation payload

name
string
required
auto_assign_to
integer
config
integer[]
description
string
hls_port
integer
stream_path
string
video_source_type
enum<string>
Available options:
STREAM,
FILE,
CAMERA
video_source_url
string
webrtc_port
integer

Response

Created pipeline

auto_assign_to
integer

Per-pipeline data tracking (moved from Device for multi-pipeline support)

config
integer[]

Full streamproc pipeline config

config_synced_at
string
created_at
string
current_config
integer[]

Config sync (desired-state reconciliation, mirrors model deployment pattern)

current_topology
integer[]
description
string
desired_config
integer[]
device
object

Relationships

device_id
string

FK to Device.DeviceID

hls_port
integer

MediaMTX HLS port

id
integer
last_snapshot_at
string

Most recent snapshot upload

name
string
organization_id
string

Denormalized from device for query perf

pipeline_id
string
running_model_version_id
integer

Actual state — reported by agent

status
string

"active", "stopped", "error"

stream_path
string

Per-pipeline live streaming config

target_model_version_id
integer

Desired state — set on deploy

updated_at
string
video_source_type
string

"STREAM", "FILE", "CAMERA"

video_source_url
string

Video source configuration

webrtc_port
integer

MediaMTX WebRTC port