CLI commandsMenu
On this page

CLI commands

Find the CLI command for your task. Explore 185 commands grouped by resource, with links to their API fields and required scopes.

A command's flags are the operation's fields: see them with kirora <resource> <action> --help, or on its API reference page. Signing in, the flags every command takes and the output are on the CLI page.

assets

An asset is an image you upload for a template's image blocks, served from a public URL.

CommandWhat it does
kirora assets delete <id>Delete an assettemplates:write
kirora assets importCopy an image into the librarytemplates:write
kirora assets listList assetstemplates:read
kirora assets update <id>Rename an assettemplates:write
kirora assets uploadUpload an imagetemplates:write
kirora assets usage <id>Retrieve an asset's usagetemplates:read

attributes

Attributes are the custom fields your contacts carry, such as `plan` or `orders`, discovered from the values you send.

CommandWhat it does
kirora attributes describe <key>Describe an attribute keyattributes:write
kirora attributes listList contact attribute keysattributes:read
kirora attributes values <key>List the values of an attributeattributes:read

brand-kit

Retrieve the workspace brand kit

CommandWhat it does
kirora brand-kit getRetrieve the workspace brand kittemplates:read

campaigns

A campaign is one marketing send to an audience, a list or a segment, at once or at a scheduled time.

CommandWhat it does
kirora campaigns archive <id>Archive a campaigncampaigns:write
kirora campaigns breakdown <id>Retrieve a campaign's email results by domain, device or countrycampaigns:read
kirora campaigns cancel <id>Cancel a campaign that is still sendingcampaigns:write
kirora campaigns choose-ab-test-winner <id>Choose an A/B test's winnercampaigns:send
kirora campaigns createCreate a campaigncampaigns:write
kirora campaigns delete <id>Delete a draft campaigncampaigns:write
kirora campaigns duplicate <id>Duplicate a campaigncampaigns:write
kirora campaigns eligibility <id>Retrieve a campaign's eligibilitycampaigns:read
kirora campaigns get <id>Retrieve a campaigncampaigns:read
kirora campaigns links <id>List a campaign's links and their clickscampaigns:read
kirora campaigns listList campaignscampaigns:read
kirora campaigns metrics <id>Retrieve a campaign's metricscampaigns:read
kirora campaigns preview <id>Preview campaign contentcampaigns:read
kirora campaigns schedule <id>Schedule a campaigncampaigns:send
kirora campaigns send <id>Send a campaigncampaigns:send
kirora campaigns series <id>Retrieve a campaign's metrics over timecampaigns:read
kirora campaigns trigger <id>Trigger a campaigncampaigns:send
kirora campaigns unarchive <id>Unarchive a campaigncampaigns:write
kirora campaigns unschedule <id>Unschedule a campaigncampaigns:write
kirora campaigns update <id>Update a campaigncampaigns:write

contacts

A contact is one person you can message, with their profile, custom attributes, consent on each channel and topic choices.

CommandWhat it does
kirora contacts consent-changes <id>List a contact's consent changescontacts:read
kirora contacts delete <id>Delete a contactcontacts:delete
kirora contacts delete-manyDelete contactscontacts:delete
kirora contacts events <id>List a contact's eventsevents:read
kirora contacts export <id>Export a contact's datacontacts:read
kirora contacts get <id>Retrieve a contactcontacts:read
kirora contacts identifyCreate or update a contactcontacts:write
kirora contacts identify-batchIdentify contacts in a batchcontacts:write
kirora contacts installations delete <contact-id> <external-installation-id>Delete a push installationcontacts:write
kirora contacts installations list <id>List a contact's push installationscontacts:read
kirora contacts installations register <id>Register a push installationcontacts:write
kirora contacts journeys <id>List a contact's journey enrollmentsjourneys:read
kirora contacts listList contactscontacts:read
kirora contacts lists <id>List a contact's listscontacts:read
kirora contacts merge <id>Merge a contact into anothercontacts:write
kirora contacts messages <id>List a contact's messagesmessages:read
kirora contacts segments <id>List a contact's segmentscontacts:read
kirora contacts topics list <id>List a contact's topicscontacts:read
kirora contacts topics set <contact-id> <topic-id>Set a contact's topic choicecontacts:write
kirora contacts update <id>Update a contactcontacts:write

conversion-goals

A conversion goal says what counts as a result for a campaign or a journey: an event, such as an order, done within a window after one of its messages, with an event property summed as revenue.

CommandWhat it does
kirora conversion-goals createCreate a conversion goalconversion-goals:write
kirora conversion-goals delete <id>Delete a conversion goalconversion-goals:write
kirora conversion-goals listList the conversion goals of a campaign or journeyconversion-goals:read
kirora conversion-goals metrics <id>Report a conversion goal's resultsconversion-goals:read
kirora conversion-goals update <id>Change a conversion goalconversion-goals:write

embed-sessions

Embed sessions let a partner's customers use Kirora's segment and email builders inside the partner's app for 15 minutes, without a key of their own.

CommandWhat it does
kirora embed-sessions createCreate an embed sessionembed:write

events

An event is something a contact did, such as `Order Completed`, with properties describing it.

CommandWhat it does
kirora events catalog define <name>Define or describe an event nameevents:write
kirora events catalog delete <name>Delete an event name and its eventsevents:delete
kirora events catalog listList the event catalogueevents:read
kirora events listList eventsevents:read
kirora events seriesRetrieve an event's time seriesevents:read
kirora events standard-namesList the standard event namesevents:read
kirora events summaryRetrieve an event's summaryevents:read
kirora events trackTrack an eventevents:write
kirora events track-batchTrack events in a batchevents:write

forms

A form is a hosted sign-up, contact or waitlist form that creates or updates contacts and records the consent they give.

CommandWhat it does
kirora forms archive <id>Archive a formforms:write
kirora forms createCreate a formforms:write
kirora forms delete <id>Delete a formforms:write
kirora forms get <id>Retrieve a formforms:read
kirora forms listList formsforms:read
kirora forms metrics <id>Retrieve a form's metricsforms:read
kirora forms publish <id>Publish a formforms:write
kirora forms submissions list <id>List a form's submissionscontacts:read
kirora forms submissions submit <id>Submit a formcontacts:write
kirora forms unarchive <id>Unarchive a formforms:write
kirora forms unpublish <id>Unpublish a formforms:write
kirora forms update <id>Update a formforms:write

journeys

A journey is an automation that contacts enter on a trigger, such as an event or joining a list, and move through step by step over time.

CommandWhat it does
kirora journeys activate <id>Activate a journeyjourneys:activate
kirora journeys activation-check <id>Check a journey before activatingjourneys:read
kirora journeys createCreate a journeyjourneys:write
kirora journeys delete <id>Delete a journeyjourneys:write
kirora journeys duplicate <id>Duplicate a journeyjourneys:write
kirora journeys end <id>End a journeyjourneys:write
kirora journeys get <id>Retrieve a journeyjourneys:read
kirora journeys listList journeysjourneys:read
kirora journeys metrics <id>Retrieve a journey's metricsjourneys:read
kirora journeys pause <id>Pause a journeyjourneys:write
kirora journeys simulate <id>Simulate a journeyjourneys:read
kirora journeys step-metrics <id>Retrieve a journey's metrics step by stepjourneys:read
kirora journeys update <id>Update a journeyjourneys:write

lists

A list is a fixed set of contacts you add and remove yourself; its membership changes only when you change it.

CommandWhat it does
kirora lists contacts add <id>Add contacts to a listlists:write
kirora lists contacts delete <id>Delete contacts from a listlists:write
kirora lists createCreate a listlists:write
kirora lists delete <id>Delete a listlists:write
kirora lists get <id>Retrieve a listlists:read
kirora lists listList listslists:read
kirora lists update <id>Update a listlists:write
kirora lists usage <id>Retrieve a list's usagelists:read

me

These operations return the calling API key, its scopes and its workspace.

CommandWhat it does
kirora me getRetrieve the current API keyAny key

messages

The message log holds every message Kirora sent or tried to send, from campaigns, journeys and transactional sends, with what became of it.

CommandWhat it does
kirora messages content <id>Retrieve a message's contentmessages:read
kirora messages deliveries <id>List a push message's deliveriesmessages:read
kirora messages exports createExport sent messages as CSVmessages:read
kirora messages exports download <id>Download a message exportmessages:read
kirora messages exports get <id>Retrieve a message exportmessages:read
kirora messages get <id>Retrieve an outbound messagemessages:read
kirora messages listList outbound messagesmessages:read

push-projects

A push project is a product whose iOS, Android and web apps receive push, with whether each can send.

CommandWhat it does
kirora push-projects listList push projectspush:read

reports

Reports show how sending performs: the workspace overview, a comparison of campaigns, transactional delivery and conversion funnels.

CommandWhat it does
kirora reports campaignsList campaign reportsreports:read
kirora reports funnelRetrieve a funnel reportreports:read
kirora reports overviewRetrieve the performance overviewreports:read
kirora reports rfmRetrieve the RFM summaryreports:read
kirora reports transactionalRetrieve transactional delivery statisticsreports:read

segments

A segment is an audience described by rules, such as "ordered twice in 90 days", evaluated when it is used.

CommandWhat it does
kirora segments contacts <id>List contacts in a segmentcontacts:read
kirora segments createCreate a segmentsegments:write
kirora segments delete <id>Delete a segmentsegments:write
kirora segments get <id>Retrieve a segmentsegments:read
kirora segments listList segmentssegments:read
kirora segments membership-changes <id>List who joined or left a segment on a daycontacts:read
kirora segments previewPreview segment rulessegments:read
kirora segments size-history <id>Retrieve a segment's size historysegments:read
kirora segments update <id>Update a segmentsegments:write
kirora segments usage <id>Retrieve a segment's usagesegments:read

senders

A sender is a From address the workspace has saved, on one of its sending domains, with one default that new emails start with.

CommandWhat it does
kirora senders listList sendersdomains:read

sending-domains

A sending domain is a domain your email is sent from, with the DNS records that prove you own it.

CommandWhat it does
kirora sending-domains check <id>Check a sending domaindomains:write
kirora sending-domains createAdd a sending domaindomains:write
kirora sending-domains delete <id>Delete a sending domaindomains:write
kirora sending-domains get <id>Retrieve a sending domaindomains:read
kirora sending-domains listList sending domainsdomains:read
kirora sending-domains request-review <id>Ask for a sending domain review againdomains:write
kirora sending-domains usage <id>Retrieve a sending domain's usagedomains:read

shared-blocks

A shared block is a block kept once and placed in many templates, such as a footer or a product card.

CommandWhat it does
kirora shared-blocks createCreate a shared blocktemplates:write
kirora shared-blocks delete <id>Delete a shared blocktemplates:write
kirora shared-blocks get <id>Retrieve a shared blocktemplates:read
kirora shared-blocks listList shared blockstemplates:read
kirora shared-blocks update <id>Update a shared blocktemplates:write
kirora shared-blocks usage <id>Retrieve a shared block's usagetemplates:read

suppressions

A suppression is a block on an email address, held whether or not a contact has it, with its reason.

CommandWhat it does
kirora suppressions addAdd suppressed email addressessuppressions:write
kirora suppressions deleteDelete suppressed email addressessuppressions:write
kirora suppressions listList suppressed email addressessuppressions:read

tags

A tag is a label on campaigns, journeys, segments and templates, such as "Black Friday", for filtering lists and reports.

CommandWhat it does
kirora tags createCreate a tagtags:write
kirora tags delete <id>Delete a tagtags:write
kirora tags listList tagstags:read
kirora tags merge <id>Merge a tag into anothertags:write
kirora tags update <id>Rename a tagtags:write

templates

A template is a reusable email design: a document of blocks and a theme, saved as a draft and published as numbered versions.

CommandWhat it does
kirora templates createCreate an email templatetemplates:write
kirora templates delete <id>Delete a templatetemplates:write
kirora templates duplicate <id>Duplicate a templatetemplates:write
kirora templates galleryList sample emails and theme presetstemplates:read
kirora templates get <id>Retrieve a templatetemplates:read
kirora templates listList templatestemplates:read
kirora templates publish <id>Publish a templatetemplates:write
kirora templates render <id>Render a saved templatetemplates:read
kirora templates render-contentRender a design or HTMLtemplates:read
kirora templates send-testSend a test emailtemplates:write
kirora templates update <id>Update a templatetemplates:write
kirora templates versions get <template-id> <template-version>Retrieve a template versiontemplates:read
kirora templates versions list <id>List a template's versionstemplates:read
kirora templates versions restore <template-id> <template-version>Restore a template versiontemplates:write

topics

A topic is a kind of marketing a contact can choose, such as product updates, and a topic choice is their choice for it on every channel or one.

CommandWhat it does
kirora topics createCreate a topictopics:write
kirora topics delete <id>Delete a topictopics:write
kirora topics get <id>Retrieve a topictopics:read
kirora topics listList topicstopics:read
kirora topics update <id>Update a topictopics:write

transactional

Transactional messages are one-off email or push sends to one recipient, such as receipts and password resets, that a person needs whatever their marketing choices.

CommandWhat it does
kirora transactional cancel-scheduled <id>Cancel a scheduled transactional messagetransactional:send
kirora transactional sendSend a transactional messagetransactional:send
kirora transactional send-batchSend transactional messages in a batchtransactional:send

webhooks

A webhook is an endpoint of yours that receives Kirora's events, such as `message.delivered`.

CommandWhat it does
kirora webhooks createCreate a webhookwebhooks:write
kirora webhooks delete <id>Delete a webhookwebhooks:write
kirora webhooks deliveries get <id>Retrieve a webhook deliverywebhooks:read
kirora webhooks deliveries listList webhook deliverieswebhooks:read
kirora webhooks deliveries redeliver <delivery-id>Redeliver a webhook deliverywebhooks:write
kirora webhooks eventsList webhook eventsAny key
kirora webhooks get <id>Retrieve a webhookwebhooks:read
kirora webhooks listList webhookswebhooks:read
kirora webhooks rotate-secret <id>Rotate a webhook signing secretwebhooks:write
kirora webhooks test <id>Send a test webhook deliverywebhooks:write
kirora webhooks update <id>Update a webhookwebhooks:write

workspaces

Partner workspaces let a platform offer messaging to its own customers, one workspace per customer, created and run with a partner key and the `Kirora-Workspace` header.

CommandWhat it does
kirora workspaces cancel-deletion <external-id>Cancel a tenant workspace's deletionworkspaces:manage
kirora workspaces createCreate a tenant workspaceworkspaces:manage
kirora workspaces delete <external-id>Delete a tenant workspaceworkspaces:manage
kirora workspaces get <external-id>Retrieve a tenant workspaceworkspaces:manage
kirora workspaces listList your tenant workspacesworkspaces:manage
kirora workspaces resume <external-id>Resume a tenant workspaceworkspaces:manage
kirora workspaces suspend <external-id>Suspend a tenant workspaceworkspaces:manage
kirora workspaces update <external-id>Update a tenant workspaceworkspaces:manage