---
title: "Trigger Autopilot webhook"
method: POST
path: "/v2/autopilot/{projectId}/webhook"
language: "en"
---

# Trigger Autopilot webhook

`POST /v2/autopilot/{projectId}/webhook`

## Request

- Base URL: `https://api.mintlify.com`
- URL: `https://api.mintlify.com/v2/autopilot/{projectId}/webhook`
- Auth: HTTP bearer

Starts an Autopilot run that follows the prompt in the request body. Useful for asking Autopilot to update your docs from CI/CD pipelines, release scripts, or internal tools.

Authenticate with an organization API key that has write access.

## Path parameters

- `projectId` string, required

## Request body

- object
  - `prompt` string, required: Instructions for Autopilot, such as what changed and what to update in your docs.

## Response `202`

Autopilot run queued successfully.

- object
  - `success` boolean: Always `true` when the run is queued.
  - `runId` string: The ID of the queued Autopilot run.

## Other responses

- `400`: The prompt is missing, empty, or longer than 20,000 characters, or the project ID is malformed.
- `401`: The API key is missing or invalid, or your plan doesn't include Autopilot.
- `403`: Your API key doesn't have write access, or your request came from an IP address that isn't on your API key's allowlist.
- `404`: The project doesn't exist or doesn't belong to your organization, or Autopilot is not set up for the project.
- `429`: You exceeded the rate limit of 10 requests per 10 seconds per organization. This limit is shared with the trigger deployment, trigger automation, and automation webhook endpoints.
- `500`: The Autopilot run could not be queued because of an unexpected server error.

## Changes

- **2026-11-17** `20f9b4a4a842`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/mintlify/apis/mintlify-admin-api/changes/v2/autopilot/:projectId/webhook/post.md)

---

[API](https://skmtc.dev/mintlify/apis/mintlify-admin-api.md) - [All operations](https://skmtc.dev/mintlify/apis/mintlify-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mintlify/apis/mintlify-admin-api/revisions/20f9b4a4a842?raw)
