Skip to content

Converters

A converter is the top-level resource of the Media Conversion service. It belongs to a project. It uses a pack for billing. It owns the storages, output groups, workflows and callbacks used to convert media.

Endpoints

Method Path Description Scope
GET /projects/{project}/converters List paginated converters of a project converters:read
POST /projects/{project}/converters Create a converter converters:write
GET /converters/{converter} Get a converter converters:read
PUT/PATCH /converters/{converter} Update a converter converters:write
DELETE /converters/{converter} Delete a converter converters:write
DELETE /projects/{project}/converters Delete several converters at once converters:write

Alternative listings, without a project in the path:

Method Path Description
GET /accounts/{account}/converters List converters of an account
GET /{publicCloud}/converters List converters of a Public Cloud

Creating a converter

A converter carries a name and the pack it uses for billing. The example uses environment variables from the Quick Start:

curl -s -X POST "https://api.infomaniak.com/1/public_clouds/media_conversion/projects/$MC_PROJECT/converters" \
  -H "Authorization: Bearer $MC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "my-converter",
    "pack": "3a2d2a9b-2b18-4c66-8e2b-3f5f5715d9f8"
  }'
{
  "result": "success",
  "data": {
    "id": "7b2e8a1c-9f4d-4c3a-b1e2-0d5f6a7b8c9d",
    "name": "my-converter",
    "pack": { "id": "3a2d2a9b-2b18-4c66-8e2b-3f5f5715d9f8", "name": "basic" },
    "project": { "id": 123, "name": "my-project" },
    "pcloud": { "id": 2, "name": "MediaConverter" },
    "outputGroups": [],
    "storages": [],
    "metadata": []
  }
}

The pack, project and pcloud fields are embedded references ({id, name}). outputGroups and storages list the converter's current resources as excerpts.

The pack gates the conversion settings the converter accepts. It sets the price. See Billing & Consumption. Change it later with PUT/PATCH.

Updating and deleting

curl -s -X PATCH "https://api.infomaniak.com/1/public_clouds/media_conversion/converters/<converter-id>" \
  -H "Authorization: Bearer $MC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "name": "renamed-converter" }'

Delete several converters at once with the bulk endpoint:

curl -s -X DELETE "https://api.infomaniak.com/1/public_clouds/media_conversion/projects/$MC_PROJECT/converters" \
  -H "Authorization: Bearer $MC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "atomic": true,
    "items": ["<converter-uuid-1>", "<converter-uuid-2>"]
  }'

On success the endpoint answers 204 No Content. With "atomic": true, a failing deletion rolls back the whole batch. The API returns an error instead.