> ## Documentation Index
> Fetch the complete documentation index at: https://docs.derive.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# public/get_region_status

> Returns the caller's IP address, its country code and a region status. The status is `geoblocked` if the exchange refuses private write requests from this region, and `ok` if not. A request from a sanctioned region fails with ofac_blocked (16002). Takes no parameters and requires no authentication.



## OpenAPI

````yaml /openapi.json post /public/get_region_status
openapi: 3.1.0
info:
  title: Derive v3 API
  version: 0.2.0
  description: JSON-RPC 2.0 methods, served over WebSocket and HTTP POST.
servers:
  - url: https://api.derive.xyz/v3
    description: Production (HTTP POST base)
  - url: https://testnet.api.derive.xyz/v3
    description: Testnet (HTTP POST base)
security: []
tags:
  - name: Subaccounts
    description: >-
      List, inspect, and label subaccounts, portfolios, positions, and
      collateral.
  - name: Session Keys
    description: Register, edit, and list delegated signing keys.
  - name: Account
    description: Wallet-level account information and settings.
  - name: Orderbook
    description: Place, replace, cancel, and query orders, trigger orders, and algos.
  - name: RFQ
    description: 'Request-for-quote: send RFQs, quote, and execute block trades.'
  - name: Liquidations
    description: >-
      Open a Dutch auction against a breaching subaccount, quote the auctions
      running right now, bid on them, and review past ones.
  - name: Vault Shareholders
    description: >-
      Deposit into and withdraw from vaults, and track shares, requests, and
      performance.
  - name: Vault Curators
    description: >-
      Create and operate curated vaults: settle deposit and withdrawal requests,
      and manage vault metadata.
  - name: History
    description: >-
      Per-account historical records: orders, trades, transfers, and
      settlements.
  - name: Market Maker Protection
    description: Configure, read, and reset market-maker protection.
  - name: Transfers & Withdrawals
    description: Move collateral between subaccounts, to other wallets, and on-chain.
  - name: Onchain Actions
    description: >-
      L1 onchain actions submitted via OnchainActionManager: register deposit
      addresses, list pending deposits, and inspect onchain action history.
  - name: System
    description: Rate limits, transaction lookups, and live incidents.
  - name: Market Data
    description: Instruments, currencies, tickers, and market-wide feeds.
  - name: Maker Scoring
    description: Maker programs, score breakdowns, and detailed scoring snapshots.
  - name: Referrals
    description: Referral codes and program performance.
  - name: Other
    description: Uncategorized.
paths:
  /public/get_region_status:
    post:
      tags:
        - System
      summary: public/get_region_status
      description: >-
        Returns the caller's IP address, its country code and a region status.
        The status is `geoblocked` if the exchange refuses private write
        requests from this region, and `ok` if not. A request from a sanctioned
        region fails with ofac_blocked (16002). Takes no parameters and requires
        no authentication.
      operationId: public_get_region_status
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmptyRequest'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RegionStatusResponse'
        default:
          description: JSON-RPC error (see Error Codes)
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    $ref: '#/components/schemas/RPCError'
components:
  schemas:
    EmptyRequest:
      description: >-
        This method takes no parameters; send an empty object `{}`.


        Braced rather than a unit struct so schemars emits `{"type": "object"}`:
        a unit struct emits `null`, which contradicts the line above and forced
        every generated client to cast around the params type.
      type: object
    RegionStatusResponse:
      type: object
      required:
        - country
        - ip
        - status
      properties:
        country:
          description: Two-letter country code of the caller's IP.
          type: string
        ip:
          description: Caller's IP address, as the exchange sees it.
          type: string
        status:
          $ref: '#/components/schemas/RegionStatus'
    RPCError:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: integer
          format: int64
        data:
          type:
            - string
            - 'null'
        message:
          type: string
    RegionStatus:
      type: string
      enum:
        - ok
        - geoblocked

````

## Related topics

- [public/get_transaction](https://docs.derive.xyz/api-reference/system/publicget_transaction.md)
- [public/get_trade_history](https://docs.derive.xyz/api-reference/market-data/publicget_trade_history.md)
- [public/get_instrument](https://docs.derive.xyz/api-reference/market-data/publicget_instrument.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.