StreamPEG API Docs
    StreamPEG API Docs
    • Get Current Balance
      GET
    • Files
      GET
    • Tasks
      GET
    • Storage Stats
      GET
    • Change Task State
      POST
    • Create Task
      POST
    • Remove File
      POST
    • Remove Task
      POST
    • Upload File
      POST

      Create Task

      POST
      /api/createTask
      Creates a new task

      Request

      Header Params

      Body Params application/json

      Example
      {
          "name": "string",
          "schedule": 0,
          "shuffle": true,
          "infiniteLoop": true,
          "files": [
              "string"
          ],
          "streamKey": "string",
          "streamUrl": "string",
          "repeat": 0
      }

      Request Code Samples

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST 'https://streampeg.com/api/createTask' \
      --header 'X-Auth-Token;' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "name": "string",
          "schedule": 0,
          "shuffle": true,
          "infiniteLoop": true,
          "files": [
              "string"
          ],
          "streamKey": "string",
          "streamUrl": "string",
          "repeat": 0
      }'

      Responses

      🟢200Success
      application/json
      Body

      Example
      {
          "error": true,
          "msg": "string"
      }
      Modified at 2024-08-06 15:02:45
      Previous
      Change Task State
      Next
      Remove File
      Built with