Appearance
Campaigns List
lindris campaigns list
List campaigns
Synopsis
GET /api/campaigns — paginated.
--status takes ONE status (draft, sent, scheduled, sending, paused, failed) or "all" for every status; it defaults to draft. A comma-separated list is rejected by the API. The status shown for a campaign may be a computed sub-state (e.g. "preparing") that is not itself filterable.
--sort (name, createdAt, status) and --order (asc, desc) are passed through. With no --sort the backend applies its own default ordering for the requested status.
bash
lindris campaigns list [flags]Examples
bash
$ lindris campaigns list
$ lindris campaigns list --status=all --sort=createdAt --order=desc
$ lindris campaigns list --status=sent | jq -r '.data[].id'
$ lindris campaigns list --output=textOptions
--orderstring - Sort direction: asc|desc (ignored unless --sort is set)-o, --outputstring - Output format: json|text. Default:json--pageint - Page number (omit for page 1; the API rejects anything above 10000)--per-pageint - Results per page. Default:10; values above 100 are clamped to 100, not rejected--sortstring - Sort field: name|createdAt|status. Default:backend's per-status order--statusstring - Status filter — one of draft|sent|scheduled|sending|paused|failed, or all. Default:draft
See Also
lindris campaigns- Manage one-time email campaigns — wraps /api/campaigns