n8n workflow · Version 1

A TOTP code, ready
for your next step.

Generate a code from your authenticator key, track the Apify run, and check that enough time remains before continuing.

Standard n8n nodes · No community package · No credentials in the download

Import in three steps

  1. Import the JSON

    Download the file. In n8n, choose Import from File and select it. The workflow starts manually and is inactive by default.

    Prefer importing by URL? Use this public JSON URL.

  2. Connect your encrypted credentials

    On Start TOTP run, choose a Custom Auth credential with this JSON. Replace the placeholders inside the credential editor:

    {
      "headers": {"Authorization": "Bearer YOUR_APIFY_API_TOKEN"},
      "body": {"secret": "YOUR_TOTP_SECRET_OR_URI"}
    }

    For Read run status, Read OUTPUT and Read ERRORS, choose a separate Header Auth credential: Name Authorization, Value Bearer YOUR_APIFY_API_TOKEN. Keep the TOTP key out of these GET credentials.

    If your n8n version supports allowed domains, restrict both credentials to api.apify.com. Never put your real key in an exported workflow.

  3. Execute and branch on the result

    Review Settings, select Execute workflow, then connect Result to an IF node that checks ok === true. Only its true branch should use code. Recheck validUntil immediately before using it.

    Use only a key you own or are authorized to use. No login or message delivery is included.

Errors are handled

Expired codes, invalid input and insufficient budget return ok: false without forwarding a code. A green n8n execution alone does not mean a code was issued.

No automatic paid regeneration. If a start or billing reply is lost, inspect the existing Apify run before trying again.

Know the cost

$0.10 per 1,000 delivered codes, plus Apify resources. No subscription or separate Actor start fee. Check current pricing.

A code rejected later by n8n for being too close to expiry may already have incurred a result event. The run budget is not a guarantee of total platform cost.

Tested before sharing

n8n 2.47.7 · Node 24 · 14 November 2026. Twelve fixture scenarios and three real runs against TOTP Generator 0.3.1 passed. The successful code arrived with 9.087 seconds remaining. One successful result registered one event; invalid input and insufficient budget registered zero.

The download is the exact tested JSON. It is an importable example, not an n8n-verified community node. Older releases and n8n Cloud UI were not tested.

SHA256: 491d90eda82b355dd960bdc0c7122ec5bb2c16a82be5a2b6e1eb106418eb9e49

Checksum file

The export contains no credentials or pinned data and disables saving workflow execution history. It does not control every instance log, backup or downstream node. Secrets exist in memory, and Apify OUTPUT follows platform retention rules. This is not a zero-retention service.