etlmcp publishes a machine-readable description of its REST API at https://app.etlmcp.com/api/v1/openapi.json. You can fetch it without a credential, feed it to an OpenAPI code generator such as OpenAPI Generator and get a typed client for every v1 operation. Within v1 the contract only grows: fields are added, never removed or given a new type, so a client you generate today keeps working as long as it ignores fields it does not know.
Where the document is and how it is built
The app serves the document at /api/v1/openapi.json, and the route asks for no API key. The response carries a public Cache-Control header, so a proxy or your build tool may reuse a recent copy for a few minutes instead of asking again. The document is written in OpenAPI 3.1 and names the app as its server, so each path in it, such as /api/v1/runs, resolves to https://app.etlmcp.com/api/v1/….
etlmcp builds it from the API's own routes and response models, so the paths, parameters and field types in it are the ones the server checks. A test fails when the committed copy of the document no longer matches what the routes produce, so every change to the contract shows up as a diff.
What the document declares
Every operation declares three things, which a generator turns into types and method signatures:
- Authentication. One security scheme,
bearerAuth, applies to every operation. You sendAuthorization: Bearer <credential>, where the credential is an API key, which startsetk_, or an OAuth access token, which startseto_. See API keys for creating one. - Scopes. Each operation carries an
x-etlmcp-scopesextension that names the scope it needs. Every operation needsread, except Start a run, which needsrun. A generator ignores the extension, but you can read it to check that a key has the scope a call will need before you make it. - Errors. Every operation lists the same error responses, and each one returns the
Errorschema, a JSON object with a singleerrorstring:
| Status | When etlmcp returns it |
|---|---|
| 400 | The request is invalid: a bad date, range, field or limit. |
| 401 | The credential is missing, unknown, revoked or expired. |
| 403 | The credential lacks the scope the operation needs. |
| 404 | The object is not in the credential's workspace. |
| 409 | A run is already queued or running for the pipeline, or the plan does not allow it. |
| 429 | The credential is over 120 requests a minute, REST and MCP counted together; read the Retry-After header. |
The framework's own 422 validation response is taken out of the document. When a request fails validation, etlmcp answers 400 with the same error object, and the message usually names the field that failed.
Generating a client
OpenAPI Generator can read the document straight from its URL: its input spec option takes either a URL or a local file, and python and typescript-fetch are two of its client generators:
openapi-generator-cli generate \
-i https://app.etlmcp.com/api/v1/openapi.json \
-g python \
-o etlmcp-client
Swap -g python for -g typescript-fetch to get a TypeScript client. Pass your key from an environment variable such as $ETLMCP_API_KEY when you configure the client, never in the generated code. Every operation has a fixed operationId, such as startRun or queryData, so the method names in your client stay the same when you generate it again.
If you would rather pin the contract, download the document once, commit it next to your code and generate from that file. Regenerate when you want new fields.
What can change within v1
The document's version is 1, and the rule for v1 is that changes are additive only. A response field may be added. A field is never removed, and its type never changes.
So that additions never break you:
- Ignore unknown fields in responses. Configure your generated client, or write your own parser, so that a field it does not know is skipped rather than treated as an error.
- Send only the fields the document lists. The request body of Start a run refuses fields it does not know, and the call fails with 400.
- Treat the documented values as the set you know today. Read the field descriptions on each operation page, such as Query stored data, rather than relying on a value list you copied once.
The operation pages under the API reference are generated from this same document, so they say what the document says.