---
title: "Find or Create Invite"
slug: "find-or-create-invite"
updated: 2026-06-08T12:46:40Z
published: 2026-06-08T12:46:40Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://developer.rocket.chat/llms.txt
> Use this file to discover all available pages before exploring further.

# Find or Create Invite

Post/api/v1/findOrCreateInvite

Creates or return an existing invite with the specified parameters.

[Permission](https://docs.rocket.chat/docs/permissions) required: `create-invite-links`

Header parametersX-Auth-TokenstringRequired

The `authToken` of the authenticated user.

ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
X-User-IdstringRequired

The `userId` of the authenticated user.

ExamplerbAXPnMktTFbNpwtJ

Body parameters<select class='api-response-data' aria-label='Media type'><option value='5c238e64-5c20-4ef0-a475-f51e63c3af73'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='c7ae64b7-be9d-4e5d-8743-55585a9ce6fa'>Example</option>
</select>Example

```json
{
  "rid": "csFYrDeixJG7PnrAh",
  "days": 10,
  "maxUses": 0
}
```

object  ridstring    Required

The room ID that the invite is being created for.

daysinteger    Required

The number of days that the invite will be valid for. Send `0` for unlimited.

maxUsesinteger    Required

The number of times that the invite can be used. Send `0` for unlimited.

Responses200

OK

<select class='api-response-data' aria-label='Media type'><option value='72129384-e7dd-405e-9a0c-2807ababdc20'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='d9e9b186-c599-4ec8-ad03-6332272438c0'>Success</option>
</select>Success

```json
[
  {
    "_id": "kDKQ3H",
    "days": 1,
    "maxUses": 1,
    "rid": "s7CE842q9WtvLctD7",
    "userId": "sNiDqHit5nGAGFg8X",
    "createdAt": "2019-12-20T03:31:56.774Z",
    "expires": "2019-12-21T03:31:56.774Z",
    "uses": 1,
    "_updatedAt": "2019-12-20T03:33:40.065Z"
  },
  {
    "_id": "99ScEP",
    "days": 1,
    "maxUses": 0,
    "rid": "s7CE842q9WtvLctD7",
    "userId": "sNiDqHit5nGAGFg8X",
    "createdAt": "2019-12-20T03:38:20.485Z",
    "expires": "2019-12-21T03:38:20.485Z",
    "uses": 0,
    "_updatedAt": "2019-12-20T03:38:20.485Z"
  },
  {
    "_id": "Y5JKM4",
    "days": 0,
    "maxUses": 1,
    "rid": "s7CE842q9WtvLctD7",
    "userId": "sNiDqHit5nGAGFg8X",
    "createdAt": "2019-12-20T03:38:25.313Z",
    "expires": null,
    "uses": 1,
    "_updatedAt": "2019-12-20T03:38:40.116Z"
  }
]
```

Array of object   object  _idstring    
daysinteger    
maxUsesinteger    
ridstring    
userIdstring    
createdAtstring    
expiresstring   | null  
usesinteger    
_updatedAtstring    

401

Unauthorized

<select class='api-response-data' aria-label='Media type'><option value='8f80f303-5940-452e-bc60-a4c48a3a39bf'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='a2afd3c4-64f0-4be4-9c8d-c11d7f9205cc'>Authorization Error</option>
</select>Authorization Error

```json
{
  "status": "error",
  "message": "You must be logged in to do this."
}
```

object  statusstring    
messagestring
