# Get a list of supported countries and their states

```http
GET https://api.synup.com/api/v4/countries
```

This API fetches a list of supported countries, including their database IDs, ISO codes, and states. The retrieved ISO codes should be used as input values when creating or updating locations.

Source: https://developer.synup.com/api/locations/get-a-list-of-supported-countries-and-their-states

## Example request

```bash
curl -X GET 'https://api.synup.com/api/v4/countries' \
  -H 'Authorization: API YOUR_API_KEY' \
  -H 'Content-Type: application/json'
```

## Responses

| Status | Description |
| --- | --- |
| `200` | Successfully retrieved the list of countries and their states |
| `401` | Unauthorized. API key is missing or invalid. |
| `500` | Internal server error. |
