curl --location 'https://cloud.blackbox.ai/api/tasks/YOUR_TASK_ID/continue' \--header 'Authorization: Bearer YOUR_API_KEY' \--header 'Content-Type: application/json' \--data '{ "currentPrompt": "Also add unit tests for the new payment module"}'
Copy
{ "success": true, "message": "Task continue started successfully"}
API documentation
Continue an Agent Task
Send a follow-up prompt to an existing task, continuing the agent’s work with new instructions or additional context.
POST
https://cloud.blackbox.ai
/
api
/
tasks
/
{taskId}
/
continue
Copy
curl --location 'https://cloud.blackbox.ai/api/tasks/YOUR_TASK_ID/continue' \--header 'Authorization: Bearer YOUR_API_KEY' \--header 'Content-Type: application/json' \--data '{ "currentPrompt": "Also add unit tests for the new payment module"}'
Copy
{ "success": true, "message": "Task continue started successfully"}
This endpoint allows you to continue an existing task by sending a follow-up prompt. The agent will pick up where it left off, applying your new instructions to the same repository and branch.
For GitHub-related tasks: Make sure you have connected your GitHub account on https://cloud.blackbox.ai before continuing tasks that work with repositories. This is required for the agent to access and modify your repositories.
Override the model for this follow-up. If omitted, the task’s original model is used.Example: blackboxai/blackbox-pro, blackboxai/anthropic/claude-sonnet-4.5
Environment variables to inject into the sandbox for this follow-up, as a newline-separated KEY=VALUE string.Example: "STRIPE_KEY=sk_test_xxx\nNODE_ENV=production"
After calling continue, the task’s followupMessages array is updated with the new follow-up entry. Poll Get Task and inspect the last element of followupMessages:
Follow-up Message Structure
Copy
{ "message": "Also add unit tests for the new payment module", "timestamp": "2025-11-21T10:35:00.000Z", "selectedAgent": "blackbox", "selectedModel": "blackboxai/blackbox-pro", "status": "completed", "statusMessage": null}