---
title: "Enroll a customer-side installer run"
method: POST
path: "/v1/managed-deployments/{deploymentId}/runs/{runId}/enroll"
tags: ["Managed deployments"]
---

# Enroll a customer-side installer run

`POST /v1/managed-deployments/{deploymentId}/runs/{runId}/enroll`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/managed-deployments/{deploymentId}/runs/{runId}/enroll`
- Auth: none required

Called by the installer in the customer's cloud. Verifies its signed cloud identity and run challenge, then issues a single-use run token.

## Path parameters

- `deploymentId` string, uuid, required
- `runId` string, uuid, required

## Request body

- union
  - object
    - `headers` object, required
      - `authorization` string, required
      - `x-amz-date` string, required
      - `x-amz-security-token` string, required
      - `x-openwork-proof` string, required
  - object
    - `provider` 'gcp', required
    - `idToken` string, required

## Response `200`

Enroll a customer-side installer run

- object
  - `token` string, required
  - `expiresAt` string, date-time, required

## Other responses

- `400`: Invalid input.
- `401`: Authentication required.
- `403`: Owner or super-admin approval required.
- `404`: Deployment or feature unavailable.
- `409`: The deployment cannot accept this operation now.
- `429`: Too many attempts.
- `503`: No installer release is configured.

## Changes

- **2026-10-23** `c93387179b31`: 1 info
  - the `expiresAt` response's property pattern was changed from `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` to `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$` for the status `200`
- **2026-10-14** `0005cd4e85a8`: 1 breaking, 1 warning, 1 info
  - the request's body type changed from `object` to no type
  - removed the request property `headers`
  - added `subschema #1, subschema #2` to the request body `anyOf` list
- **2026-10-09** `cc8a41bb846e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/managed-deployments/:deploymentId/runs/:runId/enroll/post.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
