PgBeam Docs
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

StatusDescription
401Missing or invalid authentication.
404Resource not found.
429Rate limited. Try again later.

On this page