GET
/
v0
/
agents
/
{id}
Agent status
curl --request GET \
  --url https://api.cursor.com/v0/agents/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "bc_abc123",
  "name": "Add README Documentation",
  "status": "RUNNING",
  "source": {
    "repository": "https://github.com/your-org/your-repo",
    "ref": "main"
  },
  "target": {
    "branchName": "cursor/add-readme-1234",
    "url": "https://cursor.com/agents?id=bc_abc123",
    "prUrl": "https://github.com/your-org/your-repo/pull/1234",
    "autoCreatePr": false
  },
  "summary": "Added README.md with installation instructions and usage examples",
  "createdAt": "2024-01-15T10:30:00Z"
}

Authorizations

Authorization
string
header
required

API key from Cursor Dashboard

Path Parameters

id
string
required

Unique identifier for the background agent

Example:

"bc_abc123"

Response

200
application/json

Agent details retrieved successfully

The response is of type object.