API reference / Profiles

Profiles

Transcoding profiles served to the transcoder via the public, unauthenticated index.yml endpoint.

GET /api/v1/profiles/

List transcoding profiles (names for the picker, plus full items).

Response

Response 200 (application/json)
{
  "profiles": [
    "string"
  ],
  "items": [
    {
      "name": "string",
      "yaml": "string",
      "runnable": true,
      "createdAt": "string",
      "updatedAt": "string"
    }
  ]
}

POST /api/v1/profiles/

Create a transcoding profile from raw transcoder-format YAML.

Request

Request body (application/json)
{
  "name": "string",
  "yaml": "string"
}

Response

Response 201 (application/json)
{
  "name": "string",
  "yaml": "string",
  "runnable": true,
  "createdAt": "string",
  "updatedAt": "string"
}

POST /api/v1/profiles/bootstrap

Seed the profile store from the default transcoder test-profiles index. Pass `?force=true` to re-seed over existing profiles.

Parameters

NameInTypeRequired
forcequerybooleanoptional

Response

Response 200 (application/json)
{
  "seeded": 0,
  "skipped": true,
  "builtinSeeded": 0
}

GET /api/v1/profiles/index.yml

Public, unauthenticated profile index consumed by transcoder instances at transcode time.

Public Encore-format profile index (name -> :name/yaml). Served without auth. Response header x-profile-count carries the number of runnable profiles in the emitted index so monitoring consumers can distinguish an empty store (x-profile-count: 0, body {}) from a failure WITHOUT parsing the YAML body. The body and 200 status are unchanged by this header (issue #460).

Response

Response 200 (application/json)
"string"

GET /api/v1/profiles/stacks/{stack}/index.yml

Public Encore-format profile index for ONE stack (name -> :name/yaml), served without auth. Identical body/status/x-profile-count contract to GET /api/v1/profiles/index.yml, but resolved against the named stack's profile store so an Encore instance belonging to that stack reads the profiles created on it, whatever its position in the stack listing (issue #1164). Index entries are relative, so each per-profile fetch stays on this stack-scoped prefix.

Parameters

NameInTypeRequired
stackpathstringrequired

Response

Response 200 (application/json)
"string"

GET /api/v1/profiles/stacks/{stack}/{name}/yaml

One profile's raw YAML from the named stack's profile store, served without auth. Target of the relative entries in GET /api/v1/profiles/stacks/{stack}/index.yml (issue #1164).

Parameters

NameInTypeRequired
stackpathstringrequired
namepathstringrequired

Response

Response 200 (application/json)
"string"

GET /api/v1/profiles/{name}

Get a single profile.

Parameters

NameInTypeRequired
namepathstringrequired

Response

Response 200 (application/json)
{
  "name": "string",
  "yaml": "string",
  "runnable": true,
  "createdAt": "string",
  "updatedAt": "string"
}

PUT /api/v1/profiles/{name}

Replace a profile's YAML.

Parameters

NameInTypeRequired
namepathstringrequired

Request

Request body (application/json)
{
  "yaml": "string"
}

Response

Response 200 (application/json)
{
  "name": "string",
  "yaml": "string",
  "runnable": true,
  "createdAt": "string",
  "updatedAt": "string"
}

DELETE /api/v1/profiles/{name}

Delete a profile.

Parameters

NameInTypeRequired
namepathstringrequired

Response

Response 204 (application/json)
"null"

GET /api/v1/profiles/{name}/yaml

Get a profile's raw YAML body.

Parameters

NameInTypeRequired
namepathstringrequired

Response

Response 200 (application/json)
"string"