---
title: "Enable IP Allow List"
method: POST
path: "/ip_allow_list"
tags: ["IP Allow List"]
---

# Enable IP Allow List

`POST /ip_allow_list`

## Request

- Base URL: `https://api.smtp2go.com/v3`
- URL: `https://api.smtp2go.com/v3/ip_allow_list`
- Auth: one of:
  - API key in header `X-Smtp2go-Api-Key`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/smtp2go/apis/smtp2go-api-v3-0-4/docs/ip_allow_list/post.ts> (a function with typed inputs; its response is checked against the schema)

Enables/Disables an IP allow list.

## Request body

- object
  - `api_key` string, required
  - `enabled` boolean
  - `type` string: Either 'smtp' or 'api' depending on which IP allow list you want to operate on

## Response `200`

Success – IP allow list status returned

- object
  - `request_id` string: Unique ID for this request
  - `data` object
    - `enabled` boolean

## Other responses

- `400`: Bad Request Response
- `429`: Rate Limit Exceeded

## Changes

- **2026-11-03** `313dcf9dd255`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/smtp2go/apis/smtp2go-api-v3-0-4/changes/ip_allow_list/post.md)

---

[API](https://skmtc.dev/smtp2go/apis/smtp2go-api-v3-0-4.md) - [All operations](https://skmtc.dev/smtp2go/apis/smtp2go-api-v3-0-4/llms.txt) - [OpenAPI document](https://skmtc.dev/smtp2go/apis/smtp2go-api-v3-0-4/revisions/313dcf9dd255?raw)
