OpenAI Platform whoami
Report which OpenAI API Platform account this browser is signed in as: the account email, name and default organization. Being signed out is reported as a normal answer (loggedIn false), not an error, so it can be used to check a session before running other platform.openai.com scripts.
Input
None
Output
loggedIn requiredname optionalemail optionalorganization optionalFAQ
List OpenAI API invoices
List invoices on the OpenAI API platform billing account (platform.openai.com, api usage/credits — NOT the ChatGPT subscription). Returns id, number, total (cents), currency, status, created_ts, hosted_invoice_url, pdf_url. Covers the past 12 months, as the dashboard does.
OpenAI Platform login (Google SSO)
Log into the OpenAI API Platform (platform.openai.com) with Continue with Google, handling the Google account chooser and consent screen, and wait for OpenAI to finish the sign-in. Returns straight away if you are already signed in, and reports the account email and default organization. A Cloudflare check is waited out (never clicked) and named if it does not clear. Optionally pass which Google account to use. Needs a browser already signed in to Google and a Google account that already has an OpenAI account.
