# Get Account Settings

Reads editable account switches, preview marker tag and email blacklist. Inaccessible settings are absent, not false; connected-service credentials are reported only as configured or not, never by value. Personal, privacy, legal and sender-address settings are excluded.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "User ID of the account; omit for the account the access token works in",
      "default": null,
      "minimum": 1
    }
  },
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "accountId",
    "settings",
    "credentials",
    "editUrl"
  ],
  "properties": {
    "accountId": {
      "type": "integer"
    },
    "settings": {
      "type": "object",
      "description": "The settings this account may edit; one this account may not edit is absent",
      "additionalProperties": {
        "type": [
          "boolean",
          "string",
          "null"
        ]
      }
    },
    "credentials": {
      "type": "object",
      "description": "Per service, whether credentials are stored -- never the credentials themselves",
      "additionalProperties": {
        "type": "boolean"
      }
    },
    "editUrl": {
      "type": "string"
    },
    "refusals": {
      "type": "object",
      "description": "Rejected preferences from an attempted update; other changes may already be applied in settings",
      "additionalProperties": {
        "type": "string"
      }
    }
  }
}
```

