Reset pendingModMessage
field for Midjourney account channel
December 2023
Table of contents
If the API detects a pending moderation message or a CAPTCHA account verification request 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.
If a CAPTCHA account verification request was issued by MidJourney, you may need to manually execute /imagine
to display the dialog with verification links.
Please note that the API will also send you an email notification when a Midjourney pending moderation message or CAPTCHA account verification request 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}
API token
is required, see Setup useapi.net for details.
Responses
-
{ "error": "Unauthorized", "code": 401 }
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())