Skip to main content
GET
/
countries
Get Countries
curl --request GET \
  --url https://api.roostedhr.com/api/1_12/countries \
  --header 'X-API-KEY: <api-key>'
[
  {
    "id": 2,
    "name": "United States"
  },
  {
    "id": 3,
    "name": "Canada"
  },
  {
    "id": 4,
    "name": "United Kingdom"
  }
]
Use the country id from this response when setting a worker’s country_id via Create Worker or Edit Worker.

Authorizations

X-API-KEY
string
header
required

Response

OK

id
integer

Country identifier. Use this value for country_id fields.

name
string

Country name.