All Trackly SMS API requests require authentication using an API key. API keys are scoped to your account and can be created and managed from the dashboard. API keys follow the formatDocumentation Index
Fetch the complete documentation index at: https://docs.tracklysms.com/llms.txt
Use this file to discover all available pages before exploring further.
trk_[32-char-alphanumeric] (e.g., trk_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6).
Getting Your API Key
Navigate to API Keys
Log into the Trackly SMS Dashboard and go to Settings > API Keys
Create a New Key
Click Create API Key and give it a descriptive name (e.g., “Production API”, “Development”)
Using Your API Key
Include your API key in theX-Api-Key header with every request:
Authentication Errors
If authentication fails, you’ll receive a401 Unauthorized or 403 Forbidden response:
- Missing API Key
- Invalid API Key
- Account Suspended
401Account suspension is enforced at request time, not at API key creation time. A suspended account whose API keys were active before suspension will start receiving
403 Account is suspended on every call immediately after the admin action, without waiting for any cache or token to expire.Product Access Errors
Some endpoints are gated by per-account product entitlements. If your account isn’t enabled for a given product, requests to that product’s endpoints return403 Forbidden with a {product}_not_enabled code:
code follows the pattern {product}_not_enabled (e.g. email_not_enabled, partnerships_not_enabled). To enable a product on your account, contact support@tracklysms.com. SMS sending endpoints are enabled for all active accounts by default and do not return this error.
API Key Best Practices
Use Environment Variables
Store API keys in environment variables, not in code
Rotate Regularly
Create new keys periodically and revoke old ones
Separate Environments
Use different keys for development and production
Monitor Usage
Check the “Last Used” timestamp to detect unauthorized use
Managing API Keys
From the API Keys page in the dashboard, you can:| Action | Description |
|---|---|
| Create | Generate a new API key with a custom name |
| View | See key name, creation date, and last used timestamp |
| Delete | Permanently revoke a key (cannot be undone) |
Deleting an API key immediately invalidates it. Any requests using that key will fail with a
401 error.Linking Discord with API Keys
If you use our Discord integration, you can link your Discord account to your Trackly account using an API key:- View usage and balance from Discord
- Create and manage support tickets
- Receive real-time alerts
Next Steps
V2 API Overview
Explore all v2 endpoints
Send First SMS
Send your first message