---
title: "Record machine failure"
method: POST
path: "/daemon/failures"
tags: ["Machine Daemon"]
---

# Record machine failure

`POST /daemon/failures`

## Request

- Base URL: `https://api.omnara.com/v1`
- URL: `https://api.omnara.com/v1/daemon/failures`
- Auth: HTTP bearer

## Query parameters

- `stage` 'startup_script' | 'daemon_install' | 'daemon_update' | 'daemon_runtime' | 'daemon_uninstall' | 'daemon_uninstalled', required
- `exit_status` integer
- `capture_status` integer
- `daemon_version` string
- `target_version` string

## Request body `text/plain`

- string

## Response `204`

Machine failure recorded.

## Other responses

- `400`: The request was invalid.
- `401`: Authentication is required or invalid.
- `403`: The authenticated principal is not authorized.
- `4XX`: Any other client error. The body carries the shared Error envelope restricted to client error codes; statuses with a dedicated response above are documented precisely.
- `5XX`: Any other server error. The body carries the shared Error envelope restricted to server error codes.

## Changes

- **2026-10-05** `3d9e2cf46e07`: 90 info
  - added the optional property `current_digest` to the response with the `400` status
  - added the optional property `current_digest` to the response with the `401` status
  - added the optional property `current_digest` to the response with the `403` status
  - removed the `authentication_unavailable` enum value from the `code` response property for the response status `400`
  - …86 more
  - …this revision’s changelog is incomplete
- **2026-09-28** `acddeb8fc6a5`: 4 warning, 4 info
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `400`
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `401`
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `403`
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `4XX`
  - …4 more
- **2026-09-17** `eab8138e750d`: 1 info
  - added the new enum value `daemon_runtime` to the `query` request parameter `stage`
- **2026-09-01** `e4978b047d7a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/omnara/apis/omnara-api-2/changes/daemon/failures/post.md)

---

[API](https://skmtc.dev/omnara/apis/omnara-api-2.md) - [All operations](https://skmtc.dev/omnara/apis/omnara-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/omnara/apis/omnara-api-2/revisions/343aebb1dff1?raw)
