The Litmus (OAuth) connector lets your AI agent act in each user's Litmus (OAuth) account. Each user signs in to Litmus (OAuth) once, and Scalekit stores and refreshes their tokens, so your agent never handles credentials. It comes with 24 tools.
- Tools
- 24
- What they doRead · write · destructive
- 13 · 10 · 113 read10 write1 destructive
- Users sign in with
- OAuth
- OAuth app
- Your own Litmus (OAuth) app
Setup
Install the SDK
Terminal window npm install @scalekit-sdk/node dotenvTerminal window pip install scalekit-sdk-python python-dotenvSet your credentials
Add your Scalekit credentials to your
.envfile. Find values in app.scalekit.com > Developers > API Credentials..env SCALEKIT_ENVIRONMENT_URL=<your-environment-url>SCALEKIT_CLIENT_ID=<your-client-id>SCALEKIT_CLIENT_SECRET=<your-client-secret>Create the Litmus (OAuth) connection
In AgentKit > Connections, create a Litmus (OAuth) connection and copy its redirect URI. The name you give it is the
connection_nameyour code passes. See Configure connections.Register an OAuth app
Litmus (OAuth) connections use your own OAuth app. Register one with Litmus (OAuth) and add the redirect URI you copied.
Then enter the app's Client ID and Client Secret on the Litmus (OAuth) connection.
Authorize a user and make your first call
quickstart.mts import { ScalekitClient } from '@scalekit-sdk/node'import 'dotenv/config'import { createInterface } from 'node:readline/promises'const scalekit = new ScalekitClient(process.env.SCALEKIT_ENVIRONMENT_URL,process.env.SCALEKIT_CLIENT_ID,process.env.SCALEKIT_CLIENT_SECRET,)const actions = scalekit.actionsconst connector = 'litmusoauth'const identifier = 'user_123'// Generate an authorization link for the userconst { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })console.log('Authorize Litmus (OAuth):', link)const rl = createInterface({ input: process.stdin, output: process.stdout })await rl.question('Press Enter after authorizing...')rl.close()// Make your first callconst result = await actions.executeTool({connector,identifier,toolName: 'litmusoauth_guardian_emails_list',toolInput: {},})console.log(result)Terminal window npx tsx quickstart.mtsquickstart.py import osfrom scalekit import ScalekitClientfrom dotenv import load_dotenvload_dotenv()scalekit_client = ScalekitClient(env_url=os.getenv("SCALEKIT_ENVIRONMENT_URL"),client_id=os.getenv("SCALEKIT_CLIENT_ID"),client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),)actions = scalekit_client.actionsconnection_name = "litmusoauth"identifier = "user_123"# Generate an authorization link for the userlink_response = actions.get_authorization_link(connection_name=connection_name,identifier=identifier,)print("Authorize Litmus (OAuth):", link_response.link)input("Press Enter after authorizing...")# Make your first callresult = actions.execute_tool(tool_input={},tool_name="litmusoauth_guardian_emails_list",connection_name=connection_name,identifier=identifier,)print(result)Terminal window python quickstart.pyEach user signs in once. See Authorize a user for the full flow and statuses.
Tools
Pass the exact name toexecute_toollitmusoauth_accessibility_check_getGet the results of accessibility checks on an email.Read-onlyGet Accessibility Check Results
Get the results of accessibility checks on an email. Returns meta.state (pending or complete) and, when complete, the number of checks, the passes and the failures with rule, description, standards (for example WCAG 2AA), impact and the offending HTML snippets. Use litmusoauth_accessibility_check_get to poll after litmusoauth_accessibility_check_create. Polling while pending does not count against the rate limit. Uses the OAuth connection (Litmus v3 API, early access).
Inputs
email_guidstringrequired- GUID returned by litmusoauth_accessibility_check_create. Example: 5c0e3f6a-0b8e-4d0f-9c55-2f1b8a7d9e10.
litmusoauth_guardian_email_result_getGet the latest Email Guardian monitoring result for an enrolled email.Read-onlyGet Email Guardian Result
Get the latest Email Guardian monitoring result for an enrolled email. Returns, per email client, a screenshot URL and change level (major, minor or noChange), per link the destination, screenshot, status (ok or broken) and error, and checked-at. Use litmusoauth_guardian_email_result_get to see whether rendering or links changed. Uses the OAuth connection (Litmus v3 API, early access).
Inputs
email_idstringrequired- ID of the enrolled Email Guardian email, from litmusoauth_guardian_email_enroll or litmusoauth_guardian_emails_list. Example: 11.
litmusoauth_guardian_emails_listList every email enrolled in Email Guardian.Read-onlyList Email Guardian Emails
List every email enrolled in Email Guardian. Returns enrolled emails with their IDs, plus first and last page links. Use litmusoauth_guardian_emails_list for all users. Use litmusoauth_guardian_user_emails_list for one integration user. Uses the OAuth connection (Litmus v3 API, early access).
Inputs
page_numberinteger- Page number, starting at 1. Example: 1.
page_sizeinteger- Results per page (default 20). Example: 20.
litmusoauth_guardian_user_emails_listList the emails one integration user has enrolled in Email Guardian.Read-onlyList Integration User's Guardian Emails
List the emails one integration user has enrolled in Email Guardian. Returns that user's enrolled emails with their IDs, plus page links. Use litmusoauth_guardian_user_emails_list for one end user. Use litmusoauth_guardian_emails_list for everyone. Uses the OAuth connection (Litmus v3 API, early access).
Inputs
integration_user_idstringrequired- ID of the integration user (your end user) you act for, from litmusoauth_integration_user_create. Example: 1.
page_numberinteger- Page number, starting at 1. Example: 1.
page_sizeinteger- Results per page (default 20). Example: 20.
litmusoauth_personalize_calendar_event_previewRender a preview of a Litmus Personalize calendar event while you adjust its settings; nothing is published.Read-onlyPreview Calendar Event
Render a preview of a Litmus Personalize calendar event while you adjust its settings; nothing is published. Returns a button image URL and add-to-calendar links (ics, Google, Outlook, Apple, AOL, Yahoo). Use litmusoauth_personalize_calendar_event_preview while designing. Use litmusoauth_personalize_calendar_event_publish for the version that goes in the email. Uses the OAuth connection (Litmus v3 API, early access).
Inputs
attributesobjectrequired- The calendar event settings, sent as data.attributes. Give templateId, event (title, startDatetime, endDatetime unless allDay, description, location, allDay) and button styling (text, cornerRadius, fontFamily, fontSize, borderWidth, width, height and hex colors background, text, border). Example: {"templateId": "default_calendar_event", "event": {"title": "Tea Time!", "startDatetime": "2030-09-16 15:00:00", "endDatetime": "2030-09-16 16:00:00", "allDay": false}, "button": {"text": "Accept Invite", "cornerRadius": 8}}.
litmusoauth_personalize_conditional_image_previewRender a preview of a Litmus Personalize conditional image while you adjust its settings; nothing is published.Read-onlyPreview Conditional Image
Render a preview of a Litmus Personalize conditional image while you adjust its settings; nothing is published. Returns the preview image URL and click URL. Use litmusoauth_personalize_conditional_image_preview while designing. Use litmusoauth_personalize_conditional_image_publish for the version that goes in the email. Uses the OAuth connection (Litmus v3 API, early access).
Inputs
attributesobjectrequired- The conditional image settings, sent as data.attributes. Give templateId, parameterName (the URL parameter compared against the rules), rules (each with imageUrl, operator such as equals, does not equal, contains, does not contain, empty, is not empty, is in or is not in, value and clickUrl), fallback (imageUrl and clickUrl) and, for previews, mergeTag (the value to preview). Example: {"templateId": "default_conditional_images", "parameterName": "cheese", "rules": [{"imageUrl": "https://example.com/swiss.png", "operator": "equals", "value": "swiss", "clickUrl": "https://example.com/swiss"}], "fallback": {"imageUrl": "https://example.com/default.png", "clickUrl": "https://example.com/"}}.
litmusoauth_personalize_progress_bar_previewRender a preview of a Litmus Personalize progress bar while you adjust its settings; nothing is published.Read-onlyPreview Progress Bar
Render a preview of a Litmus Personalize progress bar while you adjust its settings; nothing is published. Returns a preview image URL. Use litmusoauth_personalize_progress_bar_preview while designing. Use litmusoauth_personalize_progress_bar_publish for the version that goes in the email. Uses the OAuth connection (Litmus v3 API, early access).
Inputs
attributesobjectrequired- The progress bar settings, sent as data.attributes. Give templateId, minimumValue and maximumValue (integers), hex colors (background, progressFill, progressBackground, progressValue, minimumValue, maximumValue) and, for previews, preview.progressValue. Example: {"templateId": "linear_progress_bar", "minimumValue": 0, "maximumValue": 100, "colors": {"background": "#FFFFFF", "progressFill": "#40DC59"}, "preview": {"progressValue": 75}}.
litmusoauth_personalize_sentiment_tracker_previewRender a preview of a Litmus Personalize sentiment tracker while you adjust its settings; nothing is published.Read-onlyPreview Sentiment Tracker
Render a preview of a Litmus Personalize sentiment tracker while you adjust its settings; nothing is published. Returns preview image URLs for each option. Use litmusoauth_personalize_sentiment_tracker_preview while designing. Use litmusoauth_personalize_sentiment_tracker_publish for the version that goes in the email. Uses the OAuth connection (Litmus v3 API, early access).
Inputs
attributesobjectrequired- The sentiment tracker settings, sent as data.attributes. Give templateId, hex colors.resultsValue and, when publishing, url (where voters are redirected). Example: {"templateId": "emoji_sentiment_tracker", "url": "https://example.com/thanks", "colors": {"resultsValue": "#000000"}}.
litmusoauth_personalize_sentiment_tracker_report_getGet the vote results of a published sentiment tracker.Read-onlyGet Sentiment Tracker Report
Get the vote results of a published sentiment tracker. Returns totalClicks and, per option, clickCount and clickPercent. Use litmusoauth_personalize_sentiment_tracker_report_get after sending an email with a tracker from litmusoauth_personalize_sentiment_tracker_publish. Uses the OAuth connection (Litmus v3 API, early access).
Inputs
tracker_idstringrequired- ID of the published sentiment tracker. Example: 3.
litmusoauth_personalize_template_getGet one Litmus Personalize template.Read-onlyGet Personalize Template
Get one Litmus Personalize template. Returns its ID, contentType and supported color attributes. Use litmusoauth_personalize_template_get to see which colors a template accepts. Uses the OAuth connection (Litmus v3 API, early access).
Inputs
template_idstringrequired- Template identifier, from litmusoauth_personalize_templates_list. Example: default_timer.
litmusoauth_personalize_templates_listList Litmus Personalize templates, optionally for one content type.Read-onlyList Personalize Templates
List Litmus Personalize templates, optionally for one content type. Returns each template's ID, contentType and the color attributes it supports. Use litmusoauth_personalize_templates_list to pick a templateId for the preview and publish tools. Uses the OAuth connection (Litmus v3 API, early access).
Inputs
content_typestring- Only templates of this content type, for example timers or sentiment_trackers. Example: timers.
litmusoauth_personalize_timer_previewRender a preview of a Litmus Personalize countdown timer while you adjust its settings; nothing is published.Read-onlyPreview Countdown Timer
Render a preview of a Litmus Personalize countdown timer while you adjust its settings; nothing is published. Returns image URLs for the countdown, expiration and fallback variants. Use litmusoauth_personalize_timer_preview while designing. Use litmusoauth_personalize_timer_publish for the version that goes in the email. Uses the OAuth connection (Litmus v3 API, early access).
Inputs
attributesobjectrequired- The countdown timer settings, sent as data.attributes. Give templateId, countdown.time (future ISO 8601 UTC target), expiration.message (shown at zero), optional fallback.message (for Apple Mail Privacy Protection), font (Montserrat, Open Sans, Roboto, Lato, Poppins, Noto Sans, Source Serif 4, Lora, PT Serif, Noto Serif or Roboto Slab) and hex colors (background, label_text, digits_text). Example: {"templateId": "default_timer", "countdown": {"time": "2027-02-09T00:00:00Z"}, "expiration": {"message": "The sale has ended."}, "fallback": {"message": "Sale ends on November 20th!"}, "font": "Roboto", "colors": {"background": "#33A8CC", "label_text": "#FFFFFF", "digits_text": "#000000"}}.
litmusoauth_ping_authenticatedCheck that the Litmus v3 API accepts the connection's access token.Read-onlyCheck Litmus Connection
Check that the Litmus v3 API accepts the connection's access token. Returns pong with the token's remaining lifetime and scopes, and the OAuth application's name and UID. Use litmusoauth_ping_authenticated to verify the OAuth connection before other v3 tools. Uses the OAuth connection (Litmus v3 API, early access).
Inputs
This tool takes no inputs.
litmusoauth_accessibility_check_createSubmit an email's HTML for accessibility checks (WCAG and email best practices).WriteRun Accessibility Checks
Submit an email's HTML for accessibility checks (WCAG and email best practices). Returns the email GUID used to fetch the results; the checks run in the background. Use litmusoauth_accessibility_check_create, then poll litmusoauth_accessibility_check_get until meta.state is complete. Uses the OAuth connection (Litmus v3 API, early access).
Inputs
htmlstringrequired- The full HTML of the email to check. Example: <html><body><h1>Spring sale</h1></body></html>.
litmusoauth_guardian_email_enrollEnroll an email in Email Guardian, which keeps monitoring its rendering, links and images for changes.WriteEnroll Email in Email Guardian
Enroll an email in Email Guardian, which keeps monitoring its rendering, links and images for changes. Returns the enrolled email's ID. Use litmusoauth_guardian_email_enroll for emails that keep being sent (welcome, transactional). Read changes with litmusoauth_guardian_email_result_get or a webhook from litmusoauth_guardian_webhook_create. Uses the OAuth connection (Litmus v3 API, early access).
Inputs
htmlstringrequired- The full HTML of the email to monitor. Example: <html><body><h1>Spring sale</h1></body></html>.
integration_user_idstringrequired- ID of the integration user (your end user) you act for, from litmusoauth_integration_user_create. Example: 1.
litmusoauth_guardian_webhook_createRegister a webhook that Email Guardian POSTs to when it detects a major rendering or link change.WriteRegister Email Guardian Webhook
Register a webhook that Email Guardian POSTs to when it detects a major rendering or link change. Returns the webhook's ID and URL. Use litmusoauth_guardian_webhook_create once, then check it with litmusoauth_guardian_webhook_test. Unregistering is not available in the API yet. Uses the OAuth connection (Litmus v3 API, early access).
Inputs
urlstringrequired- HTTPS URL that will receive JSON:API change notifications. Example: https://example.com/litmus-webhook.
litmusoauth_guardian_webhook_testAsk Litmus to send a sample notification to a registered webhook.WriteSend Email Guardian Test Notification
Ask Litmus to send a sample notification to a registered webhook. Returns 204 No Content; the sample arrives at your webhook. Use litmusoauth_guardian_webhook_test after litmusoauth_guardian_webhook_create to check your endpoint handles link_change and client_change documents. Uses the OAuth connection (Litmus v3 API, early access).
Inputs
change_typestringrequired- Which sample to send: link_change or client_change. Example: link_change.one of
link_changeclient_change webhook_idstringrequired- ID of the webhook, from litmusoauth_guardian_webhook_create. Example: 7.
litmusoauth_integration_user_createCreate an anonymous integration user that represents one of your end users in Litmus.WriteCreate Integration User
Create an anonymous integration user that represents one of your end users in Litmus. Returns the integration user's ID. Use litmusoauth_integration_user_create once per end user, then pass its ID to litmusoauth_guardian_email_enroll. Uses the OAuth connection (Litmus v3 API, early access).
Inputs
This tool takes no inputs.
litmusoauth_personalize_calendar_event_publishPublish a Litmus Personalize calendar event for use in a live email.WritePublish Calendar Event
Publish a Litmus Personalize calendar event for use in a live email. Returns a button image URL and add-to-calendar links (ics, Google, Outlook, Apple, AOL, Yahoo). Use litmusoauth_personalize_calendar_event_publish when the design is final; the request body is the same as litmusoauth_personalize_calendar_event_preview. Uses the OAuth connection (Litmus v3 API, early access).
Inputs
attributesobjectrequired- The calendar event settings, sent as data.attributes. Give templateId, event (title, startDatetime, endDatetime unless allDay, description, location, allDay) and button styling (text, cornerRadius, fontFamily, fontSize, borderWidth, width, height and hex colors background, text, border). Example: {"templateId": "default_calendar_event", "event": {"title": "Tea Time!", "startDatetime": "2030-09-16 15:00:00", "endDatetime": "2030-09-16 16:00:00", "allDay": false}, "button": {"text": "Accept Invite", "cornerRadius": 8}}.
litmusoauth_personalize_conditional_image_publishPublish a Litmus Personalize conditional image for use in a live email.WritePublish Conditional Image
Publish a Litmus Personalize conditional image for use in a live email. Returns an image URL and click URL that take the parameter value as a merge tag. Use litmusoauth_personalize_conditional_image_publish when the design is final; the request body is the same as litmusoauth_personalize_conditional_image_preview. Uses the OAuth connection (Litmus v3 API, early access).
Inputs
attributesobjectrequired- The conditional image settings, sent as data.attributes. Give templateId, parameterName (the URL parameter compared against the rules), rules (each with imageUrl, operator such as equals, does not equal, contains, does not contain, empty, is not empty, is in or is not in, value and clickUrl), fallback (imageUrl and clickUrl) and, for previews, mergeTag (the value to preview). Example: {"templateId": "default_conditional_images", "parameterName": "cheese", "rules": [{"imageUrl": "https://example.com/swiss.png", "operator": "equals", "value": "swiss", "clickUrl": "https://example.com/swiss"}], "fallback": {"imageUrl": "https://example.com/default.png", "clickUrl": "https://example.com/"}}.
litmusoauth_personalize_progress_bar_publishPublish a Litmus Personalize progress bar for use in a live email.WritePublish Progress Bar
Publish a Litmus Personalize progress bar for use in a live email. Returns the progress bar image URL, whose value is set per recipient with a merge tag. Use litmusoauth_personalize_progress_bar_publish when the design is final; the request body is the same as litmusoauth_personalize_progress_bar_preview. Uses the OAuth connection (Litmus v3 API, early access).
Inputs
attributesobjectrequired- The progress bar settings, sent as data.attributes. Give templateId, minimumValue and maximumValue (integers), hex colors (background, progressFill, progressBackground, progressValue, minimumValue, maximumValue) and, for previews, preview.progressValue. Example: {"templateId": "linear_progress_bar", "minimumValue": 0, "maximumValue": 100, "colors": {"background": "#FFFFFF", "progressFill": "#40DC59"}, "preview": {"progressValue": 75}}.
litmusoauth_personalize_sentiment_tracker_publishPublish a Litmus Personalize sentiment tracker for use in a live email.WritePublish Sentiment Tracker
Publish a Litmus Personalize sentiment tracker for use in a live email. Returns an image URL and a vote URL for each option; read votes with litmusoauth_personalize_sentiment_tracker_report_get. Use litmusoauth_personalize_sentiment_tracker_publish when the design is final; the request body is the same as litmusoauth_personalize_sentiment_tracker_preview. Uses the OAuth connection (Litmus v3 API, early access).
Inputs
attributesobjectrequired- The sentiment tracker settings, sent as data.attributes. Give templateId, hex colors.resultsValue and, when publishing, url (where voters are redirected). Example: {"templateId": "emoji_sentiment_tracker", "url": "https://example.com/thanks", "colors": {"resultsValue": "#000000"}}.
litmusoauth_personalize_timer_publishPublish a Litmus Personalize countdown timer for use in a live email.WritePublish Countdown Timer
Publish a Litmus Personalize countdown timer for use in a live email. Returns the animated timer GIF URL (its exp query parameter can be overridden with a merge tag). Use litmusoauth_personalize_timer_publish when the design is final; the request body is the same as litmusoauth_personalize_timer_preview. Uses the OAuth connection (Litmus v3 API, early access).
Inputs
attributesobjectrequired- The countdown timer settings, sent as data.attributes. Give templateId, countdown.time (future ISO 8601 UTC target), expiration.message (shown at zero), optional fallback.message (for Apple Mail Privacy Protection), font (Montserrat, Open Sans, Roboto, Lato, Poppins, Noto Sans, Source Serif 4, Lora, PT Serif, Noto Serif or Roboto Slab) and hex colors (background, label_text, digits_text). Example: {"templateId": "default_timer", "countdown": {"time": "2027-02-09T00:00:00Z"}, "expiration": {"message": "The sale has ended."}, "fallback": {"message": "Sale ends on November 20th!"}, "font": "Roboto", "colors": {"background": "#33A8CC", "label_text": "#FFFFFF", "digits_text": "#000000"}}.
litmusoauth_guardian_email_unenrollStop monitoring an email in Email Guardian.DestructiveUnenroll Email from Email Guardian
Stop monitoring an email in Email Guardian. Returns 204 No Content on success. Use litmusoauth_guardian_email_unenroll when an email is retired. Use litmusoauth_guardian_emails_list to find email IDs. Uses the OAuth connection (Litmus v3 API, early access).
- Idempotent
Inputs
email_idstringrequired- ID of the enrolled Email Guardian email, from litmusoauth_guardian_email_enroll or litmusoauth_guardian_emails_list. Example: 11.
integration_user_idstringrequired- ID of the integration user (your end user) you act for, from litmusoauth_integration_user_create. Example: 1.
No tools match.