---
title: "Test a list of IP addresses against the repository's current GeoIP rules."
method: POST
path: "/repos/{owner}/{identifier}/geoip/test/"
tags: ["repos"]
---

# Test a list of IP addresses against the repository's current GeoIP rules.

`POST /repos/{owner}/{identifier}/geoip/test/`

Test a list of IP addresses against the repository's current GeoIP rules.

## Request body

- RepositoryGeoIpTestAddress
  - `addresses` string[], required — The IP addresses to test against this repository

## Response `201`

Successfuly tested addresses against the repository's GeoIP rules

- RepositoryGeoIpTestAddressResponse
  - `addresses` RepositoryGeoIpTestAddressResponseDict[], required — The IP address test results ordered by allowed
    - `allowed` boolean, required — The result of the IP test
    - `country_code` string, nullable, required — The country code of the tested IP address
    - `ip_address` string, required — The IP address that was tested
    - `reason` string, required — The reason for the result

## Other responses

- `400` — Request could not be processed (see detail).
- `402` — Geo/IP restrictions are not available; upgrade your account!
- `404` — Owner namespace or repository not found
- `422` — Missing or invalid parameters (see detail).

---

[API](https://skmtc.dev/cloudsmith/apis/cloudsmith-api-v1.md) · [All operations](https://skmtc.dev/cloudsmith/apis/cloudsmith-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cloudsmith/cloudsmith-api-v1/revisions/4d7879df9b2f/schema)
