Skip to main content
POST
/
api
/
v1
/
tasks
/
{id}
/
approve
Approve or decline a suspended tool call
curl --request POST \
  --url https://neo.api.projectdiscovery.io/api/v1/tasks/{id}/approve \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "decision": "approve",
  "agent_id": "<string>",
  "metadata": {},
  "run_id": "<string>",
  "tool_call_id": "<string>"
}
'
{
  "success": true,
  "error": "<string>",
  "stream_id": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.neo.projectdiscovery.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

JWT authentication token

Path Parameters

id
string<uuid>
required

Task ID

Body

application/json
decision
enum<string>
required

Whether to approve or decline the pending tool call

Available options:
approve,
decline
agent_id
string

Agent ID to resume (optional, resolved from stream metadata if omitted)

metadata
object

Answers or additional data to pass to the resumed tool (e.g., ask_question answers)

run_id
string

Agent run ID (optional, resolved from stream metadata if omitted)

tool_call_id
string

Specific tool call ID to approve (for parallel subagent routing)

Response

Approval processed successfully

success
boolean
required
error
string

Error message if approval failed

stream_id
string

ID of the resumed stream