> For the complete documentation index, see [llms.txt](https://support.portsip.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.portsip.com/development-portsip/rest-apis/version-22.9/dealer.md).

# Dealer

## Get Dealer Password Policy

> Get the password policy for dealers.

```json
{"openapi":"3.1.0","info":{"title":"PortSIP PBX Rest API","version":"22.8"},"tags":[],"servers":[{"url":"{protocol}://{hostname}:{port}/api","variables":{"protocol":{"description":"Self-hosted Enterprise Server protocol.","default":"https"},"hostname":{"description":"Self-hosted Enterprise Server hostname.","default":"HOSTNAME"},"port":{"description":"Self-hosted Enterprise Server port.","default":"8887"}}}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"}}},"paths":{"/dealer/password_policy":{"get":{"tags":["Dealer"],"summary":"Get Dealer Password Policy","description":"Get the password policy for dealers.","operationId":"getDealerPasswordPolicy","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"min_length":{"type":"integer","format":"int32","minimum":6,"maximum":32,"default":6,"description":"The password must contains at least `min_length` characters.  \nMust be less than or equal the value of `max_length`.\n"},"max_length":{"type":"integer","format":"int32","minimum":6,"maximum":32,"default":32,"description":"The password must contains at most `max_length` characters.  \nMust be greater than or equal the value of `min_length`.\n"},"contains_letters":{"type":"boolean","default":true,"description":"The password must contains at least one letter (latin characters).\n"},"contains_numbers":{"type":"boolean","default":true,"description":"The password must contains at least one number (0-9).\n"},"contains_special_letters":{"type":"boolean","default":true,"description":"The password must contains at least one upper case letter or special character (e.g. ~,!,@,#,$,%,^,&,*,(,),_,+,=).\n"},"disable_sequential_characters":{"type":"boolean","default":true,"description":"The password must not contains sequential_characters.\n"},"disable_repeating_characters":{"type":"boolean","default":true,"description":"The password must not contains repeating_characters.\n"},"disable_account_information":{"type":"boolean","default":true,"description":"The password must not similar to the account information.\n"}},"required":["min_length","max_length","contains_letters","contains_numbers","contains_special_letters","disable_sequential_characters","disable_repeating_characters","disable_account_information"]}}}},"401":{"description":"Unauthorized"},"500":{"description":"Internal Server Error"}}}}}}
```
