/auth/service/{id} - Per-add-on entitlement check

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://api.my.nethesis.it/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "my.nethesis.it MCP server": {
    "url": "https://api.my.nethesis.it/mcp"
  }
}

Close
GET /auth/service/{id}

Returns 200 only when the system holds an active grant (not revoked, not expired; valid_until null = perpetual) for the requested service id, 403 otherwise. The id may be the canonical catalog id or a legacy wire alias (the feeds still call ng-blacklist while the canonical id is nsec-blacklist).

?scope=<app-instance> also matches grants narrowed to that application instance (e.g. nethvoice1); a system-wide grant (empty scope) covers every instance. Without scope only system-wide grants count.

Path parameters

  • id string Required

    Service id (canonical catalog id or legacy alias)

Query parameters

  • scope string

    Application instance to check an instance-narrowed grant for

Responses

  • 200 application/json

    The system holds an active grant for the service

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object | null
  • 401 application/json

    Unauthorized - invalid or missing token

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object | null
  • 403 application/json

    Valid subscription but the service is not enabled for this system

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object | null
  • 500 application/json

    Internal server error

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object | null
GET /auth/service/{id}
curl \
 --request GET 'https://collect.your-domain.com/api/auth/service/ng-blacklist' \
 --user "username:password"
Response examples (200)
{
  "code": 200,
  "message": "authorized",
  "data": {}
}
Response examples (401)
{
  "code": 401,
  "message": "invalid token",
  "data": {}
}
Response examples (403)
{
  "code": 403,
  "message": "service not enabled for this system",
  "data": {}
}
Response examples (500)
{
  "code": 500,
  "message": "internal server error",
  "data": {}
}