> ## 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.

# Start a coding agent run

> Hand an issue to the coding agent, which writes code and opens a pull request. Requires Cursor Cloud connected with a repository.



## OpenAPI

````yaml openapi-v2.json post /coding-agent/runs
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:
    post:
      tags:
        - coding agent
      summary: Start a coding agent run
      description: >-
        Hand an issue to the coding agent, which writes code and opens a pull
        request. Requires Cursor Cloud connected with a repository.
      operationId: integrations-triggerCodingAgentRun
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                issue_id:
                  type: string
                  description: Productlane issue id to hand to the agent.
              required:
                - issue_id
              additionalProperties: false
      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.