App keys

App keys

The keys your product’s servers hold, and what each one may do.

On this page
  1. keys create
  2. keys list
  3. keys revoke
  4. keys renew
  5. keys resume
  6. keys update

mailset keys create

A key for your product’s server: prints MAILSET_KEY once, after it’s approved.

No loginPasskey

Flags

  • --sendflagoptional

    A key that sends: as one mailbox with --mailbox, or as the --from addresses on a sending-only domain with --domain.

  • --readflagoptional

    A key that reads one mailbox. Goes with --send or alone.

  • --mailbox<address>optional

    The mailbox the key is for, with --send or --read.

  • --domain<name>optional

    With --send: a domain added with --sending, whose mail stays elsewhere, and not its subdomains. An owner or admin approves it.

  • --from<address>optional

    With --domain: an address on it the key sends as. Again for each, 25 at most.

  • --any-addressflagoptional

    With --domain, in place of --from: any address on it, your team’s included. Only for a domain where nobody has a mailbox.

  • --campaignsflagoptional

    A key that holds an org’s campaigns and nothing else. An owner or admin approves it.

  • --org<id>optional

    With --campaigns: the org, when you are in more than one.

  • --name<name>optional

    What the approval page and App keys call it. This machine’s name unless given.

It prints a link and a code. Approve it with your passkey, and the key prints once. Nothing is saved on this machine.

Usage
mailset keys create --send [--read] --mailbox <address> [--name <name>] | --send --domain <name> --from <address>… | --any-address [--name <name>] | --campaigns [--org <id>] [--name <name>]
Example
mailset keys create --send --mailbox moc.elpmaxe@olleh --name "Acme API"

mailset keys list

List your app keys: what each sends as, and when it was last used.

Returns

With --json it prints a list of Key status objects.

In the API: POST /v1/keys.list

Usage
mailset keys list
Example
mailset keys list

mailset keys revoke

Revoke an app key. Its server can’t send with it any more.

Flags

  • <id>argumentrequired

    The app’s id, from keys list.

Returns

With --json it prints what the API returns.

In the API: POST /v1/keys.revoke

Usage
mailset keys revoke <id>
Example
mailset keys revoke d_4b8e2a6c9f1d3057b3e8a2c6

mailset keys renew

Keep an app key working for 90 more days, with the same key.

Passkey

Flags

  • <id>argumentrequired

    The app’s id, from keys list.

It can ask for your passkey. It prints “This needs your passkey. Open <link>”, then waits until the link is approved or refused. Read its output as it comes: through head or tail, the link shows only after the wait.

Returns

With --json it prints what the API returns.

In the API: POST /v1/keys.renew

Usage
mailset keys renew <id>
Example
mailset keys renew d_4b8e2a6c9f1d3057b3e8a2c6

mailset keys resume

Let an app key its brake paused send again, once you know why it was.

Passkey

Flags

  • <id>argumentrequired

    The app’s id, from keys list.

It can ask for your passkey. It prints “This needs your passkey. Open <link>”, then waits until the link is approved or refused. Read its output as it comes: through head or tail, the link shows only after the wait.

Returns

With --json it prints what the API returns.

In the API: POST /v1/keys.resume

Usage
mailset keys resume <id>
Example
mailset keys resume d_4b8e2a6c9f1d3057b3e8a2c6

mailset keys update

Change the From addresses a domain key sends as.

Passkey

Flags

  • <id>argumentrequired

    The key’s id, from keys list.

  • --from<a,b,…>optional

    The From addresses it may send as from now on, all on its domain. 1 to 25.

    Or @<path>, to read the JSON from a file.

  • --any-addressenumoptional

    Any address on its domain instead: only for a domain where nobody has a mailbox.

    Alwaystrue

It can ask for your passkey. It prints “This needs your passkey. Open <link>”, then waits until the link is approved or refused. Read its output as it comes: through head or tail, the link shows only after the wait.

Returns

With --json it prints the Key status object.

In the API: POST /v1/keys.update

Usage
mailset keys update <id> [--from <a,b,…>] [--any-address true]
Example
mailset keys update d_4b8e2a6c9f1d3057b3e8a2c6 --from moc.elpmaxe@stpiecer --from moc.elpmaxe@ylperon