Current subscription (removed)
Deprecated
GET
/subscriptions/current
const url = 'https://api.nsin.ir/subscriptions/current';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.nsin.ir/subscriptions/current \ --header 'Authorization: Bearer <token>'Removed. Subscriptions are per domain. Always returns 410; use
GET /domains/{domain}/subscription instead.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Missing, malformed, revoked or expired API key — or the owning account is inactive.
Media type application/json
The single error shape used by every endpoint.
object
error
required
Human-readable description of what went wrong.
string
Examples
Example invalidKey
{ "error": "invalid API key"}Endpoint removed.
Media type application/json
object
error
string
message
string
Example
{ "error": "subscription_moved_to_domain"}