# The workspace's sign-in settings

GET

/v1/auth/settings

```sh
curl --request GET \
  --url https://example.com/v1/auth/settings \
  --header 'Authorization: Bearer <token>'
```

Whether signing in takes a second factor, and how many people’s keys are still on the deployment’s previous sign-in secret, or on neither. Tenant admins only. Mounted when the deployment keeps second factors (from 0.1.9).

## Authorizations

- **[bearerAuth](https://docs.kindgi.com/v0.1.9/reference/api.md#bearerauth)**

## Responses

### 200

The settings.

application/json

The workspace’s sign-in settings.

object

**secondFactor**

required

object

**required**

required

Signing in by the deployment’s own ways in takes a second factor. Signing in through the workspace’s own identity provider is exempt: it owns MFA there. A site’s people sign in through the site, which owns their second factor, so the setting doesn’t apply to them. API keys aren’t covered.

boolean

**onPreviousSecret**

required

People whose key is still kept under the deployment’s previous sign-in secret: each moves to the current one at their next code. Keep the previous secret configured until this is 0.

integer

**unusable**

required

People whose key opens under neither secret: they need a recovery code, or an admin to remove it.

integer

##### Examplegenerated

```json
{
  "secondFactor": {
    "required": true,
    "onPreviousSecret": 1,
    "unusable": 1
  }
}
```

### 401

Missing / malformed / expired / revoked bearer token.

application/json

object

**error**

required

object

**code**

required

Stable machine-readable discriminant. Values match domain error codes (see `docs/API-ROUTE-CONVENTIONS.md` §4.3).

string

**message**

required

string

**details**

Optional, kind-specific.

object

**_key_**

additional properties

any

**requestId**

required

Server-assigned request id; also echoed via `X-Request-Id` header.

string

##### Examplegenerated

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

### 403

Not a tenant admin.

application/json

object

**error**

required

object

**code**

required

Stable machine-readable discriminant. Values match domain error codes (see `docs/API-ROUTE-CONVENTIONS.md` §4.3).

string

**message**

required

string

**details**

Optional, kind-specific.

object

**_key_**

additional properties

any

**requestId**

required

Server-assigned request id; also echoed via `X-Request-Id` header.

string

##### Examplegenerated

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

## See also

- [`PATCH /v1/auth/settings`: Require a second factor at sign-in](https://docs.kindgi.com/v0.1.9/reference/api/operations/authsettingsupdate.md)
- [Every error code](https://docs.kindgi.com/v0.1.9/reference/errors.md)
