Who am I (ChatGPT)
Report which ChatGPT account the browser is signed into: id, name, email, picture, identity provider — or loggedIn:false when the browser is anonymous. Reads the session endpoint the app itself hydrates auth from; never returns the session's access token.
Input
None
Output
user requiredThe signed-in account; null when the browser is anonymous.
loggedIn requiredFAQ
Ask ChatGPT
Open a new ChatGPT chat, send one question, wait for generation to finish (up to 3 min), and return what the model answered, every source it cited, and — where ChatGPT exposes them — the searches it ran to get there. Answers come back as a list, not one string. ChatGPT sometimes serves a paired-response variant that answers the same question twice and asks which reply you prefer; that returns two entries and neither is more official than the other. Read the length before reading answers[0]. Text is as rendered, so a citation chip appears inline as its publisher's name and mathematical notation linearizes lossily. `references` is every page the answer CITED — publisher, title and url, deduplicated and in the order the answer surfaced them. Deliberately not everything the search retrieved: signed in, ChatGPT looks through a pool that routinely runs past a hundred pages and stands on a handful, and reporting the pool here would make the field mean one thing signed in and another signed out. An empty list means that reply did not search, which is a fact about the reply rather than a failure — the same question searches on one run and not the next, so repeat a question before concluding anything from it. `webSearchQueries` is what ChatGPT actually typed into its search, in order. Only the signed-in application reports this; signed out it is empty. Runs on a Reduck cloud browser and on your own paired browser alike. ChatGPT serves a different application to each — being signed in is what picks between them — and this drives both without asking which is on screen, so neither the display language nor a consent banner affects it. Signed out is the one to use for measuring what ChatGPT tells a stranger: an account's saved memory otherwise biases the answer toward whatever you discussed with it before.
List ChatGPT invoices
List the billing history of the signed-in ChatGPT account: every invoice with its date, amount, currency, payment status, the plan it paid for, and a link to the receipt. The full history is returned, not only the most recent entries. Amounts come back in the currency's smallest unit, so 1917 means 19.17 EUR. An account that has never been billed returns an empty list. Feed hosted_invoice_url to invoice.stripe.com/download_invoice_pdf to fetch the PDF.
OpenAI (ChatGPT) login (Google SSO)
Log into OpenAI / ChatGPT via Google SSO — picks the right account when several are signed in, and does nothing if you're already logged in. If Google interrupts the flow with a password re-confirmation or a 2FA step-up, the script can't complete that step on its own; sign in once manually in the same browser to clear the step-up, then re-run. It may also occasionally fail to complete a fresh login due to the site's own anti-automation checks — if that happens, try again shortly.
