Countries

Get country by code

Retrieve country for the specified country code. Requires Bearer JWT authentication.

get/country/{country_code}

Request

  • Base URL
    https://queries.test.envia.com
  • URL
    https://queries.test.envia.com/country/{country_code}
  • Auth
    HTTP bearer

Path parameters

country_codestring required
Example:MX

Two-digit country code (e.g., MX, US, CA)

Response

Successful response

Example response

{
  "data": [
    {
      "code": "MX",
      "name": "Mexico",
      "phone_code": "52"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.