> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# RevokeInvite

# Package: sites

# Namespace: SiteInvitesApi

# Method link: https://dev.wix.com/docs/api-reference/account-level/user-management/sites/site-invites/revoke-invite.md

## Permission Scopes:
Manage Contributors: SCOPE.DC-IDENTITY.MANAGE-CONTRIBUTORS

## Introduction

Revokes a pending site contributor invite.
> **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.

---

## REST API

### Schema

```
 Method: revokeInvite
 Description: Revokes a pending site contributor invite. > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.
 URL: https://www.wixapis.com/invites/site-invite/{inviteId}/revoke
 Method: POST
 Return type: RevokeSiteInviteResponse
  EMPTY-OBJECT {}


```

### Examples

### Revoke contributor invite
```curl
curl -X POST \
'https://www.wixapis.com/invites/site-invite/0092ff87-6028-41cb-92b5-980d5474abcf/revoke' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.userManagement.siteInvites.revokeInvite(inviteId)
 Description: Revokes a pending site contributor invite. > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  inviteId
 Method parameters: 
   param name: inviteId | type: string | description: Invite GUID. | required: true 
 Return type: PROMISE<RevokeSiteInviteResponse>
  EMPTY-OBJECT {}


```

### Examples

### Revoke a pending site invite with an API key
```javascript
import { createClient, ApiKeyStrategy } from "@wix/sdk";
import { siteInvites } from "@wix/user-management";

const wixClient = createClient({
 modules: { siteInvites },
 auth: ApiKeyStrategy({
    siteId: "MY-SITE-ID",
    apiKey: "MY-API-KEY",
  }),
});

async function revokeInvite(inviteId) {
  const response = await siteInvites.revokeInvite(inviteId);
}

```

### revokeInvite (self-hosted)
Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { siteInvites } from '@wix/user-management';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { siteInvites },
  // Include the auth strategy and host as relevant
});


async function revokeInvite(inviteId) {
  const response = await myWixClient.siteInvites.revokeInvite(inviteId);
};
```

---