Skip to main content
AhaSend CLI apikeys commands let you create, inspect, update and revoke API keys; this page covers their arguments and flags. Before running the examples, log in with a full API key, use your verified sender domain, and replace YOUR_RESOURCE_ID with a resource UUID from your test account. Create any named template, recipient, attachment, or JSON files first. Shell examples use Bash; examples that read JSON with jq need jq installed. Sends use sandbox mode.

Overview

Available subcommands:
  • list - List all API keys
  • create - Create a new API key
  • get - Get detailed information about a specific API key
  • update - Update an existing API key
  • delete - Delete an API key
API keys are used to authenticate requests to the AhaSend API. You can create multiple API keys with different scopes and labels to organize access for different applications or team members. Each API key has:
  • A unique identifier and secret
  • Configurable scopes (permissions) - see API Key Scopes
  • Optional labels for organization
  • Creation and last used timestamps

List API Keys

Create API Key

Get API Key Details

Update API Key

Delete API Key

Deleting an API key is irreversible. Applications using this key will lose access immediately.

Next Steps

Command Flags

These flags come from the current CLI. All commands also accept the global flags.

apikeys create

apikeys delete

apikeys get

This command has no command-specific flags. See global flags.

apikeys list

apikeys update