nsindocs Search the docs⌘K
  1. Docs
  2. API reference
  3. Account

Get the edge proxy IP

gethttps://api.nsin.ir/proxy-ip/

Auth: Authorization: Bearer nsin_… or X-Api-Key: nsin_… — see API keys.

What to point DNS at for an externally-hosted zone. For managed domains NSIN sets this automatically when you mark a record proxied.

Prefer cname for subdomains when it is present: a CNAME follows any future change of our addresses, an A record does not. The apex has to use the A addresses in ips. Per-record values (which honour address pins) are on each record's edge_target in the records listing.

Responses

200Proxy IP.

Content type: application/json

  • ipstring

    The first edge address (legacy single value).

  • ipsarray of string

    Every edge address a proxied record publishes.

  • cnamestring

    Hostname to CNAME proxied subdomains at. Empty when not configured.

json
{
  "ip": "string",
  "ips": [
    "string"
  ],
  "cname": "edge.nsin.ir"
}
401Missing, malformed, revoked or expired API key. (A valid key whose account has been deactivated gets 403 account is inactive instead.)

Content type: application/json

  • errorstringrequired

    Human-readable description of what went wrong.

json
{
  "error": "invalid API key"
}
429The key exceeded its request budget (300 requests per minute by default).

Content type: application/json

  • errorstringrequired

    Human-readable description of what went wrong.

json
{
  "error": "rate limit exceeded"
}

Example request

bash
curl -X GET "https://api.nsin.ir/proxy-ip/" \
  -H "Authorization: Bearer $NSIN_API_KEY"
esc