On this page

    1. Home
    2. API
    3. API Reference
    4. Network
    5. Blocked Locations

    title: Blocked Locations short_name: Blocked Locations description: Retrieve the list of geographical locations currently blocked by your network.

    Blocked Locations

    This endpoint provides a list of all geographical locations that have been restricted via the block-location endpoint. When a location is blocked, providers in your network will not route traffic through these areas.


    GET /network/blocked-locations

    Fetch the list of locations currently on your network's blocklist.

    Request

    GET /network/blocked-locations

    Headers:

    {
      "Host": "api.bringyour.com",
      "Authorization": "Bearer YOUR_JWT_TOKEN",
      "Accept": "application/json"
    }

    Response

    200 Success

    Status: 200 OK Content-Type: application/json

    {
      "blocked_locations": [
        {
          "location_id": "string",
          "location_name": "string",
          "location_type": "string",
          "country_code": "string"
        }
      ]
    }

    Fields

    FieldTypeDescription
    blocked_locationsarrayA list of geographical locations currently being blocked.
    blocked_locations[].location_idstringUnique UUID of the blocked location.
    blocked_locations[].location_namestringHuman-readable name of the location.
    blocked_locations[].location_typestringThe type of location (e.g., country, region, city).
    blocked_locations[].country_codestringISO 3166-1 alpha-2 country code.

    Example

    HTTP Request

    GET /network/blocked-locations HTTP/1.1
    Host: api.bringyour.com
    Authorization: Bearer YOUR_JWT_TOKEN
    Accept: application/json

    Successful HTTP Response

    {
      "blocked_locations": [
        {
          "location_id": "loc_de_001",
          "location_name": "Germany",
          "location_type": "country",
          "country_code": "DE"
        }
      ]
    }


    Powered by Sudoc v2.5.0
    Hide table of contents