Skip to main content

REST API Reference

This API command reference lists and describes the available resources for the Haivision Media Gateway/SRT Gateway REST API. This is a list of API endpoints that can be used to create and manage stream routes on your HMG/HSG.

Note

  • Version 4.2 added additional endpoints for the new website UI workflow. These endpoints are labeled as ‘v2’ in their page titles.

  • The workflow used in previous Gateway versions is still available using the REST API. These endpoints are grouped under the Legacy tab below.

Login and Device

REST API Endpoint

Method

Use to…

/api/session

  • GET

  • POST

  • DELETE

/api/devices

  • GET

/api/devices/[Device ID]

  • GET

/api/tags

  • GET

Routes

REST API Endpoint

Method

Use to…

/api/routes

  • GET

  • POST

/api/routes/[Route ID]

  • GET

  • POST

  • DELETE

/api/routes/[Route ID]/actions

  • PUT

/api/system/preset

  • GET

  • POST

/api/routes/[Route ID]/thumbnail

  • GET

Sources

REST API Endpoint

Method

Use to…

/api/sources

  • GET

  • POST

/api/sources/[Source ID]

  • PUT

  • DELETE

Destinations

REST API Endpoint

Method

Use to…

/api/destinations

  • GET

  • POST

/api/destinations/[Destinations ID]

  • PUT

  • DELETE

/api/routes/[Route ID]/destinations/[Destinations ID]/actions

  • PUT

Statistics

REST API Endpoint

Method

Use to…

/api/statistics?routeID=[Route ID]

  • GET

/api/statistics/srt?routeID=[Route ID]

  • GET

/api/gateway/[Device ID]/statistics?routeID=[Route ID]&sourceID=[Source ID]

  • GET

/api/gateway/[Device ID]/statistics?routeID=[Route ID]&destinationID=[Destination ID]

  • GET

/api/gateway/[Device ID]/statistics/client?routeID=[Route ID]&destinationID=
[Destination ID]&clientAddress=[Client Address]&clientPort=[Client Port]

  • GET

Legacy

REST API Endpoint

Method

Use to…

/api/gateway/[Device ID]/routes

  • GET

/api/gateway/[Device ID]/routes/[Route ID]

  • GET

/api/gateway/[Device ID]/updates

  • POST

/api/gateway/[Device ID]/commands

  • POST

/api/gateway/[Device ID]/system/preset

  • GET

  • POST

/api/gateway/[Device ID]/statistics?routeID=[Route ID]

  • GET

/api/gateway/[Device ID]/statistics/srt?routeID=[Route ID]

  • GET

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.