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

Current subscription (removed)

gethttps://api.nsin.ir/subscriptions/current

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

Removed. Subscriptions are per domain. Always returns 410; use GET /domains/{domain}/subscription instead.

Responses

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"
}
410Endpoint removed.

Content type: application/json

  • errorstring
    One of: "subscription_moved_to_domain"
  • messagestring
json
{
  "error": "subscription_moved_to_domain",
  "message": "string"
}

Example request

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