# Read an invite before accepting it

Source: https://amanucci.com/docs/developers/api/people/previewInvite

## POST /v1/invites/preview

Read an invite before accepting it

What an invite's link says, before anything is spent — PUBLIC, because the token IS the credential: who invited you, to which firm or organisation, in which of the five shapes, and whether it still opens (`open`, `expired`, `revoked`, `accepted`). A token that names nothing is 404 `invite_not_found`. It writes nothing; `acceptInvite` spends the token. An operator in operator mode is 403 `operator-read-only`, as at the accept.

Operation ID: `previewInvite`

### Request body

```json
{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/PreviewInvite"
      }
    }
  }
}
```

### Responses

#### 200 The invite, as its link's holder sees it.

```json
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/InvitePreview"
    }
  }
}
```

#### 403 Authenticated, present, and refused: a missing grant, a missing seat, or a missing step-up.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 404 Absent, or hidden from this asker — the two are indistinguishable (`not-found`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 422 The request did not satisfy the schema (`invalid-input`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 429 Too many requests on this door's bucket (`rate-limited`); refused before any handler ran, `Retry-After` says when to come back.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 503 Temporarily unavailable; `Retry-After` says when to come back.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```
