---
title: "Revoke an invite"
method: POST
path: "/api/vega/invite/revoke"
tags: ["Account"]
---

# Revoke an invite

`POST /api/vega/invite/revoke`

## Request

- Base URL: `https://getmyluna.app`
- URL: `https://getmyluna.app/api/vega/invite/revoke`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `luna_session`

Admin only. Invalidates an unused invite code.

## Request body

- InviteRevokeRequest
  - `token` string, required: The invite code.

## Response `200`

Success

- OkResponse
  - `ok` boolean

## Other responses

- `401`: Missing or invalid credentials
- `403`: Forbidden, or `insufficient_scope` when a bearer token lacks the `write` scope
- `404`: Not Found
- `422`: Validation Error

---

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