**Source URL:** https://limited.veevavault.dev/ai-agents/api/cancel-agent-action-execution

# Cancel Agent Action Execution

<Aside type="note">
The functionality described on this page is only available to customers who have licensed Vault AI.
</Aside>

Request the cancellation of an in-progress agent action.

<Endpoint path="/api/{version}/services/ai/agent_actions/actions/cancel" method="POST" />

## Headers

<FieldTable>
| Name | Description |
| --- | --- |
| `Accept` | `application/json` (default) or `application/xml` |
| `Content-Type` | `application/json` |
</FieldTable>

## Body Parameters

In the body of the request, include a JSON object with the following:

<FieldTable>
| Name | Description |
| --- | --- |
| `execution_id`<Requiredness type="required" /> | The execution ID of the agent action to cancel. |
</FieldTable>

## Request

<CodeExample title="">
```bash
curl --location 'https://myvault.veevavault.com/api/v26.1/services/ai/agent_actions/actions/cancel' \
--header 'Accept: application/json' \
--header 'Authorization: {AUTH_VALUE}' \
--header 'X-VaultAPI-ClientID: veeva-vault-api-reference-example' \
--header 'Content-Type: application/json' \
--data '    {
       "execution_id": "VAB000000001003"
   }'
```
</CodeExample>

## Response

<CodeExample title="">
```json
{
   "responseStatus": "SUCCESS",
   "data": {
       "actionStatus": "SUBMITTED",
       "executionId": "VAB000000001003"
   }
}
```
</CodeExample>

## Response Details

On `SUCCESS`, the response returns the submitted execution ID and provides the status.

---

**Previous:** [Execute Agent Action](/ai-agents/api/execute-agent-action)  
**Next:** [Retrieve Agent Action Execution Status](/ai-agents/api/retrieve-agent-action-execution-status)