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

# Generate MFA Token

Generate a temporary MFA token that can be used in place of other MFA tokens for a set time period.

**Required Scope**: `Manage users` or `Manage All`.

<Note>
  External Documentation

  To learn more, visit the [OneLogin documentation](https://developers.onelogin.com/api-docs/2/multi-factor-authentication/generate-mfa-token).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter  | Description                                                                                                                                          |
  | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Expires In | The duration of the token in seconds.<br /><br />Defaults to `259200` seconds (72 hours). Valid range is `120`-`259200`.                             |
  | Reusable   | Select to allow the token to be used multiple times within the expiry window.<br /><br />When not selected, the token is invalid after a single use. |
  | User ID    | The ID of the user.                                                                                                                                  |
</div>

## Example Output

```json theme={"dark"}
{
	"mfa_token": "25992782",
	"expires_at": "2021-07-27T23:25:50Z",
	"reusable": false,
	"device_id": "user_temp_otp_36216766"
}
```

## Workflow Library Example

[Generate Mfa Token with Onelogin and Send Results Via Email](https://library.blinkops.com/workflows/generate-mfa-token-with-onelogin-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/generate-mfa-token-with-onelogin-and-send-results-via-email/canvas" />
</div>
