Export current user's data
PreviewReturns all user-owned data in a structured JSON format for GDPR compliance.
/v1/users/me/exportSee authentication for credentials and permissions.
Responses
200User data export
User data export
Full user data export response (GDPR compliance)
object
Timestamp the export was generated (RFC 3339).
All organizations the user is a member of, plus their role in each.
Exported organization membership
object
Human-readable name. Safe to render in user-facing messages.
Owning organization’s internal numeric id (not part of the public identifier surface).
Prefixed public identifier. See ID Schema.
User’s role within this organization (owner, admin, member).
Personal access tokens owned by the user (no sensitive secrets — just metadata).
Exported personal access token metadata (no sensitive data)
object
Timestamp when this resource was created (RFC 3339).
Expiry timestamp (RFC 3339). None for non-expiring tokens.
Prefixed public identifier. See ID Schema.
Timestamp of the token’s most recent successful use (RFC 3339). None if never used.
Human-readable name. Safe to render in user-facing messages.
Granted scopes as a JSON array of strings.
First few characters of the token, safe to display for identification.
Private profile change records owned by the exporting account.
Profile data for the exporting user.
object
Auth provider that issued this identity (google, github, password, etc.).
URL to the user’s avatar image. None when the user hasn’t set one.
Timestamp when this resource was created (RFC 3339).
Email address associated with the user account.
Whether the user’s email address has been verified via the auth provider.
Prefixed public identifier. See ID Schema.
Human-readable name. Safe to render in user-facing messages.
Timestamp when this resource was last updated (RFC 3339).
Example
{ "exported_at": "2026-05-25T12:00:00Z", "organizations": [ { "name": "Acme Corp", "org_id": 42, "public_id": "org_01933b5a000070008000000000000001", "role": "owner" } ], "personal_access_tokens": [ { "created_at": "2026-01-15T10:30:00Z", "expires_at": "2027-01-01T00:00:00Z", "id": "019e8957539a7aa0bb92e0d2b49427b1", "last_used_at": "2026-05-25T09:14:00Z", "name": "CI/CD deploy token", "scopes": [ "sessions:read", "sessions:write" ], "token_prefix": "evr_pat_x4z2..." } ], "user": { "auth_provider": "google", "avatar_url": "https://cdn.example.com/avatars/alex.png", "created_at": "2026-01-15T10:30:00Z", "email": "alex@example.com", "email_verified": true, "id": "user_01933b5a000070008000000000000001", "name": "Alex Rivera", "updated_at": "2026-04-20T14:22:00Z" }}401Unauthorized
Unauthorized
404User not found
User not found
500Internal server error
Internal server error