Skip to content

Quick Start

This guide converts a first video end to end with the Media Conversion API. Pick a pack. Create a converter. Connect a storage. Launch the conversion. Follow its run.

Every step below uses curl. The Manager provides the same calls.

Prerequisites

  • A Public Cloud project.
  • An OAuth token with the media_conversion:api scope. See Authentication.
  • Your project id (visible in the Manager URL).
  • The video file must sit in a storage the service reads. An Object Storage (S3) bucket works.

Set your environment

export MC_TOKEN="<your-oauth-token>"        # OAuth token (media_conversion:api)
export MC_PROJECT="<project-id>"            # your project id

The examples below write the base URL in full: https://api.infomaniak.com/1/public_clouds/media_conversion (1 is the API version).


1. Pick a pack

A converter uses a pack for billing. The catalog is public:

curl -s "https://api.infomaniak.com/1/public_clouds/media_conversion/packs"
{
  "result": "success",
  "data": [
    {
      "id": "3a2d2a9b-2b18-4c66-8e2b-3f5f5715d9f8",
      "name": "basic",
      "description": "Media Converter Basic",
      "price": 0.00025,
      "meta": { "features": [ ... ] }
    },
    {
      "id": "c8b6d6b5-4d58-4b07-9a0f-bb78e97c0d63",
      "name": "pro",
      "description": "Media Converter Pro",
      "price": 0.00055,
      "meta": { "features": [ ... ] }
    }
  ],
  "total": 2,
  "pages": 1,
  "items_per_page": 15,
  "page": 1
}

Each pack gates the allowed conversion settings (codecs, resolution, fps, overlays...). It sets the price. See Billing & Consumption. Copy the pack id of your choice.


2. Create a converter

The converter is the top-level resource. It owns the storages, output groups, workflows and callbacks.

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-first-converter",
    "pack": "3a2d2a9b-2b18-4c66-8e2b-3f5f5715d9f8"
  }'
{
  "result": "success",
  "data": {
    "id": "7b2e8a1c-9f4d-4c3a-b1e2-0d5f6a7b8c9d",
    "name": "my-first-converter",
    "pack": { "id": "3a2d2a9b-2b18-4c66-8e2b-3f5f5715d9f8", "name": "basic" },
    "project": { "id": 123, "name": "my-project" },
    "pcloud": { "id": 2, "name": "MediaConverter" },
    "outputGroups": [],
    "storages": [],
    "metadata": []
  }
}

Copy the converter id.


3. Connect a storage

A storage tells the service where to read your input and write the result. Connect an S3 bucket:

curl -s -X POST "https://api.infomaniak.com/1/public_clouds/media_conversion/converters/<converter-id>/storages" \
  -H "Authorization: Bearer $MC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "my-bucket",
    "type": "s3",
    "settings": {
      "url": "s3.gva2.infomaniak.cloud",
      "region": "<region>",
      "access_key": "<your-access-key>",
      "secret_key": "<your-secret-key>",
      "bucket": "my-bucket"
    }
  }'
{
  "result": "success",
  "data": {
    "id": "e1f2a3b4-5d6c-7e89-a0b1-2c3d4e5f6a7b",
    "type": "s3",
    "name": "my-bucket",
    "managed": true,
    "settings": { ... }
  }
}

Copy the storage id.

Test the connection before you use it:

curl -s -X POST "https://api.infomaniak.com/1/public_clouds/media_conversion/storages/<storage-id>/test" \
  -H "Authorization: Bearer $MC_TOKEN"
{
  "result": "success",
  "data": true
}

The service supports other storage types (s3, swift, ftp, sftp, kdrive, vod). See Storages.


4. Launch the conversion

Launching a conversion creates a workflow. The paths in the payload resolve against the converter's storages. The s3://my-bucket/... path below uses the my-bucket storage from step 3.

curl -s -X POST "https://api.infomaniak.com/1/public_clouds/media_conversion/converters/<converter-id>/workflows" \
  -H "Authorization: Bearer $MC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "media-conversion",
    "settings": {
      "inputs": [
        { "fileInput": "s3://my-bucket/videos/source.mov" }
      ],
      "outputGroups": [
        {
          "name": "mp4",
          "settings": { "destination": "s3://my-bucket/converted/" },
          "outputs": [
            { "extension": "mp4" }
          ]
        }
      ]
    }
  }'
{
  "result": "success",
  "data": {
    "workflow_id": "my-first-converter.01JABCDEF",
    "run_id": "01JABCDEF0123456789ABCDEFGH"
  }
}

Payload size limit

The launch request carries the whole job settings. The API rejects any body larger than 2 MiB with HTTP 413. The 413 error lists the fields that contribute the most. Reference files by their path in a storage instead of inlining content.

The service validates the settings against your converter's pack. A basic pack encodes up to 1080p, 60 fps and 8-bit H.264. It refuses anything richer with an explicit error. Output Groups describes richer renditions (codecs, bitrate, fps, captions, HLS ladders).


5. Follow the run

A run is one execution attempt of the workflow. Poll it by run id:

curl -s "https://api.infomaniak.com/1/public_clouds/media_conversion/runs/<run-id>" \
  -H "Authorization: Bearer $MC_TOKEN"
{
  "result": "success",
  "data": {
    "workflow_id": "my-first-converter.01JABCDEF",
    "run_id": "01JABCDEF0123456789ABCDEFGH",
    "name": "media-conversion",
    "status": "in_progress",
    "started_at": "2026-11-20T10:30:00Z",
    "finished_at": null,
    "activities": [ ... ]
  }
}

The status moves to completed when the output files land in the destination storage. It moves to failed with a failure_message.

Receive a webhook on workflow events instead of polling. See Callbacks.


Quick Summary

  1. Endpoint: https://api.infomaniak.com/1/public_clouds/media_conversion (1 is the API version)
  2. Auth: Authorization: Bearer <token> with media_conversion:* scopes
  3. Flow: GET /1/public_clouds/media_conversion/packs → POST .../projects/{project}/converters → POST .../converters/{id}/storages → POST .../converters/{id}/workflows → GET .../runs/{run}
  4. Billing: per pack, metered by conversion duration. See Billing & Consumption