---
title: "Send follow-up message"
method: POST
path: "/v2/agent/{projectId}/job/{id}/message"
language: "en"
---

# Send follow-up message

`POST /v2/agent/{projectId}/job/{id}/message`

## Request

- Base URL: `https://api.mintlify.com`
- URL: `https://api.mintlify.com/v2/agent/{projectId}/job/{id}/message`
- Auth: HTTP bearer

Sends a follow-up message to an existing agent job. The message is processed asynchronously. Poll the get job endpoint to track progress.

Authenticate with an admin API key.

## Path parameters

- `projectId` string, required
- `id` string, required

## Request body

- object
  - `prompt` string, required: The follow-up instruction for the agent.

## Response `200`

Message sent successfully

- AgentJob
  - `id` string: Unique identifier for the agent job.
  - `status` 'active' | 'completed' | 'archived' | 'failed': Current status of the job. `active` — the agent is currently processing the prompt. `completed` — the agent finished successfully and a PR may have been created (check `prLink`). `archived` — the job has been archived. `failed` — the agent encountered an unrecoverable error. Poll until status is `completed`, `archived`, or `failed`.
  - `source` object: Source repository information.
    - `repository` string: Full URL of the GitHub repository.
    - `ref` string, nullable: Git branch the agent is working on.
  - `model` string: The AI model used for this job.
  - `prLink` string, uri, nullable: GitHub pull request URL created by the agent. `null` while the job is still `active` or if no files were changed. Populated once the agent successfully creates a PR.
  - `createdAt` string, date-time: Timestamp when the job was created.
  - `archivedAt` string, date-time, nullable: Timestamp when the job was archived.

## Other responses

- `400`: The request is invalid. The `prompt` is missing or empty, the project's primary Git source isn't GitHub, the GitHub app isn't configured for the project, or the project ID is malformed.
- `401`: The API key is missing or invalid, or your plan doesn't include API access or the agent.
- `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`: No agent job with this ID exists in this project, or the project doesn't exist or doesn't belong to your organization.
- `429`: You exceeded the rate limit of 100 requests per hour per organization.

## Changes

- **2026-10-30** `3eb6a2a4ba24`: 2 info
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`
- **2026-03-12** `fe8388a0be80`: 1 warning
  - added the new `archived` enum value to the `status` response property for the response status `200`
- **2026-03-10** `2a52ec342266`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/mintlify/apis/mintlify-admin-api/changes/v2/agent/:projectId/job/:id/message/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)
