# 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

>

```json
{"openapi":"3.0.0","info":{"title":"TexAu APIs","version":"1.0"},"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"}},"schemas":{"ExecutionsDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"total":{"type":"number"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExecutionData"}}},"required":["success","message","total","data"]},"ExecutionData":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}}},"paths":{"/api/v1/public/executions":{"get":{"operationId":"ApiController_getAllExecutions","parameters":[{"name":"X-TexAu-Context","in":"header","description":"Pass orgUserId and workspaceId as ‘{\"orgUserId\":\"123\",\"workspaceId\":\"123\"}’","required":true,"schema":{"type":"string"}},{"name":"start","required":false,"in":"query","description":"The page No","schema":{"minimum":0,"type":"number"}},{"name":"limit","required":false,"in":"query","description":"The Page Size","schema":{"minimum":1,"maximum":50,"type":"number"}},{"name":"workflowId","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"All execution fetched successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecutionsDto"}}}},"401":{"description":"Unauthorized access"},"403":{"description":"Your plan does not have API access"},"422":{"description":"Requested workspace does not belongs to you"},"500":{"description":"Error in fetching all executions"}},"tags":["API Service"]}}}}
```

## Get Execution By ID

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

{% hint style="info" %}
Get `executionId` from the response of the above API.
{% endhint %}

## GET /api/v1/public/executions/{executionId}

>

```json
{"openapi":"3.0.0","info":{"title":"TexAu APIs","version":"1.0"},"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"}},"schemas":{"ExecutionByIdDto":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/ExecutionByIdData"}},"required":["success","message","data"]},"ExecutionByIdData":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"workflowId":{"type":"string"},"status":{"type":"string"},"executionTimeUsed":{"type":"number"}},"required":["id","name","workflowId","status","executionTimeUsed"]}}},"paths":{"/api/v1/public/executions/{executionId}":{"get":{"operationId":"ApiController_getExecutionById","parameters":[{"name":"X-TexAu-Context","in":"header","description":"Pass orgUserId and workspaceId as ‘{\"orgUserId\":\"123\",\"workspaceId\":\"123\"}’","required":true,"schema":{"type":"string"}},{"name":"executionId","required":true,"in":"path","description":"The executionId","schema":{"type":"string"}}],"responses":{"200":{"description":"Execution fetched successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecutionByIdDto"}}}},"401":{"description":"Unauthorized access"},"403":{"description":"Your plan does not have API access"},"404":{"description":"Execution does not exist"},"422":{"description":"Requested workspace does not belongs to you"},"500":{"description":"Error in fetching execution"}},"tags":["API Service"]}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://texau.gitbook.io/api-docs/reference/api-reference/executions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
