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

# Cancel Agent Action Execution

<Aside type="note">The functionality described on this page is only available to customers who have licensed Veeva AI.</Aside>
Request the cancellation of an in-progress agent action.

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

## Headers {#headers}

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

## Body Parameters {#body-parameters}

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

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

## Request {#request}

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

```
</CodeExample>

## Response {#response}

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

```
</CodeExample>

## Response Details {#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)