eSIMs ModuleCountries

Countries

To get a list of countries, you need to send a GET request to the /api/esim/countries endpoint.

There are no required parameters for this endpoint.

Example

Here is an example of how you can get a list of countries using Roamify eSIM API.

curl --request GET \
--url 'https://api-dev.getroamify.com/api/esim/countries' \
--header 'Authorization: Bearer Access Token' \
--header 'Content-Type: application/json'

Sample Response

{
	"status": "success",
	"data": {
		"countries": [
			{
				"code": "AF",
				"name": "Afghanistan"
			},
			{
				"code": "AF",
				"name": "Africa Adventure"
			},
			{
				"code": "AX",
				"name": "Åland Islands"
			},
			{
				"code": "AL",
				"name": "Albania"
			},
			{
				"code": "DZ",
				"name": "Algeria"
			},
			{
				"code": "AD",
				"name": "Andorra"
			}
        ]
    }
}