Ping Command

Test the connection to AhaSend API and validate your API key.

Overview

ahasend ping [flags]
The ping command sends a test request to the AhaSend API to verify:
  • Network connectivity to AhaSend servers
  • API key authentication and validity
  • Account access permissions

Basic Usage

# Test with current profile
ahasend ping

# Test with specific API key
ahasend ping --api-key aha-sk-... --account-id <account-id>

# Test with specific profile
ahasend ping --profile production

Output Formats

# Default plain output
ahasend ping

# JSON output for automation
ahasend ping --output json

# Table format
ahasend ping --output table

Use Cases

  • Connection Testing: Verify network connectivity to AhaSend servers
  • Authentication Validation: Check if API key is valid and active
  • Profile Verification: Confirm profile configuration is correct
  • Health Checks: Include in monitoring scripts and CI/CD pipelines
  • Troubleshooting: Debug authentication or connectivity issues

Next Steps