Executions

Get all executions

This API will give you all executions of that workspace which will be provided in header.

GET/api/v1/public/executions
Authorization
Query parameters
Header parameters
Response

All execution fetched successfully

Body
success*boolean
message*string
Example: "All execution fetched successfully"
total*number
data*array of ExecutionData (object)
Request
const response = await fetch('/api/v1/public/executions?start=0&limit=0&workflowId=text', {
    method: 'GET',
    headers: {
      "Authorization": "Bearer JWT",
      "X-TexAu-Context": "text"
    },
});
const data = await response.json();
Response
{
  "success": false,
  "message": "All execution fetched successfully",
  "total": 0,
  "data": [
    {
      "id": "The Execution ID",
      "name": "The Execution Name"
    }
  ]
}

Get Execution By ID

This API will give you status and executionTime of the specific execution.

Get executionId from the response of the above API.

GET/api/v1/public/executions/{executionId}
Authorization
Path parameters
executionId*string
Header parameters
Response

Execution fetched successfully

Body
success*boolean
message*string
Example: "Execution fetched successfully"
data*ExecutionByIdData (object)
Request
const response = await fetch('/api/v1/public/executions/{executionId}', {
    method: 'GET',
    headers: {
      "Authorization": "Bearer JWT",
      "X-TexAu-Context": "text"
    },
});
const data = await response.json();
Response
{
  "success": false,
  "message": "Execution fetched successfully",
  "data": {
    "id": "The Execution ID",
    "name": "The Execution Name",
    "workflowId": "The workflow ID",
    "status": "The Execution Status",
    "executionTimeUsed": "The Execution Time Used in ms"
  }
}

Last updated