API tokens

API tokens

A person’s own login for scripts.

On this page
  1. tokens list
  2. tokens create
  3. tokens revoke

mailset tokens list

List your API tokens.

Returns

With --json it prints a list of API token objects.

In the API: POST /v1/tokens.list

Usage
mailset tokens list
Example
mailset tokens list

mailset tokens create

Create an API token. It is shown once.

Passkey

Flags

  • <name>argumentrequired

    A name to tell it by, up to 64 characters.

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/tokens.create

Usage
mailset tokens create <name>
Example
mailset tokens create "Deploy script"

mailset tokens revoke

Revoke an API token.

Flags

  • <id>argumentrequired

    The token’s id, from tokens list.

Returns

With --json it prints what the API returns.

In the API: POST /v1/tokens.revoke

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