日本語
cURL
curl --request GET \ --url https://api.cursor.com/v0/agents/{id}/conversation \ --header 'Authorization: Bearer <token>'
{ "id": "bc_abc123", "messages": [ { "id": "msg_123", "type": "user_message", "text": "Add a README.md file with installation instructions" } ] }
バックグラウンドエージェントの会話履歴を取得する
API key from Cursor Dashboard
Unique identifier for the background agent
"bc_abc123"
Conversation retrieved successfully
Array of conversation messages ordered chronologically
表示 子属性
Unique identifier for the message
"msg_123"
Type of message - either from the user or the model
user_message
assistant_message
"user_message"
The content of the message
"Add a README.md file with installation instructions"
このページは役に立ちましたか?