---
title: "Get country"
method: GET
path: "/core/countries/{country}"
tags: ["Countries"]
---

# Get country

`GET /core/countries/{country}`

## Request

- Base URL: `https://api.enterprise.sandbox.uphold.com`
- URL: `https://api.enterprise.sandbox.uphold.com/core/countries/{country}`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `/core/oauth2/token`
- TypeScript: <https://skmtc.dev/uphold/apis/core-api/docs/core/countries/:country/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieve a country by code.

## Path parameters

- `country` string, required

## Headers

- `X-Uphold-User-Ip` union
  - string, ipv4
  - string, ipv6
- `X-Uphold-User-Agent` string
- `X-Uphold-User-Origin` string
- `X-Uphold-User-Country` string
- `X-Uphold-User-Subdivision` string
- `X-Uphold-User-City` string

## Response `200`

Country retrieved.

- object
  - `country` Country
    - `code` string, required: The unique code of the country.
    - `name` string, required: The name of the country.
    - `asset` string, required: The national asset of the country.
    - `restrictions` object[], required: The restrictions of the country.
      - `scope` 'citizenship' | 'geolocation' | 'phone' | 'residence': The scope of the restriction.
    - `subdivisions` object[], required: The subdivisions of the country.
      - `code` string, required: The unique code of the subdivision.
      - `name` string, required: The name of the subdivision.
      - `restrictions` object[], required: The restrictions of the country.
        - `scope` 'residence': The scope of the restriction.

## Other responses

- `401`: Unauthorized.
- `404`: Resource not found.
- `429`: Too Many Requests.

---

[API](https://skmtc.dev/uphold/apis/core-api.md) - [All operations](https://skmtc.dev/uphold/apis/core-api/llms.txt) - [OpenAPI document](https://skmtc.dev/uphold/apis/core-api/revisions/6c663575c57a?raw)
