# Resend pending invite

> Source: https://elaichi.ai/docs/api-reference/invites/invite/resendinvite/

`POST /invite/{id}/resend`

Resource: **Invite** · API: **Invites**

## Path parameters

- **`id`** _(string, required)_
  Invite id (`inv_…`).

## Response body

- **`id`** _(string)_
  Invite id (`inv_…`).
- **`email`** _(string)_
  Lowercased at creation.
- **`role_ids`** _(array<string>)_
  The single role (`role_…`) the invitee receives on acceptance.
- **`team_ids`** _(array<string>)_
  Teams (`team_…`) they are added to.
- **`status`** _(string)_
  Lifecycle state; only `pending` invites can still be accepted.
- **`expires_at`** _(string)_
  Seven days after creation.
- **`invited_by`** _(string,null)_
  User id (`usr_…`) of the inviter.
- **`created_at`** _(string)_
- **`updated_at`** _(string)_
- **`token`** _(string)_
  Raw invite token — returned once, never retrievable again.
- **`email_sent`** _(boolean)_
  False when no invite email went out (the token still works).

## Code examples

### curl

```bash
curl -X POST 'https://api.elaichi.ai/invite/<id>/resend' \
  -H 'Authorization: Bearer $ELAICHI_API_TOKEN' \
  -H 'Content-Type: application/json'
```

### JavaScript

```javascript
const response = await fetch('https://api.elaichi.ai/invite/<id>/resend', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer ' + process.env.ELAICHI_API_TOKEN,
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
```

### Python

```python
import os
import requests

url = "https://api.elaichi.ai/invite/<id>/resend"
headers = {
    "Authorization": f"Bearer {os.environ['ELAICHI_API_TOKEN']}",
    "Content-Type": "application/json",
}

response = requests.post(url, headers=headers)
print(response.json())
```
