Overview
Create a new private location to run checks from your own infrastructure. Private locations allow you to monitor internal services, comply with regulatory requirements, or test from specific geographic locations.Request Example
Response Example
Configuration Options
Basic Settings
Basic Settings
name
(string): Human-readable name for the private locationslugName
(string): URL-safe identifier (lowercase, hyphens allowed)
region
(string): AWS region identifier for geographic referencetags
(array): Tags for organization and filteringicon
(string): Icon identifier for the UI (aws, gcp, azure, docker, kubernetes, etc.)
Naming Guidelines
Naming Guidelines
- Must be unique within your account
- Can contain letters, numbers, spaces, and common punctuation
- Maximum 255 characters
- Should be descriptive and meaningful
- Must be unique within your account
- Lowercase letters, numbers, and hyphens only
- Cannot start or end with a hyphen
- Maximum 63 characters
- Used in API calls and URLs
Supported Icons
Supported Icons
aws
- Amazon Web Servicesgcp
- Google Cloud Platformazure
- Microsoft Azuredocker
- Docker containerskubernetes
- Kubernetes clustersserver
- Generic servercloud
- Generic clouddatacenter
- Data centeroffice
- Office location
Regional Reference
Regional Reference
us-east-1
- US East (N. Virginia)us-west-2
- US West (Oregon)eu-west-1
- Europe (Ireland)ap-southeast-1
- Asia Pacific (Singapore)- Or use custom identifiers for your locations
API Key Management
Automatic API Key Creation
Automatic API Key Creation
- A default API key for agent authentication
- Secure key with appropriate permissions
- Initial key named “Default API Key”
Key Security
Key Security
- API keys are shown only once during creation
- Keys are hashed and masked in subsequent API responses
- Store keys securely in your infrastructure
- Rotate keys regularly for security
Multiple Keys
Multiple Keys
- Different environments (staging, production)
- Key rotation without downtime
- Team or service separation
- Backup authentication methods
Code Examples
Next Steps After Creation
1. Save the API Key
1. Save the API Key
- The key is only shown once in the creation response
- Store it securely in your secrets management system
- You’ll need it to configure the Checkly Agent
2. Install the Checkly Agent
2. Install the Checkly Agent
3. Verify Connection
3. Verify Connection
- Wait a few minutes for the agent to start
- Check the private location status via API
- Look for
status: "ACTIVE"
and recentlastHeartbeat
- Monitor agent logs for any connection issues
4. Assign Checks
4. Assign Checks
- Update existing checks to include your private location
- Create new checks that target your private location
- Use check groups to apply the location to multiple checks
Best Practices
Naming Strategy
Naming Strategy
- Environment: Include environment (prod, staging, dev)
- Technology: Specify platform (aws, k8s, docker)
- Location: Include geographic or logical location
- Purpose: Indicate the purpose or team
- “Production AWS US-East”
- “Staging Kubernetes EU”
- “Dev Docker Local”
Security Considerations
Security Considerations
- API Key Storage: Use secure secrets management
- Network Access: Restrict outbound access to required endpoints
- Agent Updates: Keep agent versions current
- Monitoring: Monitor agent health and connectivity
Infrastructure Planning
Infrastructure Planning
- Resource Requirements: Ensure adequate CPU and memory
- Network Connectivity: Plan for outbound HTTPS access
- High Availability: Consider running multiple agents
- Scaling: Plan for check volume and concurrent execution
Organization
Organization
- Tagging: Use consistent tags for filtering and organization
- Documentation: Document the purpose and configuration
- Access Control: Limit who can create and manage private locations
- Monitoring: Set up alerts for private location health
Authorizations
The Checkly Public API uses API keys to authenticate requests. You can get the API Key here.
Your API key is like a password: keep it secure!
Authentication to the API is performed using the Bearer auth method in the Authorization header and using the account ID.
For example, set Authorization header while using cURL:
curl -H "Authorization: Bearer [apiKey]" "X-Checkly-Account: [accountId]"
Headers
Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general
Body
The name assigned to the private location.
"New Private Location"
Valid slug name.
"new-private-location"
"location"
A proxy for outgoing API check HTTP calls from your private location.
"https://user:password@164.92.149.127:3128"
Response
Created
"0baf2a80-7266-44af-b56c-2af7086782ee"
The name assigned to the private location.
"New Private Location"
Valid slug name.
"new-private-location"
The private location icon.
"location"
The check this private location has assigned.
The group this private location has assigned.
A proxy for outgoing API check HTTP calls from your private location.
"https://user:password@164.92.149.127:3128"