---
title: "Resend a staff invitation"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.nicer.travel/llms.txt
> Use this file to discover all available pages before exploring further.

# Resend a staff invitation

Path: Nicer API › identity

`POST /identity/invite/resend`

URL: `https://api.nicer.travel/identity/invite/resend`

Sends a pending staff invitation of the agency the request acts for again, found by the email or the phoneNumber it went to, and gives it seven more days; at most four times. Agency admins only. Errors: 400 ERROR_MALFORMED_BODY without an email or a phone number, 400 ERROR_BODY_VALIDATION for a body that is not an object or a contact that is not text, 404 ERROR_ITEM_NOT_FOUND without a pending staff invitation for it that the caller may resend, 403 ERROR_UNAUTHORIZED for a caller who is not an admin, 409 ERROR_INVITE_RESEND_LIMIT_EXCEEDED past the fourth time.

## Authentication

- `bearerAuth`, http bearer, header `Authorization`, format `JWT`

## Request body

_Required._

- `email` (`identity.invite.resend.email`; any of, optional) — The email the invitation went to; it wins over phoneNumber.
  - any of the following: `string`, `null`
- `phoneNumber` (`identity.invite.resend.phoneNumber`; any of, optional) — The phone the invitation went to, when it went by text.
  - any of the following: `string`, `null`

## Example request

```json
{
  "email": "string",
  "phoneNumber": "string"
}
```

## Code samples

### JavaScript SDK

```javascript
import { createClient } from "@nicertravel/sdk";

const nicer = createClient({
  baseUrl: "https://api.nicer.travel",
  token: process.env.NICER_TOKEN,
});

await nicer.identity.invite.resend({});
```

### Nicer CLI

```bash
nicer identity invite resend --input - <<'JSON'
{}
JSON
```

### cURL

```bash
curl --request POST \
  --url https://api.nicer.travel/identity/invite/resend \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "string",
  "phoneNumber": "string"
}
'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/identity/invite/resend';
const options = {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    Authorization: 'Bearer <token>'
  },
  body: JSON.stringify({email: 'string', phoneNumber: 'string'})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.nicer.travel/identity/invite/resend"

payload = {
    "email": "string",
    "phoneNumber": "string"
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "success": true
}
```

- `success` (`identity.invite.resend.response.200.success`; boolean, required)

### 400

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`identity.invite.resend.response.400.errorCode`; string, required)
- `errorMessage` (`identity.invite.resend.response.400.errorMessage`; string, required)

### 401

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`identity.invite.resend.response.401.errorCode`; string, required)
- `errorMessage` (`identity.invite.resend.response.401.errorMessage`; string, required)

### 403

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`identity.invite.resend.response.403.errorCode`; string, required)
- `errorMessage` (`identity.invite.resend.response.403.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/identity/identity.invite.resend/index.md
