Install
openclaw skills install buttondownCreate, update, inspect, and send test previews of Buttondown newsletter emails through the Buttondown API. Use when Codex needs to post newsletter copy as a Buttondown draft, manage Buttondown email drafts, preview draft emails to specific recipients, or inspect Buttondown email metadata. Defaults to draft-only and requires explicit user approval before sending, scheduling, publishing, deleting, or emailing previews.
openclaw skills install buttondownUse Buttondown's API to create and manage newsletter email drafts.
status: draft unless the user explicitly approves a different status in the current conversation.BUTTONDOWN_API_KEY. Store it in your shell, launcher, runtime secret store, or OpenClaw SecretRef; never ask the user to paste the token into chat.--context or BUTTONDOWN_CONTEXT.The bundled CLI reads the API key from:
export BUTTONDOWN_API_KEY="..."
Prefer setting this through your runtime's secret manager or environment injection rather than typing it into a command. In OpenClaw, configure it through a SecretRef or equivalent managed environment variable.
Optional environment:
BUTTONDOWN_CONTEXT - newsletter username for the Buttondown-Context header.BUTTONDOWN_API_BASE - defaults to https://api.buttondown.com/v1.Run commands from the skill directory:
python3 scripts/buttondown.py create-draft --subject "Subject" --body-file issue.md
python3 scripts/buttondown.py create-draft --subject "Subject" --body-file issue.md --slug "issue-1" --description "SEO/archive summary"
python3 scripts/buttondown.py create-draft --subject "Subject" --body-file issue.md --editor-mode plaintext
python3 scripts/buttondown.py update-draft <email_id> --subject "New subject" --body-file issue.md
python3 scripts/buttondown.py list --status draft
python3 scripts/buttondown.py get <email_id>
python3 scripts/buttondown.py render <email_id>
python3 scripts/buttondown.py send-draft <email_id> --recipient user@example.com
Use --dry-run on write commands to inspect the request without calling Buttondown:
python3 scripts/buttondown.py create-draft --subject "Subject" --body-file issue.md --dry-run
create-draft; confirm the response contains status: draft.send-draft.Buttondown detects Markdown versus HTML automatically. To force the editor mode, pass:
--editor-mode plaintext for Markdown.--editor-mode fancy for rich HTML.The CLI prepends the official Buttondown editor-mode comment when this option is set.
Read references/api.md when you need endpoint details, request fields, status values, error codes, or direct curl equivalents.