# Disclosure Configs

The disclosure configuration in `SelfAppBuilder` controls what verification rules are applied and what data users reveal during identity verification.

For the full reference including all available fields, verification rules, data disclosures, code examples, and privacy best practices, see the [Disclosures](/self-pass/disclosures.md) page.

## Quick Reference

```typescript
const app = new SelfAppBuilder({
  // ... other config
  disclosures: {
    // Verification rules (must match backend/contract config exactly)
    minimumAge: 18,
    excludedCountries: ["IRN", "PRK"],
    ofac: true,

    // Data disclosures (frontend only — what users reveal)
    nationality: true,
    gender: true,
    name: false,
    date_of_birth: false,
    passport_number: false,
    expiry_date: false,
    issuing_state: false,
  },
}).build();
```

{% hint style="warning" %}
Verification rules (`minimumAge`, `excludedCountries`, `ofac`) **must exactly match** your backend or smart contract configuration. A mismatch will cause verification to fail. See [Frontend & Backend Alignment](/self-pass/disclosures.md#frontend-and-backend-alignment) for details.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.self.xyz/self-pass/qrcode-sdk/disclosure-configs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
