latestOpenAPI 3.0.3GitGuardian2026-08-201871515.0 MB

511b067cdcb1

IP Allowlist

Create an IP allowlist rule

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.

post/v1/ip-allowlist

Request body

tagstring required

Tag for the IP allowlist rule

ip_rangesstring[] required

The IP addresses (individual IPs or CIDR notation) to include in the IP allowlist rule

Example request

{
  "tag": "Main office",
  "ip_ranges": [
    "35.153.173.97",
    "10.0.0.0/24"
  ]
}

Response

IP allowlist rule created

idstring uuid
tagstring

Tag for the IP allowlist rule

created_atstring date-time

Creation date of the IP allowlist rule

ip_rangesstring[]

The IP addresses (individual IPs or CIDR notation) included in the IP allowlist rule

Example response

{
  "id": "d45a123f-b15d-4fea-abf6-ff2a8479de5b",
  "tag": "Main office",
  "created_at": "2019-08-22T14:15:22Z",
  "ip_ranges": [
    "35.153.173.97",
    "10.0.0.0/24"
  ]
}