Overview
The Countries endpoint returns a list of all supported ISO 3166-1 alpha-2 country codes that can be used with the monitoring API. This endpoint provides the complete list of supported countries and territories.Request Parameters
Required Parameters
None - this endpoint accepts a simple GET request with no parameters.Optional Parameters
NoneExample Usage
Basic Request
Response Schema
| Field | Type | Description |
|---|---|---|
| Response | array | Array of supported country codes in ISO 3166-1 alpha-2 format |
Authentication
This endpoint requires authentication using a Bearer token in the Authorization header:Best Practices
Caching and Performance
| Practice | Recommendation | Reason |
|---|---|---|
| Cache Duration | 24+ hours | Country list rarely changes |
| Implementation | Store locally after first call | Reduces API calls and improves performance |
| Validation | Use for client-side country validation | Prevents invalid country codes in monitor requests |
Integration Guidelines
- Fetch Once: Retrieve the country list when your application initializes
- Validate Input: Use the list to validate country codes before sending monitor requests
- Handle Updates: Implement a refresh mechanism for occasional updates
- Error Handling: Have fallback behavior if the endpoint is temporarily unavailable
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
List of supported country codes
The response is of type string[].