Developer & AIvendor:openaiEmail OTPUnwrapped Magic LinkCarrier SMS DIDCloud KMS TOTP

Automate OpenAI & ChatGPT Email OTP, SMS & TOTP in Playwright

Automate OpenAI Platform & ChatGPT email verification codes, magic links, SMS phone verification, and KMS TOTP for unattended agent workflows.

Curated Stage 4 Extractor Profile (vendor:openai)

Matches 6-digit OpenAI/ChatGPT log-in codes across `openai.com` and `tm.openai.com` plus `auth.openai.com` / `auth0.openai.com` links while filtering out API usage invoices and billing receipts.

Matched Sender Domains
openai.comtm.openai.com
Login URL example: https://platform.openai.com/login
Filtered Non-Auth Noise
  • Monthly API usage invoice & spend alerts
  • Receipt from OpenAI

1. 60-Second Gmail & Outlook Auto-Forwarding Filter

Don't want to change your existing account email on OpenAI & ChatGPT? Keep your corporate inbox on OpenAI & ChatGPT and forward only verification emails to <identity-slug>@in.sentryrelay.com. Sentry Relay's Stage 2 unwrapper preserves the original OpenAI & ChatGPT sender header automatically (full setup guide).

# Paste into Gmail -> Settings -> Filters -> Create a new filter ("Has the words")
from:(openai.com OR tm.openai.com) ("verification code" OR "log-in code" OR "ChatGPT code" OR "one-time code")

# Action: Forward it to -> <your-identity-slug>@in.sentryrelay.com

2. Copy-Paste OpenAI & ChatGPT 2FA Automation Snippets

Choose your browser automation stack below. All snippets resolve codes in <200ms with Upstash Redis 15-second lookback protection so arrived-before-wait race conditions never fail a run.

import { test, expect } from '@playwright/test';
import { SentryRelay } from '@sentryrelay/sdk';

const relay = new SentryRelay({ apiKey: process.env.SENTRY_RELAY_API_KEY! });

test('Automate OpenAI Platform email OTP or magic link login', async ({ page }) => {
  await page.goto('https://platform.openai.com/login');
  await page.fill('input[type="email"]', 'openai-bot@in.sentryrelay.com');
  await page.click('button[type="submit"]');

  const auth = await relay.wait('openai-bot', {
    sender: 'openai.com',
    timeout: 30,
  });

  if (auth.event?.otpCode) {
    await page.fill('input[name="code"]', auth.event.otpCode);
    await page.click('button[type="submit"]');
  } else if (auth.event?.magicLink) {
    await page.goto(auth.event.magicLink);
  }

  await expect(page).toHaveURL(/platform\.openai\.com|chatgpt\.com/);
});

3. OpenAI & ChatGPT Production Gotchas

Frequently Asked Questions

Does Sentry Relay match emails from tm.openai.com?
Yes. Both openai.com and tm.openai.com are included in the vendor:openai rule.
Does OpenAI billing email noise affect extraction?
No. API usage invoices and receipts from OpenAI are explicitly disqualified before OTP extraction.
Can I use the same Identity for ChatGPT TOTP MFA?
Yes. Store your ChatGPT TOTP secret in the Identity's Cloud KMS vault and retrieve live codes via relay.totp.get().
Provision an Isolated Identity for OpenAI & ChatGPT

Start free in 3 minutes with @in.sentryrelay.com email + Simulated SMS, or attach a dedicated US carrier Telnyx SMS DID starting on Builder ($29/mo) and Growth/Pro ($79/mo).