---
search:
  tags:
    - Automations
    - POST
seo:
  description: >-
    Local runs authenticate with the run token (or an API key plus… Reference
    for the POST /api/agent/runs/{id}/fail endpoint in the BrainyShorts API.
sidebar:
  label: Fail a run
  badge: POST
title: Fail a run
type: openapi-operation
---
Local runs authenticate with the run token (or an API key plus `executor_id`). Claimed queue runs send `claim_token`.

`POST /api/agent/runs/{id}/fail`
