# List Launchable Pipeline Templates

`GET /v1/pipelines/templates`

Templates the caller can launch, each with its launch-form contract.

- Base URL: `https://api.qualia.dev`
- Authentication: an API key in the `X-API-Key` header, or `Authorization: Bearer …`

## Responses

- `200` Successful Response: `application/json` `array of LaunchableTemplate`
- `401` Invalid or missing API key: `application/json` `ErrorResponse`
- `403` Missing capability on the workspace: `application/json` `ErrorResponse`

## Schemas

```yaml
LaunchableTemplate:
  properties:
    pipeline_template_id:
      type: string
      format: uuid
    audience:
      type: string
      enum:
        - internal
        - public
      default: internal
    workspace_id:
      format: uuid
      type:
        - string
        - "null"
    name:
      type: string
    description:
      type:
        - string
        - "null"
    launch_fields:
      items:
        $ref: "#/components/schemas/LaunchField"
      type: array
    launchable:
      type: boolean
      description: "False where a launch is refused here: a workspace's template is billed per run, and a deployment that does not bill per run starts none"
      default: true
    launch_refusal:
      description: Why it does not launch here, when it does not
      nullable: true
      allOf:
        - $ref: "#/components/schemas/LaunchRefusal"
  type: object
  required:
    - pipeline_template_id
    - name
    - launch_fields
  title: LaunchableTemplate
LaunchField:
  properties:
    name:
      type: string
    type_name:
      type: string
    schema:
      additionalProperties: true
      type: object
    required:
      type: boolean
    default:
      nullable: true
    resolve:
      nullable: true
      additionalProperties: true
      type: object
    ui:
      additionalProperties: true
      type: object
  type: object
  required:
    - name
    - type_name
    - required
  title: LaunchField
  description: |-
    One launch-form field of a template: an exposed port with its JSON
    schema, derived required-ness, and display metadata.
LaunchRefusal:
  properties:
    code:
      type: string
      description: e.g. run_billing_required
    message:
      type: string
  type: object
  required:
    - code
    - message
  title: LaunchRefusal
  description: |-
    Why no run of a template starts in this deployment: what a launch
    would be refused with (422).
ErrorResponse:
  properties:
    detail:
      type: string
      description: Error message describing what went wrong
  type: object
  required:
    - detail
  title: ErrorResponse
  description: Standard error response.
```
