Google Identity Platform Password Policy API

The Password Policy API from Google Identity Platform — 1 operation(s) for password policy.

GitHub OpenAPI

Operations 1

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v2/passwordPolicy Get the password policy · Get password policy v2 #
Ask an LLM
“What password policy is set on my project?”
“Can I read the password policy for a specific tenant?”
Tell an agent
Get the password policy.
Show the password policy for tenant {tenantId}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google-identity-platform:google-identity-platform-password-policy-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-identity-platform-password-policy-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Identity Toolkit API V2 Password Policy API
  version: v2
  description: Generated from Google's published Discovery document for Identity Toolkit API (identitytoolkit v2, revision 20261106). 2 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://identitytoolkit.googleapis.com
tags:
- name: Password Policy
paths:
  /v2/passwordPolicy:
    get:
      operationId: identitytoolkit.getPasswordPolicy
      summary: Get password policy v2
      description: Gets password policy config set on the project or tenant.
      parameters:
      - name: tenantId
        in: query
        required: false
        description: The id of a tenant.
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleCloudIdentitytoolkitV2PasswordPolicy'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/cloud-platform
      - apiKey: []
      tags:
      - Password Policy
components:
  schemas:
    GoogleCloudIdentitytoolkitV2PasswordPolicy:
      description: Configuration for password policy.
      type: object
      properties:
        schemaVersion:
          type: integer
          description: Output only. schema version number for the password policy
          readOnly: true
          format: int32
        forceUpgradeOnSignin:
          type: boolean
          description: Users must have a password compliant with the password policy to sign-in.
        enforcementState:
          readOnly: true
          enum:
          - ENFORCEMENT_STATE_UNSPECIFIED
          - 'OFF'
          - ENFORCE
          type: string
          description: Output only. Which enforcement mode to use for the password policy.
        customStrengthOptions:
          $ref: '#/components/schemas/GoogleCloudIdentitytoolkitV2CustomStrengthOptions'
          description: The custom strength options enforced by the password policy.
        allowedNonAlphanumericCharacters:
          type: array
          description: Output only. Allowed characters which satisfy the non_alphanumeric requirement.
          readOnly: true
          items:
            type: string
    GoogleCloudIdentitytoolkitV2CustomStrengthOptions:
      description: Custom strength options to enforce on user passwords.
      properties:
        containsNonAlphanumericCharacter:
          type: boolean
          description: The password must contain a non alpha numeric character.
        minPasswordLength:
          type: integer
          description: Minimum password length. Range from 6 to 30
          format: int32
        containsLowercaseCharacter:
          type: boolean
          description: The password must contain a lower case character.
        containsNumericCharacter:
          description: The password must contain a number.
          type: boolean
        containsUppercaseCharacter:
          description: The password must contain an upper case character.
          type: boolean
        maxPasswordLength:
          type: integer
          format: int32
          description: Maximum password length. No default max length
      type: object
    GoogleRpcError:
      type: object
      description: The error envelope every Google API returns.
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            status:
              type: string
            details:
              type: array
              items:
                type: object
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: key
      description: API key; accepted by methods that do not need user data.
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/auth
          tokenUrl: https://oauth2.googleapis.com/token
          scopes:
            https://www.googleapis.com/auth/firebase: View and administer all your Firebase data and settings
            https://www.googleapis.com/auth/cloud-platform: See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
externalDocs:
  url: https://cloud.google.com/identity-platform
x-provenance:
  method: harvested
  publisher: Google
  source: https://identitytoolkit.googleapis.com/$discovery/rest?version=v2
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261106)