# Resend an invitation

`POST /v1/invitations/{invitation_id}/resend`

Requires role admin or higher. Counts against the plan limit members.

Issues a new token and emails it again.

## Authentication

A session token: `Authorization: Bearer <session token>`, or the session cookie in the browser. Requires role `admin` or higher.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `invitation_id` | path | string | yes |  |

## Responses

### 200

A pending invitation and whether its email was sent.

`application/json`

```json
{
  "additionalProperties": false,
  "description": "A pending invitation and whether its email was sent.",
  "properties": {
    "created_at": {
      "format": "date-time",
      "type": "string"
    },
    "email": {
      "type": "string"
    },
    "email_delivered": {
      "description": "False when the email could not be sent; the invitation exists and can be resent.",
      "type": "boolean"
    },
    "expires_at": {
      "format": "date-time",
      "type": "string"
    },
    "id": {
      "pattern": "^inv_[0-7][0-9a-hjkmnp-tv-z]{25}$",
      "type": "string"
    },
    "invited_by": {
      "anyOf": [
        {
          "pattern": "^usr_[0-7][0-9a-hjkmnp-tv-z]{25}$",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "org_id": {
      "pattern": "^org_[0-7][0-9a-hjkmnp-tv-z]{25}$",
      "type": "string"
    },
    "role": {
      "anyOf": [
        {
          "enum": [
            "admin"
          ],
          "type": "string"
        },
        {
          "enum": [
            "member"
          ],
          "type": "string"
        }
      ]
    }
  },
  "required": [
    "id",
    "org_id",
    "email",
    "role",
    "invited_by",
    "expires_at",
    "created_at",
    "email_delivered"
  ],
  "type": "object"
}
```

### 401

unauthorized: no valid session, or the email is not verified.

Problem type: [unauthorized](https://docs.dlogify.com/errors/unauthorized.md).

### 403

csrf-origin-rejected: a cookie-authenticated change from an origin outside the web app. forbidden: the action requires the admin role. plan-limit-reached: the plan's members limit is reached.

Problem type: [csrf-origin-rejected](https://docs.dlogify.com/errors/csrf-origin-rejected.md).

### 404

not-found: the resource does not exist, or the caller is not a member of its organization.

Problem type: [not-found](https://docs.dlogify.com/errors/not-found.md).

### 429

rate-limited: resent less than 60 seconds ago, or the daily invitation emails are used up. rate-limited: per-user management request limit.

Problem type: [rate-limited](https://docs.dlogify.com/errors/rate-limited.md).

## Example

```bash
curl -X POST "https://api.dlogify.com/v1/invitations/{invitation_id}/resend" \
  -H "Authorization: Bearer $DLOGIFY_SESSION"
```

Source: https://docs.dlogify.com/api/invitations/resendInvitation
