---
title: "Create an IP allowlist rule"
method: POST
path: "/v1/ip-allowlist"
tags: ["IP Allowlist"]
---

# Create an IP allowlist rule

`POST /v1/ip-allowlist`

This endpoint allows you to create an IP allowlist rule.

If you are using a personal access token, you need to have an access level superior or equal to `manager`.

## Request body

- object
  - `tag` string, required — Tag for the IP allowlist rule
  - `ip_ranges` string[], required — The IP addresses (individual IPs or CIDR notation) to include in the IP allowlist rule

## Response `201`

IP allowlist rule created

- object
  - `id` string, uuid
  - `tag` string — Tag for the IP allowlist rule
  - `created_at` string, date-time — Creation date of the IP allowlist rule
  - `ip_ranges` string[] — The IP addresses (individual IPs or CIDR notation) included in the IP allowlist rule

## Other responses

- `400` — Invalid data
- `401` — Invalid API key
- `403` — Forbidden Call
- `409` — Data conflict
- `503` — API under maintenance

---

[API](https://skmtc.net/gitguardian/apis/gitguardian-api.md) · [All operations](https://skmtc.net/gitguardian/apis/gitguardian-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitguardian/gitguardian-api/revisions/511b067cdcb1/schema)
