Skip to main content
GET
/
geo
/
countries
/
{countryId}
/
states
API to get all states for a country
curl --request GET \
  --url https://api.getenso.ai/geo/countries/{countryId}/states \
  --header 'Authorization: Bearer <token>'
{
  "status": "success",
  "message": "Success",
  "data": {}
}
SystemUser permission: GeoService:getStates

Authorizations

Authorization
string
header
required

JWT bearer token obtained from POST /auth/system-login using your client credentials.

Path Parameters

countryId
string
required

Response

Success

status
string
Example:

"success"

message
string
Example:

"Success"

data
object

Endpoint-specific payload (object, array, or null)