# Prove you are here

Source: https://amanucci.com/nl/docs/developers/api/step-up/stepUp

## POST /v1/step-up

Prove you are here

Verify the code and stamp presence on THIS session — `session.stepped_up_at`, the one mutable auth column. A session that merely signed in carries `null` there forever: signing in proves you hold the mailbox, stepping up proves you are here now. The code is consumed, so a presence claim can never be replayed. In operator mode a support operator is 403 `operator-read-only`; an admin's step-up passes as her own presence.

Operation ID: `stepUp`

### Request body

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

### Responses

#### 200 Presence proven, and when it lapses.

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

#### 401 Dead or absent credential (`unauthenticated`).

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

#### 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"
    }
  }
}
```

#### 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"
    }
  }
}
```
