---
title: "Stream Cursor Run"
method: POST
path: "/v1/ai/cursor/runs/stream"
tags: ["v1", "Cursor Agent"]
---

# Stream Cursor Run

`POST /v1/ai/cursor/runs/stream`

## Request

- Base URL: `https://memory.papr.ai`
- URL: `https://memory.papr.ai/v1/ai/cursor/runs/stream`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Start or resume a Cursor cloud agent run. Streams SSE events (text-delta, tool-call, tool-result, done, error).

## Request body

- CursorRunStreamBody
  - `chatId` string, required: Paprwork chat/conversation ID
  - `prompt` string, required: User message to send to the agent
  - `model` string: Cursor model ID
  - `agentId` string, nullable: Resume existing agent
  - `repos` RepoRef[], nullable: GitHub repos for cloud agent
    - `url` string, required
    - `startingRef` string, nullable

## Response `200`

SSE stream of Cursor agent events

- object: Generic JSON response object

## Other responses

- `401`: Unauthorized
- `403`: Forbidden (missing org scope)
- `422`: Validation Error
- `500`: Internal server error

## Changes

- **2026-10-16** `0e7a5c0d125d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/papr-ai/apis/papr-memory-api/changes/v1/ai/cursor/runs/stream/post.md)

---

[API](https://skmtc.dev/papr-ai/apis/papr-memory-api.md) - [All operations](https://skmtc.dev/papr-ai/apis/papr-memory-api/llms.txt) - [OpenAPI document](https://skmtc.dev/papr-ai/apis/papr-memory-api/revisions/6fc381dc78b3?raw)
