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.
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": {}
}