Guard Packs
GET
/v1/hub/packsList Packs
Browse available guard packs.
Runtime, CI or Admin tokenscope: readoperation_id: packs.list
Authentication
Any bearer token belonging to the org can read this endpoint.
SDK install
pip install znyx-sdknpm install @znyx/sdkQuery parameters
Responses
| Status | Description |
|---|---|
| 200 | Successful Response |
| 422 | Validation Error |
Response schema
totalrequiredinteger
limitrequiredinteger
offsetrequiredinteger
packsrequired
Errors & what triggers them
| Code | Trigger | Fix |
|---|---|---|
| 401 | Missing or expired Authorization header. | — |
| 403 | Token does not have org access (wrong org_id, or insufficient role). | — |
| 404 | Resource does not exist in this org. | — |
Request
curl -X GET 'https://api.znyx.ai/v1/hub/packs' \ -H 'Authorization: Bearer $ZNYX_TOKEN'
Response
application/json
Successful Response
{
"total": 0,
"limit": 0,
"offset": 0,
"packs": [
{
"id": "string",
"name": "string",
"display_name": "string",
"description": null,
"use_case": "string",
"trust_level": "string",
"install_count": 0,
"detector_count": 0
}
]
}Schema: object