Authorization header.
- List researchers
- Add researcher
- Remove researcher
- Toggle access mode
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
List, add, and remove researchers from the HackGATE site allowlist. Control which email addresses can access your test environment.
Authorization header.
GET https://api-admin.hackgate.io/api/sites/getHackers/{id}
Bearer <token>curl https://api-admin.hackgate.io/api/sites/getHackers/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
-H "Authorization: Bearer <token>"
[
{
"id": "entry-uuid-1",
"email": "alice@example.com",
"siteId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
},
{
"id": "entry-uuid-2",
"email": "bob@example.com",
"siteId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
]
POST https://api-admin.hackgate.io/api/sites/addHacker
Bearer <token>application/json.400 if this email is already on the allowlist.curl -X POST https://api-admin.hackgate.io/api/sites/addHacker \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"siteId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "email": "alice@example.com"}'
[
{
"id": "entry-uuid-1",
"email": "alice@example.com",
"siteId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
]
id returned by getHackers to identify the entry.POST https://api-admin.hackgate.io/api/sites/removeHacker
Bearer <token>application/json.id in the getHackers response.200 on success. No body is returned.curl -X POST https://api-admin.hackgate.io/api/sites/removeHacker \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"id": "entry-uuid-1",
"siteId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"email": "alice@example.com"
}'
{}
allowedHackerType to true to enforce the allowlist. Set it to false to allow any authenticated researcher to connect.POST https://api-admin.hackgate.io/api/sites/allowedHackerType
Bearer <token>application/json.true to restrict access to the allowlist only. false to allow any authenticated researcher.200 on success. No body is returned.# Enable allowlist-only access
curl -X POST https://api-admin.hackgate.io/api/sites/allowedHackerType \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "allowedHackerType": true}'
{}
Was this page helpful?
curl https://api-admin.hackgate.io/api/sites/getHackers/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
-H "Authorization: Bearer <token>"