---
title: "Get a pipeline's configuration"
method: GET
path: "/pipeline/{pipeline-id}/config"
tags: ["Pipeline"]
---

# Get a pipeline's configuration

`GET /pipeline/{pipeline-id}/config`

Returns a pipeline's configuration by ID.

## Path parameters

- `pipeline-id` string, uuid, required

## Response `200`

The configuration strings for the pipeline.

- object — The configuration strings for the pipeline.
  - `source` string, required — The source configuration for the pipeline, before any config compilation has been performed. If there is no config, then this field will be empty.
  - `compiled` string, required — The compiled configuration for the pipeline, after all orb expansion has been performed. If there were errors processing the pipeline's configuration, then this field may be empty.
  - `setup-config` string — The setup configuration for the pipeline used for Setup Workflows. If there were errors processing the pipeline's configuration or if setup workflows are not enabled, then this field should not exist
  - `compiled-setup-config` string — The compiled setup configuration for the pipeline, after all orb expansion has been performed. If there were errors processing the pipeline's setup workflows, then this field may be empty.

## Other responses

- `default` — Error response.

---

[API](https://skmtc.net/circleci/apis/api-v2.md) · [All operations](https://skmtc.net/circleci/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/circleci/api-v2/revisions/b9c0e0c24058/schema)
