For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
LoginBook a Demo
  • Getting Started
    • Athena SDK Quickstart
  • Database API
    • Database Filters & CRUD
  • Python Guides
    • Build with Agents
    • Use Models Directly
    • Load Data Frames
    • Upload Files
    • Create Assets
    • Structured Output
    • Long-Running AOP Execution
  • TypeScript Guides
    • Build with Agents
    • Working with Assets
    • Use Models Directly
    • Execute AOPs
    • Sheets API
    • Browser JavaScript (ESM)
    • UI Registry (Assistant.js)
    • Upload Files
    • Create Assets
    • Structured Output
  • API Reference
      • POSTGet the chunks of an asset by ID
      • GETGet the content of an asset by ID
      • GETGet a screenshot of a specific page from an asset
      • GETList Contents
      • GETGet Tabular Data from Object
      • GETGet Raw File Data from Object
      • POSTSave file as an asset
        • POSTRun Task
Logo
LoginBook a Demo
API ReferenceToolsTasks

Run Task

Beta
POST
https://api.athenaintel.com/api/v0/tools/tasks/run
POST
/api/v0/tools/tasks/run
$curl -X POST https://api.athenaintel.com/api/v0/tools/tasks/run \
> -H "X-API-KEY: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '{
> "task_id": "string"
>}'
1{
2 "success": true,
3 "error": "string",
4 "error_type": "string",
5 "job_id": "string",
6 "result": null
7}
Run a [task](https://resources.athenaintel.com/docs/task-studio/home) and wait for the result. Executes a serverless function script or flow synchronously. Server handles polling internally.
Was this page helpful?
Previous
Built with

Run a task and wait for the result.

Executes a serverless function script or flow synchronously. Server handles polling internally.

Authentication

X-API-KEYstring
API Key authentication via header
OR
AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
task_idstringRequired

The unique identifier (path) of the task. Example: ‘f/public/databricks_describe_table’

argumentsmap from strings to anyOptional
Arguments to pass to the task
task_typeenumOptionalDefaults to script

Type: ‘script’ or ‘flow’

Allowed values:

Response

Successful Response
successboolean
Whether execution succeeded
errorstring or null
Error message if failed
error_typestring or null

Error type: ‘timeout’, ‘execution_error’, ‘not_found’, ‘validation_error’

job_idstring or null
Job ID for debugging
resultany
The task result

Errors

422
Unprocessable Entity Error