get file access information.md

Get file access information

Media API · Assets

POST https://app.mk.io/api/v1/projects/{project_name}/media/assets/{asset_name}/getFileAccessInfo

This endpoint returns the information needed to access files within your asset.

The storage account containing the asset must be configured with a valid SAS token.

The response includes

Please see our online documentation for examples of how to use these.

RBAC Capability Required: ams.asset.create or ams.asset.update

Authentication

Path parameters

Name Type Required Description
project_name string Yes
asset_name string Yes

Example request

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

Responses

200 — Access Information

Example:

{
  "containerName": "string",
  "jwt": "string",
  "storageAccountName": "string",
  "subPath": "path/to/asset",
  "url": "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/assets/{asset_name}/getFileAccessInfo