PteroWatch

PteroWatch

A tool programmed in Go to automatically restart 'hung' game servers/containers via a Pterodactyl API.

Authentication

All requests are authenticated with a personal API key.

You need to log in to use the API.

After logging in, generate an API key from the panel API page and send it as a Bearer token.

Log in →

Example request

curl "/api/content/asset/3" \
  -H "Authorization: Bearer <YOUR_API_KEY>"

Endpoints

Public read-only endpoints.

GET
/api/content/asset

List items (paginated, filterable).

ParameterInRequiredDescription
pagequerynoPage number (1-based).
limitquerynoItems per page (clamped to your key limit).
minequerynoSet to 1 to return only items you own.
searchquerynoFilter by name.
tagsquerynoComma-separated tag names.
categoryIdsquerynoComma-separated category ids.
communityIdquerynoScope to a community.
nsfwquerynoInclude NSFW (1/0).
curl example
curl -v -X "GET" -H "Authorization: Bearer <YOUR_API_KEY>" /api/content/asset
GET
/api/content/asset/3

Fetch this item.

No parameters — the item id in the path is all that's needed.

curl example
curl -v -X "GET" -H "Authorization: Bearer <YOUR_API_KEY>" /api/content/asset/3
GET
/api/content/asset/3/{relation}

Read a relation set (tags | media | releases | links | installers | items).

ParameterInRequiredDescription
relationpathyestags | media | releases | links | installers | items
pagequerynoPage number (1-based).
limitquerynoItems per page.
curl example
curl -v -X "GET" -H "Authorization: Bearer <YOUR_API_KEY>" /api/content/asset/3/{relation}