Netlify Agent Runner API

The agentRunner API from Netlify — 6 operation(s) for agentrunner.

Operations 9

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /agent_runners List agent runs for a site · List agent runners #
Ask an LLM
“Which AI agent runs have been started on my site?”
“Can I filter agent runs by state or branch?”
Tell an agent
List agent runs for site {site} in account {account}.
Show agent runs on site {site} in account {account} that are in state {state}.
POST /agent_runners Start an AI agent run on a site · Create agent runner #
Ask an LLM
“How do I kick off an AI agent to make changes to my Netlify site?”
“Can I choose which agent and model runs the task?”
Tell an agent
Start an agent run on site {site} with the prompt {prompt}.
Run agent {agent} using model {model} on branch {branch} of site {site} with prompt {prompt}.
POST /agent_runners/upload_url Get an upload URL for an agent run file · Create agent runner upload url #
Ask an LLM
“Can I attach a file for an agent run to use?”
“Where do I upload images or files before starting an agent run?”
Tell an agent
Get an upload URL in account {account} for file {filename} of type {content_type}.
Create a signed upload link for {filename} ({content_type}) for agent runs in account {account}.
GET /agent_runners/{agent_runner_id} Get an agent run · Get agent runner #
Ask an LLM
“What is the status of my agent run?”
“Can I see the details of a single agent run?”
Tell an agent
Get agent run {runner}.
Check the progress of agent run {runner}.
PATCH /agent_runners/{agent_runner_id} Update an agent run · Update agent runner #
Ask an LLM
“Can I change an agent run after it's been created?”
“Is it possible to edit an existing agent run?”
Tell an agent
Update agent run {runner}.
Modify the settings of agent run {runner}.
DELETE /agent_runners/{agent_runner_id} Delete an agent run · Delete agent runner #
Ask an LLM
“How do I delete an agent run I don't need?”
“Can I permanently remove an agent run?”
Tell an agent destructive · confirm first
Delete agent run {runner}.
Permanently remove agent run {runner}.
POST /agent_runners/{agent_runner_id}/archive Archive an agent run · Archive agent runner #
Ask an LLM
“How do I archive an agent run without deleting it?”
“Can I hide finished agent runs by archiving them?”
Tell an agent
Archive agent run {runner}.
Move agent run {runner} to the archive.
POST /agent_runners/{agent_runner_id}/pull_request Open a pull request from an agent run · Agent runner pull request #
Ask an LLM
“Can an agent run open a pull request with its changes?”
“How do I turn an agent's changes into a PR for review?”
Tell an agent
Open a pull request from agent run {runner}.
Create a PR with the changes made by agent run {runner}.
POST /agent_runners/{agent_runner_id}/commit Commit agent run changes to a branch · Agent runner commit to branch #
Ask an LLM
“Can I commit an agent run's changes straight to a branch?”
“Which branch receives the commit from an agent run?”
Tell an agent
Commit the changes from agent run {runner} to branch {branch}.
Push agent run {runner}'s work directly onto {branch}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/netlify:netlify-agentrunner-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

netlify-agentrunner-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2.57.0
  title: Netlify's API documentation Agent Runner API
  description: Netlify is a hosting service for the programmable web.
  termsOfService: https://www.netlify.com/legal/terms-of-use/
  x-logo:
    url: netlify-logo.png
    href: https://www.netlify.com/docs/
    altText: Netlify
servers:
- url: https://api.netlify.com/api/v1
security:
- netlifyAuth: []
tags:
- name: agentRunner
paths:
  /agent_runners:
    get:
      operationId: listAgentRunners
      tags:
      - agentRunner
      parameters:
      - name: account_id
        in: query
        required: true
        schema:
          type: string
      - name: site_id
        in: query
        required: true
        schema:
          type: string
      - name: page
        required: false
        in: query
        schema:
          type: integer
          format: int32
      - name: per_page
        required: false
        in: query
        schema:
          type: integer
          format: int32
      - name: state
        in: query
        schema:
          type: string
          enum:
          - live
          - error
      - name: title
        in: query
        schema:
          type: string
      - name: branch
        in: query
        schema:
          type: string
      - name: result_branch
        in: query
        schema:
          type: string
      - name: from
        in: query
        schema:
          type: integer
      - name: to
        in: query
        schema:
          type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                    site_id:
                      type: string
                    parent_agent_runner_id:
                      type: string
                    state:
                      type: string
                    created_at:
                      type: string
                      format: dateTime
                    updated_at:
                      type: string
                      format: dateTime
                    done_at:
                      type: string
                      format: dateTime
                    title:
                      type: string
                    branch:
                      type: string
                    result_branch:
                      type: string
                    pr_url:
                      type: string
                    pr_branch:
                      type: string
                    pr_state:
                      type: string
                    pr_number:
                      type: integer
                    pr_is_being_created:
                      type: boolean
                    pr_error:
                      type: string
                    current_task:
                      type: string
                    result_diff:
                      type: string
                    sha:
                      type: string
                    merge_commit_sha:
                      type: string
                    merge_commit_error:
                      type: string
                    merge_commit_is_being_created:
                      type: boolean
                    base_deploy_id:
                      type: string
                    attached_file_keys:
                      type: array
                      items:
                        type: string
                    active_session_created_at:
                      type: string
                      format: dateTime
                    latest_session_deploy_id:
                      type: string
                    latest_session_deploy_url:
                      type: string
                    user:
                      type: object
                      properties:
                        id:
                          type: string
                        full_name:
                          type: string
                        email:
                          type: string
                        avatar_url:
                          type: string
        default:
          description: error
          content:
            application/json:
              schema:
                type: object
                required:
                - message
                properties:
                  code:
                    type: integer
                    format: int64
                  message:
                    type: string
      summary: List agent runners
      x-summary-source: derived
    post:
      operationId: createAgentRunner
      tags:
      - agentRunner
      parameters:
      - name: site_id
        in: query
        required: true
        schema:
          type: string
      - name: deploy_id
        in: query
        schema:
          type: string
      - name: branch
        in: query
        schema:
          type: string
      - name: prompt
        in: query
        schema:
          type: string
      - name: agent
        in: query
        schema:
          type: string
      - name: model
        in: query
        schema:
          type: string
      - name: parent_agent_runner_id
        in: query
        schema:
          type: string
      - name: dev_server_image
        in: query
        schema:
          type: string
      - name: file_keys
        in: query
        schema:
          type: array
          items:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  site_id:
                    type: string
                  parent_agent_runner_id:
                    type: string
                  state:
                    type: string
                  created_at:
                    type: string
                    format: dateTime
                  updated_at:
                    type: string
                    format: dateTime
                  done_at:
                    type: string
                    format: dateTime
                  title:
                    type: string
                  branch:
                    type: string
                  result_branch:
                    type: string
                  pr_url:
                    type: string
                  pr_branch:
                    type: string
                  pr_state:
                    type: string
                  pr_number:
                    type: integer
                  pr_is_being_created:
                    type: boolean
                  pr_error:
                    type: string
                  current_task:
                    type: string
                  result_diff:
                    type: string
                  sha:
                    type: string
                  merge_commit_sha:
                    type: string
                  merge_commit_error:
                    type: string
                  merge_commit_is_being_created:
                    type: boolean
                  base_deploy_id:
                    type: string
                  attached_file_keys:
                    type: array
                    items:
                      type: string
                  active_session_created_at:
                    type: string
                    format: dateTime
                  latest_session_deploy_id:
                    type: string
                  latest_session_deploy_url:
                    type: string
                  user:
                    type: object
                    properties:
                      id:
                        type: string
                      full_name:
                        type: string
                      email:
                        type: string
                      avatar_url:
                        type: string
        '404':
          description: Not Found
        '422':
          description: Unprocessable Entity
        default:
          description: error
          content:
            application/json:
              schema:
                type: object
                required:
                - message
                properties:
                  code:
                    type: integer
                    format: int64
                  message:
                    type: string
      summary: Create agent runner
      x-summary-source: derived
  /agent_runners/upload_url:
    post:
      x-internal: true
      operationId: createAgentRunnerUploadUrl
      tags:
      - agentRunner
      parameters:
      - name: account_id
        in: query
        required: true
        schema:
          type: string
      - name: filename
        in: query
        required: true
        schema:
          type: string
      - name: content_type
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
        '400':
          description: Bad Request
        '422':
          description: Unprocessable Entity
        default:
          description: error
          content:
            application/json:
              schema:
                type: object
                required:
                - message
                properties:
                  code:
                    type: integer
                    format: int64
                  message:
                    type: string
      summary: Create agent runner upload url
      x-summary-source: derived
  /agent_runners/{agent_runner_id}:
    parameters:
    - name: agent_runner_id
      in: path
      required: true
      schema:
        type: string
    get:
      operationId: getAgentRunner
      tags:
      - agentRunner
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  site_id:
                    type: string
                  parent_agent_runner_id:
                    type: string
                  state:
                    type: string
                  created_at:
                    type: string
                    format: dateTime
                  updated_at:
                    type: string
                    format: dateTime
                  done_at:
                    type: string
                    format: dateTime
                  title:
                    type: string
                  branch:
                    type: string
                  result_branch:
                    type: string
                  pr_url:
                    type: string
                  pr_branch:
                    type: string
                  pr_state:
                    type: string
                  pr_number:
                    type: integer
                  pr_is_being_created:
                    type: boolean
                  pr_error:
                    type: string
                  current_task:
                    type: string
                  result_diff:
                    type: string
                  sha:
                    type: string
                  merge_commit_sha:
                    type: string
                  merge_commit_error:
                    type: string
                  merge_commit_is_being_created:
                    type: boolean
                  base_deploy_id:
                    type: string
                  attached_file_keys:
                    type: array
                    items:
                      type: string
                  active_session_created_at:
                    type: string
                    format: dateTime
                  latest_session_deploy_id:
                    type: string
                  latest_session_deploy_url:
                    type: string
                  user:
                    type: object
                    properties:
                      id:
                        type: string
                      full_name:
                        type: string
                      email:
                        type: string
                      avatar_url:
                        type: string
        default:
          description: error
          content:
            application/json:
              schema:
                type: object
                required:
                - message
                properties:
                  code:
                    type: integer
                    format: int64
                  message:
                    type: string
      summary: Get agent runner
      x-summary-source: derived
    patch:
      operationId: updateAgentRunner
      tags:
      - agentRunner
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  site_id:
                    type: string
                  parent_agent_runner_id:
                    type: string
                  state:
                    type: string
                  created_at:
                    type: string
                    format: dateTime
                  updated_at:
                    type: string
                    format: dateTime
                  done_at:
                    type: string
                    format: dateTime
                  title:
                    type: string
                  branch:
                    type: string
                  result_branch:
                    type: string
                  pr_url:
                    type: string
                  pr_branch:
                    type: string
                  pr_state:
                    type: string
                  pr_number:
                    type: integer
                  pr_is_being_created:
                    type: boolean
                  pr_error:
                    type: string
                  current_task:
                    type: string
                  result_diff:
                    type: string
                  sha:
                    type: string
                  merge_commit_sha:
                    type: string
                  merge_commit_error:
                    type: string
                  merge_commit_is_being_created:
                    type: boolean
                  base_deploy_id:
                    type: string
                  attached_file_keys:
                    type: array
                    items:
                      type: string
                  active_session_created_at:
                    type: string
                    format: dateTime
                  latest_session_deploy_id:
                    type: string
                  latest_session_deploy_url:
                    type: string
                  user:
                    type: object
                    properties:
                      id:
                        type: string
                      full_name:
                        type: string
                      email:
                        type: string
                      avatar_url:
                        type: string
        default:
          description: error
          content:
            application/json:
              schema:
                type: object
                required:
                - message
                properties:
                  code:
                    type: integer
                    format: int64
                  message:
                    type: string
      summary: Update agent runner
      x-summary-source: derived
    delete:
      operationId: deleteAgentRunner
      tags:
      - agentRunner
      responses:
        '202':
          description: Accepted
        default:
          description: error
          content:
            application/json:
              schema:
                type: object
                required:
                - message
                properties:
                  code:
                    type: integer
                    format: int64
                  message:
                    type: string
      summary: Delete agent runner
      x-summary-source: derived
  /agent_runners/{agent_runner_id}/archive:
    parameters:
    - name: agent_runner_id
      in: path
      required: true
      schema:
        type: string
    post:
      operationId: archiveAgentRunner
      tags:
      - agentRunner
      responses:
        '202':
          description: Accepted
        '404':
          description: Not Found
        '422':
          description: Unprocessable Entity
        default:
          description: error
          content:
            application/json:
              schema:
                type: object
                required:
                - message
                properties:
                  code:
                    type: integer
                    format: int64
                  message:
                    type: string
      summary: Archive agent runner
      x-summary-source: derived
  /agent_runners/{agent_runner_id}/pull_request:
    parameters:
    - name: agent_runner_id
      in: path
      required: true
      schema:
        type: string
    post:
      x-internal: true
      operationId: agentRunnerPullRequest
      tags:
      - agentRunner
      responses:
        '200':
          description: OK
        '400':
          description: Bad Request
        '409':
          description: Conflict
        '422':
          description: Unprocessable Entity
        default:
          description: error
          content:
            application/json:
              schema:
                type: object
                required:
                - message
                properties:
                  code:
                    type: integer
                    format: int64
                  message:
                    type: string
      summary: Agent runner pull request
      x-summary-source: derived
  /agent_runners/{agent_runner_id}/commit:
    parameters:
    - name: agent_runner_id
      in: path
      required: true
      schema:
        type: string
    post:
      x-internal: true
      operationId: agentRunnerCommitToBranch
      tags:
      - agentRunner
      parameters:
      - name: target_branch
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
        '400':
          description: Bad Request
        '409':
          description: Conflict
        '422':
          description: Unprocessable Entity
        default:
          description: error
          content:
            application/json:
              schema:
                type: object
                required:
                - message
                properties:
                  code:
                    type: integer
                    format: int64
                  message:
                    type: string
      summary: Agent runner commit to branch
      x-summary-source: derived
components:
  securitySchemes:
    netlifyAuth:
      type: oauth2
      flows:
        implicit:
          scopes: {}
          authorizationUrl: https://app.netlify.com/authorize
externalDocs:
  url: https://www.netlify.com/docs/api/
  description: Online documentation
x-tagGroups:
- name: OAuth
  tags:
  - ticket
  - accessToken
- name: User accounts
  tags:
  - user
  - accountMembership
  - member
  - accountType
  - paymentMethod
  - auditLog
- name: Site
  tags:
  - site
  - environmentVariables
  - file
  - metadata
  - purge
  - snippet
- name: Domain names
  tags:
  - dnsZone
  - sniCertificate
- name: Deploys
  tags:
  - deploy
  - deployedBranch
  - deployKey
- name: Builds
  tags:
  - build
  - buildLogMsg
- name: Dev servers
  tags:
  - devServer
- name: Webhooks and notifications
  tags:
  - hook
  - hookType
  - buildHook
  - devServerHook
- name: Services
  tags:
  - service
  - serviceInstance
- name: Functions
  tags:
  - function
- name: Database
  tags:
  - database
- name: Forms
  tags:
  - form
  - submission
- name: Split tests
  tags:
  - splitTest
- name: Large media
  tags:
  - asset
  - assetPublicSignature