Skip to main content
POST
/
api
/
v1
/
countries
/
index
curl -X POST http://localhost/fss/public/api/v1/countries/index \
  -H "Content-Type: application/json" \
  -d '{}'
{
  "status": "success",
  "data": [
    {
      "id": 1,
      "name": "United States",
      "code": "US"
    },
    {
      "id": 2,
      "name": "Canada",
      "code": "CA"
    }
  ]
}

Get Countries

Get a list of all available countries.

Endpoint

POST /api/v1/countries/index
This endpoint does not require authentication

Headers

X-API-Token
string
required
Your API access token. You can also set this globally in the API playground.
platform
string
required
The platform making the request: WEB, IOS, or ANDROID.

Request Body

{}

Response

status
string
Success status
data
array
Array of countries
curl -X POST http://localhost/fss/public/api/v1/countries/index \
  -H "Content-Type: application/json" \
  -d '{}'
{
  "status": "success",
  "data": [
    {
      "id": 1,
      "name": "United States",
      "code": "US"
    },
    {
      "id": 2,
      "name": "Canada",
      "code": "CA"
    }
  ]
}