> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fincode.technology/llms.txt
> Use this file to discover all available pages before exploring further.

# Password Policy

> Retrieves the organization's current password complexity and validity rules.

Retrieves the current rules and restrictions for user passwords, including minimum length, required characters, and expiration settings. This endpoint helps client applications enforce correct password creation and updates.

## Request Headers

This endpoint is typically **public** and **does not require an Access Token** for authorization, relying on the organization domain provided in the URL.

<ParamField header="platform" type="string" required default="fincode">
  Platform identifier. Use `fincode`.
</ParamField>

<ParamField header="uuid" type="string" required default="200">
  Unique request identifier.
</ParamField>

## Code Examples

<CodeGroup>
  ```bash cURL theme={null}
  curl --location 'https://remitjunction.fincode.software/api/v6/services/admin/security/view-password-policy' \
  --header 'platform: fincode' \
  --header 'uuid: 200'
  ```

  ```javascript Node.js theme={null}
  const axios = require('axios');

  const BASE_URL =
    'https://remitjunction.fincode.software/api/v6/services/admin/security';

  async function viewPasswordPolicy() {
    try {
      const response = await axios.get(`${BASE_URL}/view-password-policy`, {
        headers: {
          platform: 'fincode',
          uuid: '200',
        },
      });

      console.log('Password Policy fetched successfully!');
      console.log('Minimum Length:', response.data.minimumLength);
      console.log('Requires Digit:', response.data.requiresDigit);
      return response.data;
    } catch (error) {
      console.error(
        'Failed to fetch password policy:',
        error.response?.data || error.message
      );
      throw error;
    }
  }

  viewPasswordPolicy();
  ```
</CodeGroup>


## OpenAPI

````yaml GET /admin/security/view-password-policy
openapi: 3.0.0
info:
  title: FinCode API
  version: v6
servers:
  - url: https://{tenant}.fincode.software/api/v6/services
    description: API v6
    variables:
      tenant:
        default: remitjunction
        description: Enter your tenant subdomain
  - url: https://{tenant}.fincode.software/api/v1/services
    description: API v1
    variables:
      tenant:
        default: finlend
        description: Enter your tenant subdomain
  - url: https://api.stag.songhaiexchange.io
    description: Songhai Exchange API
security: []
paths:
  /admin/security/view-password-policy:
    get:
      summary: View Password Policy
      description: Views the password policy.
      operationId: viewPasswordPolicy
      parameters:
        - $ref: '#/components/parameters/platformHeader'
        - $ref: '#/components/parameters/uuidHeader'
        - in: header
          name: X-Auth-Token
          schema:
            type: string
          required: true
      responses:
        '200':
          description: Password policy
components:
  parameters:
    platformHeader:
      in: header
      name: platform
      schema:
        type: string
        default: fincode
      required: true
    uuidHeader:
      in: header
      name: uuid
      schema:
        type: string
        default: '200'
      required: true

````