Execute Function Tasks
Last updated
Was this helpful?
Last updated
Was this helpful?
Execute a Function Task and retrieve the result.
You can configure the endpoint for either a synchronous or asynchronous response. In sync mode, if the result is ready within 60 seconds, it will be returned immediately. If not, you'll receive an executionId, which you can use to check the result later by calling the status endpoint.
To get authorized using an API Key, include the registered API Key in the call's header. This allows the dispatcher service to validate access and identify who will cover the cost of the task execution (the address associated with the API Key).
Example
Execute a task using the provided task name. Supports both synchronous and asynchronous execution.
API key for authentication.
The namespace of the task.
The name of the task to be executed.
Label of the task.
Version number of the task.
If true, the endpoint will retrieve the executionId; otherwise, it will try to return the execution result only if it completes within 60 seconds.
Input data required for task execution.
Total number of solutions required for the task.
Number of solutions required to complete the task.
Timeout for task execution in milliseconds.
Task Requester Timestamp. This value is used to calculate the random bits in the node selection Phase.
Asynchronous response of task execution.
Synchronous response of task execution.