HTTP API reference

The routes the NetAudio daemon serves in netaudio 0.6.1, released .

This page is generated from the published source. Each route lists the request fields its handler reads. Response formats are not documented here yet; request a route and read the JSON it returns.

Connecting

Start the daemon with netaudio daemon start. It listens on port 4780 by default, and netaudio daemon web prints its addresses. Send POST bodies as a JSON object. Responses are JSON, except the live event stream.

curl http://HOST:4780/devices

Preset, Dante Domain Manager account, device lock key, and monitoring settings requests are refused when a browser sends them from a page on another origin. Routes marked loopback only answer requests from the same computer.

Live events

GET /events

Server-sent events. The first event is a snapshot of the daemon’s devices. Later events report changes as they happen.

Query

patches: patches=1 sends a device_patch event with only the changed and removed fields after the first record for each device.

meters

telemetry: telemetry=0 leaves clock frequency offset, last seen time, interface traffic, and receiver flow health out of device records.

Routing

POST /subscribe

Body

rx_device, rx_channel, tx_channel, tx_device, subscriptions

POST /subscriptions/apply

Body

routes

POST /unsubscribe

Body

rx_device, rx_channel, rx_channels

Devices

GET /devices

Query

context

DELETE /devices

Query

selection

GET /devices/{device}

Query

context

DELETE /devices/{device}

POST /identify

Body

device

POST /interface

Body

device, interface, mode, ip, netmask, gateway, dns

GET /interfaces/{device}

POST /lock

Body

device, pin

GET /lock-status/{device}

POST /reboot

Body

device

POST /redundancy

Body

device, mode

GET /redundancy/{device}

POST /refresh

Body

device

The body is optional.

POST /rename-channel

Body

device, name, channel_type, channel_number

POST /rename-device

Body

device, name

POST /store-current-configuration

Body

device

POST /unlock

Body

device, pin

Audio and clock settings

POST /refresh-clock

Body

device, control_profile

POST /set-aes67

Body

device, enabled

POST /set-aes67-multicast-prefix

Body

device, prefix

POST /set-clock-configuration

Body

device, control_profile, changes

POST /set-clock-source

Body

device, control_profile, clock_source

POST /set-clock-subdomain

Body

device, control_profile, subdomain

POST /set-encoding

Body

device, encoding

POST /set-gain

Body

device, channel_number, gain_level, device_type

POST /set-latency

Body

device, latency

POST /set-preferred-leader

Body

device, control_profile, preferred

POST /set-receive-flow-default-slots

Body

device, default_slots

POST /set-receive-flow-performance

Body

device, latency_microseconds, frames_per_packet

POST /set-sample-rate

Body

device, sample_rate, confirm_destructive

POST /set-sample-rate-pullup

Body

device, raw_value, value

POST /set-transmit-flow-performance

Body

device, latency_microseconds, frames_per_packet

POST /set-unicast-performance

Body

device, latency_microseconds, frames_per_packet

Flows

GET /external-flows

GET /external-flows/diagnostics

POST /external-flows/subscribe

Body

rx_device, source_ipv4, session_id, content_sha256, receiver_channel_ids, flow_slot_assignments

POST /transmit-flows/create

Body

device, specification, confirmed

POST /transmit-flows/delete

Body

device, flow_id, confirmed

POST /transmit-flows/plan

Body

device, specification

GET /transmit-flows/{device}

Metering

GET /metering/cache

GET /metering/snapshot/{device}

POST /metering/start

Body

device, client_id

GET /metering/status

POST /metering/stop

Body

device, client_id

Presets

POST /presets/preview

Body

xml, devices

POST /presets/save

Body

name, devices, sections

POST /presets/plan

Body

xml, targets, excluded, confirm_destructive, store_current_configuration

POST /presets/load

Body

xml, targets, excluded, confirm_destructive, store_current_configuration, confirmed, digest

Dante Domain Manager

GET /ddm/status

GET /ddm/connections

GET /ddm/domains

Query

context

POST /ddm/domains

Body

server, name

GET /ddm/devices

Query

context

POST /ddm/refresh

Body

context

POST /ddm/graphql

Body

query, variables, operation_name, context

POST /ddm/login

Body

server, url, method, api_key, username, password

POST /ddm/logout

Body

server

POST /ddm/context

Body

context, server, domain_id

POST /ddm/profile

Body

server, action, name, url

POST /ddm/domains/update

Body

server, domain_id, action, name

POST /ddm/enrollment

Body

server, device_id, action, domain_id

Shure wireless

GET /shure/devices

GET /shure/devices/{device}

POST /shure/set

Body

device, channel, setting, value, slot

Daemon

GET /api

POST /clear-configuration

Body

device, mode, reboot

POST /device-lock-key

POST /diagnostics/policy

Body

device, clock_variation_warnings, history

POST /diagnostics/reset

Body

device, history

GET /diagnostics/{device}

Query

clock

receiver_history

history

GET /event-journal

Query

device

kind

severity

limit

since

before_sequence

DELETE /event-journal

POST /event-journal/operations

POST /factory-reset

Body

device

GET /issues

Query

device

kind

severity

limit

state

cursor

GET /server-info

GET /settings

POST /settings/monitoring

Body

port

POST /settings/network

Body

interfaces

POST /shutdown

Loopback only.

POST /device-controls

Body

device, action, category, requested, confirm_clear

GET /host-audio

Query

host

POST /host-audio/jack/connect

Body

source, destination

POST /host-audio/jack/disconnect

Body

source, destination

POST /host-audio/pulse/volume

Body

target, volume_percent, volume_db

POST /host-audio/pulse/mute

Body

target, mute

POST /host-audio/pulse/default

Body

target

POST /host-audio/pulse/move

Body

stream, destination

POST /host-audio/cards

Body

card, device

POST /host-audio/meter

POST /host-audio/history

POST /host-audio/recordings

POST /host-audio/trace

GET /host-audio/trace

Query

point

direction

levels

seconds

POST /host-audio/levels

Generated from the source of netaudio 0.6.1 on PyPI. Report a missing or wrong route as a GitHub issue.

NetAudio is unofficial and is not affiliated with or endorsed by Audinate.