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

# Stop a coding agent run

> Stop a run that is still working. Any branch it already pushed stays.



## OpenAPI

````yaml openapi-v2.json post /coding-agent/runs/{id}/stop
openapi: 3.0.3
info:
  title: Productlane API
  description: Productlane API v2.
  version: 2.0.0
servers:
  - url: https://productlane.com/api/v2
security: []
paths:
  /coding-agent/runs/{id}/stop:
    post:
      tags:
        - coding agent
      summary: Stop a coding agent run
      description: Stop a run that is still working. Any branch it already pushed stays.
      operationId: integrations-stopCodingAgentRun
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  status:
                    type: string
                    description: PENDING, RUNNING, COMPLETED, FAILED, or STOPPED.
                  status_changed_at:
                    type: string
                  issue_id:
                    type: string
                    nullable: true
                  repository:
                    type: string
                  branch_name:
                    type: string
                    nullable: true
                  pr_url:
                    type: string
                    nullable: true
                  summary:
                    type: string
                    nullable: true
                  error_message:
                    type: string
                    nullable: true
                  trigger_source:
                    type: string
                  provider:
                    type: string
                  created_at:
                    type: string
                  updated_at:
                    type: string
                required:
                  - id
                  - status
                  - status_changed_at
                  - issue_id
                  - repository
                  - branch_name
                  - pr_url
                  - summary
                  - error_message
                  - trigger_source
                  - provider
                  - created_at
                  - updated_at
                additionalProperties: false
        default:
          $ref: '#/components/responses/error'
      security:
        - Authorization: []
components:
  responses:
    error:
      description: Error response
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
              code:
                type: string
              issues:
                type: array
                items:
                  type: object
                  properties:
                    message:
                      type: string
                  required:
                    - message
                  additionalProperties: false
            required:
              - message
              - code
            additionalProperties: false
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.