---
title: "Revoke a pending invite code"
method: POST
path: "/api/invites/revoke"
tags: ["Sharing"]
---

# Revoke a pending invite code

`POST /api/invites/revoke`

## Request

- Base URL: `https://trvlrr.app`
- URL: `https://trvlrr.app/api/invites/revoke`
- Auth: HTTP bearer

## Request body

- InviteCode
  - `code` string, required: The 8-character invite code.

## Response `200`

Revoked (or was not pending).

- Ok
  - `ok` boolean, required

## Other responses

- `400`: The request is malformed or fails validation.
- `401`: No usable credential: a Clerk session token, a device token or an OAuth access token is required.
- `403`: The caller may not do this to this account or trip.

---

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