This page contains practical request/response examples.
- Get public modules
curl -sS https://api.ggbot.de/api/modules
- Get public bot by link (example response abbreviated)
curl -sS "https://api.ggbot.de/api/bot/public/ExampleBot?server=griefergames.net"
# Response (200)
# {
# "id": 12345,
# "token": "a1b2c3d4e5f6g7h8i9j0",
# "status": "online",
# "online": true,
# "linkName": "ExampleBot"
# }
- Protected: get bots you own (requires Bearer token)
curl -sS -H "Authorization: Bearer <ACCESS_TOKEN>" https://api.ggbot.de/api/bots
- Protected: send a command to a bot
curl -sS -X POST -H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"command":"say Hello from API"}' \
https://api.ggbot.de/api/bot/a1b2c3d4e5f6g7h8i9j0/command
Tips
- Use the API Reference (/api) to check required parameters and response schemas.
- For large payloads or statistics queries, POST/GET bodies and schema details are available in the OpenAPI docs.
Last modified on