list content keys.md

List Content Keys

Media API · Streaming Locators

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

List Content Keys used by this Streaming Locator

RBAC Capability Required: ams.streaminglocator.create

Authentication

Path parameters

Name Type Required Description
project_name string Yes
locator_name string Yes

Example request

curl -X POST "https://app.mk.io/api/v1/projects/{project_name}/media/streamingLocators/{locator_name}/listContentKeys" \
  -H "Authorization: Bearer <token>"

Responses

200 — Content Keys used by this Streaming Locator.

Example:

{
  "contentKeys": [
    {
      "id": "string",
      "labelReferenceInStreamingPolicy": "string",
      "policyName": "string",
      "tracks": [
        {
          "trackSelections": [
            {
              "operation": {
                "Equal": "string",
                "Unknown": "string"
              },
              "property": "string",
              "value": "string"
            }
          ]
        }
      ],
      "type": "CommonEncryptionCenc",
      "value": "string"
    }
  ]
}

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
}

Source spec: media-api · operationId: [post]_/api/v1/projects/{project_name}/media/streamingLocators/{locator_name}/listContentKeys