get https://api.dashboard.strev.ai/api/v2/country
List all (or one) countries.
Endpoint URL
{{base_url}}/api/v2/country
Authentication and rate limits
Item | Details |
---|---|
Authentication method | OAuth 2.0 Bearer token |
Rate limit | Rate Limit |
Requests Example
curl --request GET \
--url "https://{{base_url}}/api/v2/country" \
--header "Authorization: Bearer $BEARER_TOKEN"
curl --request GET \
--url "https://{{base_url}}/api/v2/country/{id}" \
--header "Authorization: Bearer $BEARER_TOKEN"
Query Parameters
- id (integer) --
Optional if you want to list a specific country ID. The id parameter is passed as part of the request url
/country/$id
.
Response Syntax
{
"country_name": "string",
"country_numeric_code": integer
}