Agent TasksCreate a long-running taskpost

Create a long-running task

Creates a long-running TextMine task for Workbench/task-agent work.

curl -X POST "https://public-api.textmine.com/v3/tasks" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (TextMine tm_ API key)" \
  -d '{
  "idempotency_key": "example_string",
  "title": "example_string",
  "instruction": "example_string",
  "source": "example_string",
  "priority": "example_string",
  "context": {},
  "permissions": {},
  "notify_when_done": true,
  "require_approval_for_external_actions": true,
  "require_plan_approval": true,
  "autostart": true
}'
{
  "task": {
    "id": 123,
    "organization_id": 123,
    "idempotency_key": "example_string",
    "source": "example_string",
    "priority": "example_string",
    "title": "example_string",
    "instruction": "example_string",
    "status": "example_string",
    "current_summary": "example_string",
    "final_summary": "example_string",
    "last_error": "example_string",
    "created": "2024-12-25T10:00:00Z",
    "updated": "2024-12-25T10:00:00Z",
    "completed_at": "2024-12-25T10:00:00Z"
  },
  "steps": [
    {}
  ],
  "events": [
    {}
  ],
  "approvals": [
    {}
  ]
}
POST
/v3/tasks
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token (TextMine tm_ API key)
Bearer Tokenstring
Required

Bearer token (TextMine tm_ API key) - just enter the token, "Bearer" prefix will be added automatically

Content-Typestring
Required

The media type of the request body

Options: application/json
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (TextMine tm_ API key). Authentication token required.

Responses