> For the complete documentation index, see [llms.txt](https://help.aximo.autify.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aximo.autify.com/memories/shared-memories/memory-otps.md).

# OTPs

Use OTPs when you want to save settings for generating two-factor authentication codes in a workspace.

{% hint style="info" %}
Reference OTPs with `{{OTP:NAME}}`. The name follows the same format as variables. The secret accepts a Base32 string or an `otpauth://` URI.
{% endhint %}

## Add an OTP

1. On the **OTPs** tab, click **New OTP**.
2. In **Name**, enter an OTP name.
3. In **Secret**, enter a Base32 secret or an `otpauth://` URI.
4. Optionally, open **Advanced options** and update **Algorithm**, **Digits**, and **Period (sec)**.
5. Click **Done**.

{% hint style="info" %}
When you paste an `otpauth://` URI, Aximo fills in a suggested name based on the issuer information, along with the algorithm, digits, and period.
{% endhint %}

## Reference in sessions and cases

Reference saved OTPs from session and case scenarios with `{{OTP:NAME}}`, where `NAME` is the OTP name. At run time, Aximo generates a valid code from the saved secret. On the new session screen and new case screen, you can select an existing OTP from the **Insert memory** menu to insert a token at the cursor position.

1. Click **Insert memory**  below **Test instructions**.
2. Hover over **OTPs** and select the OTP to insert.
3. Confirm that a `{{OTP:NAME}}` token is inserted at the cursor position.

{% hint style="info" %}
You can also reference OTPs by typing a `{{OTP:NAME}}` token directly.
{% endhint %}

For how to create sessions and cases, see [Test session](/test-case-creation/create-test-session.md) and [Create cases](/test-case-creation/create-test-case.md).

## Check the current code

1. On the **OTPs** tab, click the key icon in the row of the target OTP.
2. In the notification displayed on the screen, check the current code and the remaining valid seconds.

## Update or delete an OTP

1. On the **OTPs** tab, click the row of the OTP you want to update.
2. Update **Name**.
3. To change the secret, enter a new value in **Secret**.
4. Update the **Advanced options** values as needed.
5. Click **Done**.
6. To delete, click the delete icon on the right of the target row, then click **Delete** in the confirmation dialog.

## Further reading

* [About memories](/memories/memory-overview.md)
