---
title: "Set API Key IP Whitelist"
method: POST
path: "/v1/api_keys/{apiKeyID}/ip_whitelist"
tags: ["API Keys"]
---

# Set API Key IP Whitelist

`POST /v1/api_keys/{apiKeyID}/ip_whitelist`

Set or update IP whitelist for an API key.

## Path parameters

- `apiKeyID` string, required

## Request body

- ApiKeyWhitelistRequest
  - `ip` string, required — IP address to whitelist

## Response `200`

Updated

- GenericResponse
  - `success` boolean, required — Whether the request was successful
  - `error` string — Error message, present only on failure
  - `error_code` string — Semantic error code. See each endpoint's error responses for the specific codes it can return.
  - `deprecated` string — Deprecation notice, if applicable

## Other responses

- `400` — Bad request. The request was malformed or failed validation.
- `401` — Authentication required. Provide a valid JWT or API key.
- `403` — Access denied. The authenticated account does not have permission.
- `429` — Rate limit exceeded. Slow down request frequency.
- `500` — Internal server error.

---

[API](https://skmtc.dev/ondoperps/apis/ondo-perps-rest-api.md) · [All operations](https://skmtc.dev/ondoperps/apis/ondo-perps-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ondoperps/ondo-perps-rest-api/revisions/39df6b2fa672/schema)
