---
title: "static IP Setup"
method: POST
path: "/ip/setIP"
tags: ["IP Setup"]
---

# static IP Setup

`POST /ip/setIP`

You can use this API to set the Primary & Secondary IP to be mapped to your account in order to enable Order Placement.

## Headers

- `access-token` string, required

## Request body

- UserIPRequest
  - `dhanClientId` string — User specific identification generated by Dhan
  - `ip` string, required — User specific IP
  - `ipFlag` string, required — | **Enum Values** | **Description** | |-----------------|-----------------------------| | PRIMARY | Primary IP | | SECONDARY | Secondary IP |

## Response `200`

Successful operation

- UserIPResponse
  - `message` string
  - `status` string — | **Enum Values** | **Description** | |-----------------|----------------| | SUCCESS | Operation was successful | | ERROR | Operation failed |

---

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