To respond to the USERNAME_PASSWORD_REQUIRED flow state, the user initiates the usernamePassword.check action. The flow service calls the POST /{environmentId}/flows/{flowId} endpoint operation and uses the application/vnd.pingidentity.usernamePassword.check+json custom media type in the Content-type HTTP request header to identify the action.

The request body requires the username and password properties, which specify the user’s login credentials. In this workflow, if the usernamePassword.check action completes successfully, the flow returns a status value of COMPLETED.