> ## Documentation Index
> Fetch the complete documentation index at: https://docs.akua.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Report machine bootstrap

Guest-only bootstrap progress. Authenticate with the per-Machine bootstrap bearer from user data, not a session. Authority expires after one hour or the first joined/failed report. Send only a safe step description, never environment, tokens or command output. Messages are truncated and unrecognized descriptions omitted.

`POST https://api.akua.dev/v1/machines/{id}:reportBootstrap`

## Authorizations

- `Authorization: Bearer <token>` (MachineBootstrapBearer)

## Path Parameters

- `id` (string, required): Required string length: `3 - 54`.

## Body

Required.

`application/json`: `MachineBootstrapReport`

- `stage` (enum<string>, required): Available options: `"started"`, `"hostname-set"`, `"k0s-downloaded"`, `"provider-configured"`, `"k0s-installed"`, `"worker-started"`, `"joined"`, `"failed"`.
- `exit_code` (integer): Required range: `0 <= x <= 255`.
- `message` (string): Optional secret-free step: hostname, download-k0s, configure-provider-id, download-image-credential-provider, verify-image-credential-provider, install-worker, or start-worker. A provider download that kept failing may add its last curl result as `download-image-credential-provider: curl exit <code>, HTTP <status>`. Other text is omitted rather than exposed as guest output. Retained descriptions are bounded to 2 KiB. Maximum string length: `8192`.

## Response

### 200: <No Content>

### 400: The request is malformed.

`application/json`: `ApiBadRequest`

- `_tag` (enum<string>, required): Available options: `"Validation"`.
- `success` (enum<boolean>, required): Available options: `false`.
- `errors` (object[], required): Minimum array length: `1 element`.
  - `code` (integer, required): Machine-readable error code. Required range: `-9007199254740991 <= x <= 9007199254740991`. Example: `7002`.
  - `message` (string, required): Human-readable error message. Example: `"Resource not found"`.
  - `path` (string[]): Field path that caused the error, when applicable. Example: `["body","name"]`.
  - `metadata` (record<string, string>)
- `result` (object, required)

### 401: Missing, invalid or expired credential.

`application/json`: `ApiUnauthorized`

- `_tag` (enum<string>, required): Available options: `"Unauthorized"`.
- `success` (enum<boolean>, required): Available options: `false`.
- `errors` (object[], required): Minimum array length: `1 element`.
  - `code` (integer, required): Machine-readable error code. Required range: `-9007199254740991 <= x <= 9007199254740991`. Example: `7002`.
  - `message` (string, required): Human-readable error message. Example: `"Resource not found"`.
  - `path` (string[]): Field path that caused the error, when applicable. Example: `["body","name"]`.
  - `metadata` (record<string, string>)
- `result` (object, required)

## Example request

```bash
curl --request POST \
  --url 'https://api.akua.dev/v1/machines/mch_j572abc123def456:reportBootstrap' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "stage": "started",
    "exit_code": 123,
    "message": "<string>"
  }'
```
