curl -X POST https://hapi.7331.org/v1/admin/bots/111222333444555666/regenerate-key \
-b cookies.txt
{
"bot": {
"discord_id": "111222333444555666",
"name": "Hansel Bot",
"owner_discord_id": "123456789012345678",
"bot_type": 1,
"is_active": true,
"rate_limit_per_hour": 1000,
"guilds": 250,
"users": 50000,
"is_verified": true,
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2026-03-05T12:00:00Z"
},
"api_key": "hbot_abc123def456...",
"message": "API key regenerated for bot Hansel Bot",
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2026-03-05T12:00:00Z"
}
Regenerate a bot’s API key. The old key is immediately invalidated (admin only).
curl -X POST https://hapi.7331.org/v1/admin/bots/111222333444555666/regenerate-key \
-b cookies.txt
{
"bot": {
"discord_id": "111222333444555666",
"name": "Hansel Bot",
"owner_discord_id": "123456789012345678",
"bot_type": 1,
"is_active": true,
"rate_limit_per_hour": 1000,
"guilds": 250,
"users": 50000,
"is_verified": true,
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2026-03-05T12:00:00Z"
},
"api_key": "hbot_abc123def456...",
"message": "API key regenerated for bot Hansel Bot",
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2026-03-05T12:00:00Z"
}
curl -X POST https://hapi.7331.org/v1/admin/bots/111222333444555666/regenerate-key \
-b cookies.txt
{
"bot": {
"discord_id": "111222333444555666",
"name": "Hansel Bot",
"owner_discord_id": "123456789012345678",
"bot_type": 1,
"is_active": true,
"rate_limit_per_hour": 1000,
"guilds": 250,
"users": 50000,
"is_verified": true,
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2026-03-05T12:00:00Z"
},
"api_key": "hbot_abc123def456...",
"message": "API key regenerated for bot Hansel Bot",
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2026-03-05T12:00:00Z"
}
Was this page helpful?