Delete MiniMax API account

September 25, 2024

Table of contents

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

https://api.useapi.net/v1/accounts/account

The account value should correspond to an account configured previously via a POST /accounts/account 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 DELETE https://api.useapi.net/v1/minimax/accounts/<account> 
    
  • const account = "Previously configured account"; 
    const apiUrl = `https://api.useapi.net/v1/minimax/accounts/${channnel}`; 
    const token = "API token";
    const data = { 
      method: 'DELETE',
      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
    account = "Previously configured account" 
    apiUrl = f"https://api.useapi.net/v1/minimax/accounts/{account}" 
    token = "API token"
    headers = {
        "Content-Type": "application/json", 
        "Authorization" : f"Bearer {token}"
    }
    response = requests.delete(apiUrl, headers=headers)
    print(response, response.json())
    
Try It