Lucidchart login (Google SSO)
Log into Lucid (Lucidchart) using your connected Google account. Lands on the Lucid documents home; returns early if already signed in.
Input
email optionalGoogle account to pick if Google shows an account chooser. Omit to use the single signed-in account.
Output
url requiredloggedIn requiredaccount optionalFAQ
List Lucid (Lucidchart) invoices
List Lucid (Lucidchart/Lucidspark) billing invoices, returning total plus each invoice's date, number, description and amount — metadata only. Feed a row's number to lucid.app/download_invoice to fetch that invoice's PDF. Works whatever language the account is set to. An account with no invoices returns an empty list, and a billing page that never finishes loading is reported as an error rather than passed off as an empty one.
Download a Lucid invoice PDF
Download one Lucid (Lucidchart/Lucidspark) billing invoice PDF, given the invoice number that lucid.app/list_invoices returns. Returns the filename plus the PDF bytes as base64 (decode and write it yourself). A number that does not match an invoice fails with a clear error. Works whatever language the account is set to. Pass pdfUrl (returned by a previous run) instead of number to download it directly.
Lucid whoami (signed-in account)
Report which Lucid (Lucidchart / Lucidspark) account this browser is signed in as: the user id, email and name. 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 Lucid scripts.
