---
title: "Report the Workers build controller's runtime detection before any user code runs (ADR 0076 D10)"
method: POST
path: "/internal/runner/jobs/{jobId}/workers-detection"
---

# Report the Workers build controller's runtime detection before any user code runs (ADR 0076 D10)

`POST /internal/runner/jobs/{jobId}/workers-detection`

## Request

- Base URL: `https://api.eurobase.dev`
- URL: `https://api.eurobase.dev/internal/runner/jobs/{jobId}/workers-detection`
- Auth: none declared

## Request body

- union
  - object
    - `record` object, required: eurobase-workers-detection-v2 record
    - `lock` string, required: Base64 of the exact toolchain lock bytes the record names
    - `devDependencies` string[], required
  - object
    - `refusal` 'app-source-detection-cap-exceeded', required

## Response `200`

decision build (with workersDetectionSha256), reroute (the deployment builds on Paketo in a new attempt) or refused (the build failed with its typed reason)

## Other responses

- `403`: The attempt is not this build's current one, or it was already settled
- `409`: This build does not report Workers detection, or the record conflicts with the accepted one
- `422`: Invalid report: schema, lock, adapter pin or devDependency names

---

[API](https://skmtc.dev/eurobase/apis/eurobase-api.md) · [All operations](https://skmtc.dev/eurobase/apis/eurobase-api/llms.txt) · [OpenAPI document](https://skmtc.dev/eurobase/apis/eurobase-api/revisions/5266a299d18a?raw)
