---
title: "Revoke an open invitation"
method: DELETE
path: "/team/invitations/{invitation_id}"
tags: ["Team"]
---

# Revoke an open invitation

`DELETE /team/invitations/{invitation_id}`

## Request

- Base URL: `https://adslighthouse.com/api/v1`
- URL: `https://adslighthouse.com/api/v1/team/invitations/{invitation_id}`
- Auth: HTTP bearer

Cancels an open invitation so its link can no longer be used. Owners may cancel any invitation; admins only invitations for the member role. Canceling one that was already accepted or canceled changes nothing. Requires the write scope; confirm with the user first.

## Path parameters

- `invitation_id` string, required: The invitation id from list_team.

## Response `200`

Revoke an open invitation

- object
  - `invitation` object, required
    - `id` string, required
    - `email` string, required
    - `role` 'admin' | 'member', required
    - `status` 'pending' | 'expired' | 'accepted' | 'canceled', required: pending invitations can still be accepted until expires_at.
    - `delivery_status` 'pending' | 'sent' | 'failed', required: Whether the invitation email was handed to the mail service.
    - `invited_by_email` string, nullable, required
    - `created_at` string, required
    - `expires_at` string, required
  - `request_id` string

## Other responses

- `400`: Invalid parameters, cursor or body.
- `401`: Missing, invalid, expired or revoked credential.
- `403`: The credential lacks the write scope, the plan does not include the API, or the allowance is used up.
- `404`: Unknown project, keyword or run in this account.
- `409`: The idempotency key was already used for a different request.
- `429`: Rate limit reached. Retry after the Retry-After seconds.
- `503`: The requested service or file is temporarily unavailable.

---

[API](https://skmtc.dev/adslighthouse/apis/ads-lighthouse-api.md) · [All operations](https://skmtc.dev/adslighthouse/apis/ads-lighthouse-api/llms.txt) · [OpenAPI document](https://skmtc.dev/adslighthouse/apis/ads-lighthouse-api/revisions/e1a4a40b11a9?raw)
