list url paths.md

List URL paths

Media API · Streaming Locators

POST https://app.mk.io/api/v1/projects/{project_name}/media/streamingLocators/{locator_name}/listPaths

ListPaths returns the set of valid streaming paths for a given Streaming Locator. A distinct set of paths is returned for each type of DRM configured, per the 'EnabledProtocols' property of the streaming policy.

RBAC Capability Required: ams.streaminglocator.create

Authentication

Path parameters

Name Type Required Description
project_name string Yes
locator_name string Yes

Request body

Content type: application/json

Example request

curl -X POST "https://app.mk.io/api/v1/projects/{project_name}/media/streamingLocators/{locator_name}/listPaths" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
  "urlStyle": "AMS"
}'

Responses

200 — Streaming locator paths returned.

Example:

{
  "downloadPaths": [
    "string"
  ],
  "drm": {
    "key": {
      "certificateUrl": "string",
      "licenseAcquisitionUrl": "string"
    }
  },
  "streamingPaths": [
    {
      "encryptionScheme": "NoEncryption",
      "paths": [
        "string"
      ],
      "streamingProtocol": "Hls"
    }
  ]
}

400 — Bad Request

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

401 — Unauthorized

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

403 — Forbidden

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

404 — Not Found

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

429 — Too Many Requests

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

500 — Internal Server Error

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}