Reset pendingModMessage field for Midjourney account channel

Table of contents

  1. Request Headers
  2. Responses
  3. Model
  4. Examples
  5. Try It

If the API detects a pending moderation message from Midjourney, it will flag the corresponding account by setting the pendingModMessage field to the message provided by Midjourney. This will effectively remove that account from the rotation. Any attempts to make API calls using this account will result in a 596 response code, indicating that the account is under moderation and cannot be used for API interactions.

The best course of action is to log into your Discord account and address the Midjourney moderation message to avoid a potential ban on your Midjourney account. Once you have acknowledged the message, you can use this endpoint to reset the Midjourney account and return it to the rotation.

Please note that the API will also send you an email notification when a Midjourney pending moderation message is detected

https://api.useapi.net/v2/account/midjourney/channel/reset

The channel value should correspond to an account configured previously via a POST request.

Request Headers
Authorization: Bearer {API token}
Responses
Model
{ // TypeScript, all fields are optional
  error: string,
  errorDetails: string,
  code: number
}
Examples
  • curl -H "Accept: application/json" \
         -H "Content-Type: application/json" \
         -H "Authorization: Bearer …" \
         -X POST https://api.useapi.net/v2/account/midjourney/<channel>/reset 
    
  • const channel = "Previously configured channel id with pendingModMessage"; 
    const apiUrl = `https://api.useapi.net/v2/account/midjourney/${channel}/reset`; 
    const token = "API token";
    const data = { 
      method: 'POST',
      headers: {
        'Authorization': `Bearer ${token}`,
        'Content-Type': 'application/json' }
    };
    const response = await fetch(apiUrl, data);
    const result = await response.json();
    console.log("response", {response, result});
    
  • import requests
    channel = "Previously configured channel id with pendingModMessage"
    apiUrl = f"https://api.useapi.net/v2/account/midjourney/{channel}" 
    token = "API token"
    headers = {
        "Content-Type": "application/json", 
        "Authorization" : f"Bearer {token}"
    }
    response = requests.post(apiUrl, headers=headers)
    print(response, response.json())
    
Try It