---
title: "Export elements and links to gst-launch-1.0 syntax."
method: POST
path: "/api/gst-launch/export"
tags: ["gst-launch"]
---

# Export elements and links to gst-launch-1.0 syntax.

`POST /api/gst-launch/export`

## Request body

- ExportGstLaunchRequest — Request to convert flow elements/links to gst-launch-1.0 syntax.
  - `elements` Element[], required — Elements to export
    - `element_type` string, required — GStreamer element type (e.g., "videotestsrc", "x264enc", "filesink")
    - `id` string, required
    - `pad_properties` object — Pad properties (pad_name -> property_name -> value)
    - `position` number[], required — Display position in the visual editor (x, y)
    - `properties` object — Element properties as key-value pairs
  - `links` Link[], required — Links between elements
    - `from` string, required — Source element and pad (format: "element_id" or "element_id:pad_name")
    - `to` string, required — Destination element and pad (format: "element_id" or "element_id:pad_name")

## Response `200`

Pipeline exported successfully

- ExportGstLaunchResponse — Response containing the gst-launch-1.0 pipeline string.
  - `pipeline` string, required — The generated gst-launch-1.0 pipeline string

## Other responses

- `400` — Cannot export pipeline

---

[API](https://skmtc.dev/eyevinn/apis/strom-api.md) · [All operations](https://skmtc.dev/eyevinn/apis/strom-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/eyevinn/strom-api/revisions/0df7ca64263f/schema)
