Skip to main content

Get list of enabled countries (public)

GET 

/truckers/countries/

Retrieves a paginated list of all enabled countries in the system. This is a public endpoint but requires basic authentication.

Use Cases:

  • Display a list of available countries for selection in forms
  • Filter operations by enabled country
  • Integration with other systems requiring a country reference

Notes:

  • Only returns countries with enabled=true
  • Sensitive fields such as _id, deleted, createdAt are omitted

Request

Responses

Successful response returning a paginated list of countries with pagination metadata.

Example:

{
docs: [
{
code: ES,
name: Spain,
regex: ^[A-Z0-9]{9}$
},
{
code: FR,
name: France,
regex: ^[A-Z0-9]{10}$
}
],
total: 2,
limit: 10,
page: 1,
pages: 1
}