Docs
Notification Webhook

Notification Webhook

This documentation includes the returned json structures of webhook notification

Gneral Structure

All notification webhook will return in format below:

{
  "type": "go_api_quota_exchange_failed", 
  "time": 1709035361,
  "message": "Test",
  "detail": {} 
}

The Structure of detail for different notification types

Notification Typetypedetail
GoAPIQuotaExchangeFailed"go_api_quota_exchange_failed"
{
"quota_type": "", // type of quota, MJ/gpts quota
"credis_remain": 0 // current remaining credits
}
MJPenaltyTriggered"mj_penalty_triggered"
{
"penalty_type": "relax", // relax or error
"task_id": "", // the taskID that is triggering the error
"threshold": 100, // allowable daily error for this plan
"cap_usage": 101 // number of error already made today
}
MJBotBannded"mj_bot_banned"
{
"bot_id": 1,
"bot_name": ""
"reason": "reason",
"block_until": 0
}
MJBotSubscriptionExpired"mj_bot_subscription_expired"
{
"bot_id": 1,
"bot_name": ""
}
NoActiveMJBot"no_active_mj_bot"
{}
MJBotNoFasthour"mj_bot_no_fasthour"
{
"bot_id": 1,
"bot_name": ""
"subscription_plan": "pro"
}
GPTAccountUnavailable"gpt_account_unavailable"
{
"gpt_account_id": 1,
"gpt_account_name": "name",
"reason": "xxx"
}
GPTUsageLimitReached"gpt_usage_limit_reached"
{
"gpt_account_id": 1,
"gpt_account_name": "name",
"limit_until": 0 // when the limit will be lifted
}
MJBotCaptchaRequired"mj_bot_captcha_required"
{
"bot_id": 0,
"bot_name": ""
}