---
title: "Revoke a pending invitation"
description: "Other routes API"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.certinvo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Revoke a pending invitation

{/* Generated by apps/docs/scripts/generate.ts from contracts/api/openapi.yaml. Do not edit. */}
<div class="cvo-op">
<div class="cvo-op-main">

<div class="cvo-op-header">
<div class="cvo-op-path-row">
<span class="cvo-method" data-method="delete">DELETE</span>
<code class="cvo-op-path-code">/v1/team/invitations/&#123;id&#125;</code>
</div>
</div>

Closes a pending invitation of this workspace. Accepting it afterwards gives nothing. Only an owner or an admin of the workspace. Only a signed-in person. An API key is refused with 401 `session_required`.

## Path parameters

## Status codes

| Status | Meaning |
|---|---|
| `204` | The invitation is revoked. |
| `401` | No usable credential was sent (`invalid_credentials`), or an API key was used (`session_required`). |
| `403` | The person is not an owner or an admin of this workspace (`role_required`). |
| `404` | No pending invitation of this workspace has this id (`unknown_invitation`). |

</div>
<div class="cvo-op-aside">

</div>
</div>

Source: https://docs.certinvo.com/reference/api/other/revoke-a-pending-invitation/index.mdx
