Skip to main content

Export Data

Request an export of all your account data (GDPR compliance). The export is generated asynchronously and delivered via email or webhook.

POST /api/v1/account/export

Authentication

JWT Bearer Token required via Authorization header.

Request Body

FieldTypeRequiredDescription
formatstringNoExport format: json (default) or csv
webhookUrlstringNoURL to notify when export is ready

Example Request

{
"format": "json",
"webhookUrl": "https://your-app.com/webhooks/export-ready"
}

Response

202 Accepted

{
"exportId": "exp_abc123",
"status": "processing",
"format": "json",
"estimatedCompletionAt": "2026-03-29T10:15:00Z",
"message": "Data export initiated. You will be notified when it is ready."
}

Code Examples

cURL

curl -X POST https://api.audiospliter.com/api/v1/account/export \
-H "Authorization: Bearer your_jwt_token" \
-H "Content-Type: application/json" \
-d '{"format": "json"}'

Node.js

const response = await fetch(
'https://api.audiospliter.com/api/v1/account/export',
{
method: 'POST',
headers: {
'Authorization': `Bearer ${jwtToken}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ format: 'json' }),
}
);
const result = await response.json();
console.log(`Export ${result.exportId}: ${result.status}`);

Python

import requests

response = requests.post(
'https://api.audiospliter.com/api/v1/account/export',
headers={'Authorization': f'Bearer {jwt_token}'},
json={'format': 'json'},
)
result = response.json()
print(f"Export {result['exportId']}: {result['status']}")