---
title: "Cancel invite"
method: DELETE
path: "/tenants/{id}/invites/{inviteId}"
tags: ["invites"]
---

# Cancel invite

`DELETE /tenants/{id}/invites/{inviteId}`

## Request

- Base URL: `https://api.instruxi.dev/api/v1/enforcer`
- URL: `https://api.instruxi.dev/api/v1/enforcer/tenants/{id}/invites/{inviteId}`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `X-API-Key`

Cancels a pending invite before it is accepted — an already-accepted, expired, or already-cancelled invite is a 404, not a no-op. Behind the tenant manage gate (developer role and up); a plain member who SENT the invite cannot cancel it themselves.

## Path parameters

- `id` string, required
- `inviteId` string, required

## Response `200`

OK

- InternalDeliveryHttpHandlerOKResponse
  - `success` boolean

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden

---

[API](https://skmtc.dev/instruxi/apis/enforcer-api.md) · [All operations](https://skmtc.dev/instruxi/apis/enforcer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/instruxi/apis/enforcer-api/revisions/fa82bc1becc0?raw)
