Delete PixVerse account
Table of contents
https://api.useapi.net/v1/account/
channel
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 DELETE https://api.useapi.net/v1/pixverse/account/<channel>
-
const channel = "Previously configured channel id"; const apiUrl = `https://api.useapi.net/v1/pixverse/account/${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 channel = "Previously configured channel id" apiUrl = f"https://api.useapi.net/v1/pixverse/account/{channel}" token = "API token" headers = { "Content-Type": "application/json", "Authorization" : f"Bearer {token}" } response = requests.delete(apiUrl, headers=headers) print(response, response.json())