---
title: "get the static IP"
method: GET
path: "/ip/getIP"
tags: ["IP Setup"]
---

# get the static IP

`GET /ip/getIP`

Fetch the current Primary & Secondary IP for your account.

## Headers

- `access-token` string, required

## Response `200`

Successful operation

- GetIPDetailsResponse
  - `modifyDatePrimary` string — Date when secondary IP can be modified again (format: yyyy-MM-dd)
  - `modifyDateSecondary` string — Date when primary IP can be modified again (format: yyyy-MM-dd)
  - `primaryIP` string — Primary IP address associated with the user
  - `secondaryIP` string — Secondary IP address associated with the user
  - `detectedIP` string — Detected client IP address
  - `ipMatchStatus` 'PRIMARY_MATCH' | 'SECONDARY_MATCH' | 'MISMATCH' | 'NOT_CONFIGURED' — | **Enum** | **Description** | |-----------------|----------------------------------------------| | PRIMARY_MATCH | Matches primary IP | | SECONDARY_MATCH | Matches secondary IP | | MISMATCH | No match found | | NOT_CONFIGURED | No IP configured |
  - `ordersAllowed` boolean — Flag indicating whether order placement is allowed based on IP match

---

[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)
