Account
exportAccountData
Export account data
Returns all personal data associated with the authenticated user in a structured JSON format. Supports GDPR data portability and CCPA right to know. Audit logs are limited to the most recent 1000 entries.
Usage
const result = await api.account.exportAccountData();Parameters
None.
Response
Promise<AccountExport> — account data export.
Example
import { PgBeamClient } from "pgbeam";
const client = new PgBeamClient({
token: "pbk_...",
baseUrl: "https://api.pgbeam.com",
});
const result = await client.api.account.exportAccountData();Errors
| Status | Description |
|---|---|
| 401 | Missing or invalid authentication. |
| 404 | Resource not found. |
| 429 | Rate limited. Try again later. |