{
  "components": {
    "schemas": {
      "DataResult": {
        "properties": {
          "rows": {
            "description": "Stored rows as pulled from the network, before transform rules.",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Rows",
            "type": "array"
          },
          "total": {
            "description": "Number of rows returned.",
            "title": "Total",
            "type": "integer"
          },
          "truncated": {
            "description": "True when more rows matched than `limit`.",
            "title": "Truncated",
            "type": "boolean"
          }
        },
        "required": [
          "rows",
          "total",
          "truncated"
        ],
        "title": "DataResult",
        "type": "object"
      },
      "Destination": {
        "properties": {
          "config": {
            "additionalProperties": true,
            "description": "Non-secret settings only. Passwords, headers and keys are never returned; a webhook URL is reduced to its scheme and host.",
            "title": "Config",
            "type": "object"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "enabled": {
            "title": "Enabled",
            "type": "boolean"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "type": {
            "description": "Destination type key, e.g. `csv`, `postgres`, `http`.",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "type",
          "name",
          "enabled",
          "config",
          "created_at"
        ],
        "title": "Destination",
        "type": "object"
      },
      "Error": {
        "properties": {
          "error": {
            "description": "What went wrong, in one sentence.",
            "title": "Error",
            "type": "string"
          }
        },
        "required": [
          "error"
        ],
        "title": "Error",
        "type": "object"
      },
      "Network": {
        "properties": {
          "available": {
            "description": "Whether it can be connected today.",
            "title": "Available",
            "type": "boolean"
          },
          "key": {
            "description": "Network key used in `source.network` and data filters.",
            "title": "Key",
            "type": "string"
          },
          "kind": {
            "description": "`ad platform`, `data source` or `demo source`.",
            "title": "Kind",
            "type": "string"
          },
          "label": {
            "title": "Label",
            "type": "string"
          }
        },
        "required": [
          "key",
          "label",
          "kind",
          "available"
        ],
        "title": "Network",
        "type": "object"
      },
      "Pipeline": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "destination_id": {
            "title": "Destination Id",
            "type": "string"
          },
          "enabled": {
            "title": "Enabled",
            "type": "boolean"
          },
          "hour": {
            "description": "Hour of the daily run, 0-23, in `timezone`.",
            "title": "Hour",
            "type": "integer"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "last_run_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Run At"
          },
          "last_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Status"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "paused_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Set when the pipeline is paused by its plan's limits.",
            "title": "Paused Reason"
          },
          "source_id": {
            "title": "Source Id",
            "type": "string"
          },
          "timezone": {
            "title": "Timezone",
            "type": "string"
          },
          "transform": {
            "description": "The pipeline's transform rules.",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Transform",
            "type": "array"
          }
        },
        "required": [
          "id",
          "name",
          "source_id",
          "destination_id",
          "transform",
          "hour",
          "timezone",
          "enabled",
          "last_run_at",
          "last_status",
          "created_at"
        ],
        "title": "Pipeline",
        "type": "object"
      },
      "Run": {
        "properties": {
          "attempts": {
            "title": "Attempts",
            "type": "integer"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          },
          "finished_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Finished At"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "pipeline_id": {
            "title": "Pipeline Id",
            "type": "string"
          },
          "queued_at": {
            "format": "date-time",
            "title": "Queued At",
            "type": "string"
          },
          "range_end": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Range End"
          },
          "range_start": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Range Start"
          },
          "rows_in": {
            "title": "Rows In",
            "type": "integer"
          },
          "rows_out": {
            "title": "Rows Out",
            "type": "integer"
          },
          "started_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "status": {
            "enum": [
              "queued",
              "running",
              "success",
              "partial",
              "failed"
            ],
            "title": "Status",
            "type": "string"
          },
          "trigger": {
            "enum": [
              "schedule",
              "manual"
            ],
            "title": "Trigger",
            "type": "string"
          }
        },
        "required": [
          "id",
          "pipeline_id",
          "trigger",
          "status",
          "range_start",
          "range_end",
          "attempts",
          "rows_in",
          "rows_out",
          "error",
          "queued_at",
          "started_at",
          "finished_at"
        ],
        "title": "Run",
        "type": "object"
      },
      "RunCreate": {
        "additionalProperties": false,
        "properties": {
          "end": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Last day, YYYY-MM-DD.",
            "title": "End"
          },
          "start": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "First day, YYYY-MM-DD.",
            "title": "Start"
          }
        },
        "title": "RunCreate",
        "type": "object"
      },
      "Source": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "enabled": {
            "title": "Enabled",
            "type": "boolean"
          },
          "external_id": {
            "description": "The account id on the network.",
            "title": "External Id",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "network": {
            "title": "Network",
            "type": "string"
          },
          "state": {
            "description": "`ok`, `needs_reconnect`, `invalid` or `disabled`.",
            "title": "State",
            "type": "string"
          }
        },
        "required": [
          "id",
          "network",
          "external_id",
          "name",
          "enabled",
          "state",
          "created_at"
        ],
        "title": "Source",
        "type": "object"
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "description": "An API key (etk_...) or an OAuth access token (eto_...).",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "Read a workspace's sources, destinations, pipelines, runs and stored data, and start runs. Send `Authorization: Bearer <key>` with an API key created on the API page of the app (or an OAuth access token). Keys carry the `read` scope and optionally `run`. Every credential may make 120 requests a minute. Errors are JSON `{\"error\": \"...\"}`. Within v1, changes are additive only.",
    "title": "etlmcp API",
    "version": "1"
  },
  "openapi": "3.1.0",
  "paths": {
    "/api/v1/data": {
      "get": {
        "description": "The workspace's stored daily rows as pulled from each network, before any\npipeline's transform rules. Dates are in the account's own timezone.",
        "operationId": "queryData",
        "parameters": [
          {
            "description": "YYYY-MM-DD",
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 10,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "YYYY-MM-DD",
              "title": "Start"
            }
          },
          {
            "description": "YYYY-MM-DD",
            "in": "query",
            "name": "end",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 10,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "YYYY-MM-DD",
              "title": "End"
            }
          },
          {
            "in": "query",
            "name": "network",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 100,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Network"
            }
          },
          {
            "in": "query",
            "name": "source_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 100,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Source Id"
            }
          },
          {
            "description": "Comma-separated field names",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 500,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Comma-separated field names",
              "title": "Fields"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 1000,
              "maximum": 10000,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataResult"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is invalid: a bad date, range, field or limit."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No credential, or one that is unknown, revoked or expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The credential lacks the scope this operation needs."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No such object in the credential's workspace."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A run is already queued or running for this pipeline, or the plan does not allow it."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Over the rate limit; see the Retry-After header."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Query stored data",
        "tags": [
          "Data"
        ],
        "x-etlmcp-scopes": [
          "read"
        ]
      }
    },
    "/api/v1/destinations": {
      "get": {
        "description": "The workspace's destinations with their non-secret settings.",
        "operationId": "listDestinations",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Destination"
                  },
                  "title": "Response Listdestinations",
                  "type": "array"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is invalid: a bad date, range, field or limit."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No credential, or one that is unknown, revoked or expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The credential lacks the scope this operation needs."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No such object in the credential's workspace."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A run is already queued or running for this pipeline, or the plan does not allow it."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Over the rate limit; see the Retry-After header."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List destinations",
        "tags": [
          "Destinations"
        ],
        "x-etlmcp-scopes": [
          "read"
        ]
      }
    },
    "/api/v1/networks": {
      "get": {
        "description": "Every network etlmcp knows, with whether it can be connected today.",
        "operationId": "listNetworks",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Network"
                  },
                  "title": "Response Listnetworks",
                  "type": "array"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is invalid: a bad date, range, field or limit."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No credential, or one that is unknown, revoked or expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The credential lacks the scope this operation needs."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No such object in the credential's workspace."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A run is already queued or running for this pipeline, or the plan does not allow it."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Over the rate limit; see the Retry-After header."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List networks",
        "tags": [
          "Networks"
        ],
        "x-etlmcp-scopes": [
          "read"
        ]
      }
    },
    "/api/v1/pipelines": {
      "get": {
        "description": "The workspace's pipelines: source, destination, rules, schedule and last status.",
        "operationId": "listPipelines",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Pipeline"
                  },
                  "title": "Response Listpipelines",
                  "type": "array"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is invalid: a bad date, range, field or limit."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No credential, or one that is unknown, revoked or expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The credential lacks the scope this operation needs."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No such object in the credential's workspace."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A run is already queued or running for this pipeline, or the plan does not allow it."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Over the rate limit; see the Retry-After header."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List pipelines",
        "tags": [
          "Pipelines"
        ],
        "x-etlmcp-scopes": [
          "read"
        ]
      }
    },
    "/api/v1/pipelines/{pipeline_id}": {
      "get": {
        "description": "One pipeline by id. Another workspace's id is 404, like a missing one.",
        "operationId": "getPipeline",
        "parameters": [
          {
            "in": "path",
            "name": "pipeline_id",
            "required": true,
            "schema": {
              "title": "Pipeline Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pipeline"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is invalid: a bad date, range, field or limit."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No credential, or one that is unknown, revoked or expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The credential lacks the scope this operation needs."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No such object in the credential's workspace."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A run is already queued or running for this pipeline, or the plan does not allow it."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Over the rate limit; see the Retry-After header."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a pipeline",
        "tags": [
          "Pipelines"
        ],
        "x-etlmcp-scopes": [
          "read"
        ]
      }
    },
    "/api/v1/pipelines/{pipeline_id}/runs": {
      "post": {
        "description": "Queue a sync of the pipeline. With no dates it re-pulls the same trailing window as the\nnightly run; with `start` and `end` it backfills that range (at most 366 days, within the\nplan's history). Needs the `run` scope. 409 while a run is already queued or running,\nor while the plan's limits pause the pipeline or leave no room for it.",
        "operationId": "startRun",
        "parameters": [
          {
            "in": "path",
            "name": "pipeline_id",
            "required": true,
            "schema": {
              "title": "Pipeline Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/RunCreate"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Body"
              }
            }
          }
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Run"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is invalid: a bad date, range, field or limit."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No credential, or one that is unknown, revoked or expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The credential lacks the scope this operation needs."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No such object in the credential's workspace."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A run is already queued or running for this pipeline, or the plan does not allow it."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Over the rate limit; see the Retry-After header."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Start a run",
        "tags": [
          "Runs"
        ],
        "x-etlmcp-scopes": [
          "run"
        ]
      }
    },
    "/api/v1/runs": {
      "get": {
        "description": "Recent runs, newest first, optionally for one pipeline.",
        "operationId": "listRuns",
        "parameters": [
          {
            "in": "query",
            "name": "pipeline_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 100,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Pipeline Id"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Run"
                  },
                  "title": "Response Listruns",
                  "type": "array"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is invalid: a bad date, range, field or limit."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No credential, or one that is unknown, revoked or expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The credential lacks the scope this operation needs."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No such object in the credential's workspace."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A run is already queued or running for this pipeline, or the plan does not allow it."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Over the rate limit; see the Retry-After header."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List runs",
        "tags": [
          "Runs"
        ],
        "x-etlmcp-scopes": [
          "read"
        ]
      }
    },
    "/api/v1/runs/{run_id}": {
      "get": {
        "description": "One run: status, rows in and out, and the error when it failed.",
        "operationId": "getRun",
        "parameters": [
          {
            "in": "path",
            "name": "run_id",
            "required": true,
            "schema": {
              "title": "Run Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Run"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is invalid: a bad date, range, field or limit."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No credential, or one that is unknown, revoked or expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The credential lacks the scope this operation needs."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No such object in the credential's workspace."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A run is already queued or running for this pipeline, or the plan does not allow it."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Over the rate limit; see the Retry-After header."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a run",
        "tags": [
          "Runs"
        ],
        "x-etlmcp-scopes": [
          "read"
        ]
      }
    },
    "/api/v1/sources": {
      "get": {
        "description": "The workspace's sources (one ad account each) with their state.",
        "operationId": "listSources",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Source"
                  },
                  "title": "Response Listsources",
                  "type": "array"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is invalid: a bad date, range, field or limit."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No credential, or one that is unknown, revoked or expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The credential lacks the scope this operation needs."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No such object in the credential's workspace."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A run is already queued or running for this pipeline, or the plan does not allow it."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Over the rate limit; see the Retry-After header."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List sources",
        "tags": [
          "Sources"
        ],
        "x-etlmcp-scopes": [
          "read"
        ]
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://app.etlmcp.com"
    }
  ]
}
