Run Task
Run a task and wait for the result.
Executes a serverless function script or flow synchronously. Server handles polling internally.
When Tool Studio is disabled in the environment, returns HTTP 403 with
detail.code ENVIRONMENT_FEATURE_DISABLED and detail.key task_studio_toolkit
before creating or running a job. This restriction also applies to administrators.
Authentication
X-API-KEYstring
API Key authentication via header
Headers
X-Athena-Session-Credential
Request
This endpoint expects an object.
task_id
The unique identifier (path) of the task. Example: ‘f/public/databricks_describe_table’
arguments
Arguments to pass to the task
task_type
Type: ‘script’ or ‘flow’
Allowed values:
Response
Successful Response
success
Whether execution succeeded
error
Error message if failed
error_type
Error type: ‘timeout’, ‘execution_error’, ‘not_found’, ‘validation_error’
job_id
Job ID for debugging
result
The task result
Errors
422
Unprocessable Entity Error
