---
title: "Cancel Test Invocation"
method: POST
path: "/v1/convai/test-invocations/{test_invocation_id}/cancel"
---

# Cancel Test Invocation

`POST /v1/convai/test-invocations/{test_invocation_id}/cancel`

Cancels all pending runs in a test invocation.

## Path parameters

- `test_invocation_id` string, required — The id of a test invocation. This is returned when tests are run.

## Headers

- `xi-api-key` string, nullable — Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

## Response `204`

Successful Response

## Other responses

- `422` — Validation Error

## Changes

- **2026-10-02** `f94fa2aa9384` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation/changes/v1/convai/test-invocations/:test_invocation_id/cancel/post.md)

---

[API](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation.md) · [All operations](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation/revisions/204453a63fdc?raw)
