> ## Documentation Index
> Fetch the complete documentation index at: https://ahasend.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Ping

> Test connectivity to the AhaSend API and validate authentication

# Ping Command

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

## Overview

```bash theme={null}
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

```bash theme={null}
# 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

```bash theme={null}
# 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

* [Configure authentication](/cli/authentication)
* [Manage API keys](/cli/commands/apikeys)
* [Send your first message](/cli/commands/messages)
