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

# Abort build



## OpenAPI

````yaml https://api.specular.dev/openapi.json post /branches/{id}/build/abort
openapi: 3.0.0
info:
  title: Specular API
  description: Backend-as-a-Service API for managing projects and branches
  version: 1.0.0
servers:
  - url: https://api.specular.dev
    description: Production server
  - url: http://localhost:3000
    description: Development server
security:
  - bearerAuth: []
paths:
  /branches/{id}/build/abort:
    post:
      tags:
        - Branches
      summary: Abort build
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
          description: Branch ID
      responses:
        '200':
          description: Build abort result
          content:
            application/json:
              schema:
                description: Build abort result
                type: object
                properties:
                  aborted:
                    type: boolean
                  message:
                    type: string
        '400':
          description: Bad request (no sandbox running)
          content:
            application/json:
              schema:
                description: Bad request (no sandbox running)
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                description: Authentication required
                type: object
                properties:
                  error:
                    type: string
        '404':
          description: Branch not found
          content:
            application/json:
              schema:
                description: Branch not found
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                description: Internal server error
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'Bearer authentication with API key (format: Bearer sk_xxx)'

````