---
title: "Request swarm run insights"
method: POST
path: "/projects/{projectId}/swarm-runs/{swarmRunId}/insights"
tags: ["Swarm insights"]
---

# Request swarm run insights

`POST /projects/{projectId}/swarm-runs/{swarmRunId}/insights`

Answers **202**: generation is scheduled, not done. Poll the GET above rather than re-requesting.

**No credits are consumed** — the model cost is on MCPJam. It still draws on the `insightsPerDay` ledger, which counts REQUESTS and is SHARED with eval-run and user-testing insights, so a request here takes one from there too.

Three refusals, and they mean different things:
- `429` with `code: "RATE_LIMITED"` and a short `Retry-After` — the per-minute burst brake. Wait seconds.
- `429` naming `insightsPerDay` in `details` — the daily ledger. `Retry-After` counts to UTC midnight.
- `403` — the feature is not available to your organization. Waiting will never help; collapsing this into the 429s would send someone who hit today's cap shopping for a plan they already have.

## Request body

- SwarmRunInsightsRequest
  - `force` boolean — Regenerate over a swarm run that already has insights. OFF by default because it takes a SECOND slice of your organization's shared daily insight quota (no credits either way) — and the common cause of a repeated request is a caller that did not poll.

## Response `202`

Generation was scheduled.

- SwarmRunInsightsRequested
  - `swarmRunId` string, required
  - `projectId` string, required
  - `status` 'pending', required

## Other responses

- `400` — Malformed body or parameters.
- `401` — Missing, invalid, revoked, or orphaned key (`UNAUTHORIZED`) — or the **target MCP server** needs an OAuth grant (`OAUTH_REQUIRED`), which is a property of the server, not your key.
- `403` — Key is valid but not allowed to do this.
- `404` — Unknown project, server, or resource.
- `429` — Per-key rate limit exceeded (60 requests/minute sustained, bursts up to 10). Honor `Retry-After` and back off with jitter.
- `500` — Something failed on MCPJam's side.

## Changes

- **2026-09-22** `561e4fd0dfa2` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/mcpjam/apis/mcpjam-api/changes/projects/:projectId/swarm-runs/:swarmRunId/insights/post.md)

---

[API](https://skmtc.dev/mcpjam/apis/mcpjam-api.md) · [All operations](https://skmtc.dev/mcpjam/apis/mcpjam-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mcpjam/apis/mcpjam-api/revisions/9b4860d5945e?raw)
