DocsYour data
Export and delete your data
How to take a copy of your organization's data, remove one end user's data, move a project to another organization, and close your account.
These steps use the API today. The same actions will come to the app's settings screens; this page will show them when they ship.
Export all of your organization's data
An owner of the organization can ask for one JSON file that holds what Bugroo records about the organization and about the owner who asks. It is built as a background job, so you start it, then read its status until the file is ready.
| Call | Who may call it | It answers |
|---|---|---|
POST /api/0/organizations/{org}/bugroo/data-export/ | An owner of the organization, as a person. An organization token is refused. | The export, with its id and a status. 201 when it is new, 200 when the same export is already running. |
GET /api/0/organizations/{org}/bugroo/data-export/{export_id}/ | The same: an owner, as a person. | The export and its status: EARLY while it runs, VALID when the file is ready, EXPIRED after it is deleted. Add ?download=true to receive the file once it is ready. |
What the file holds
- The organization and its settings: name, slug, open membership, default role, two-factor and join request policy, allowed email domains, audit log retention, attachments role, data scrubbing rules and plan id.
- Its members (user id, email, name, role, invite state and teams), its teams with member counts, and its projects.
- Its audit log, the newest 20,000 rows. A
truncatedfield tells you when there were more. - The owner who asked: their user record (id, email, name, creation date), their membership and their API tokens (label, prefix, scopes and dates, never the token or its hash).
What it leaves out
- Events, logs, replays and attachments. They live in each project's own store and are exported with the product's other endpoints.
- Passwords and password hashes, two-factor secrets and recovery codes, invite tokens, the sealed model key for Roo AI, SSO identities and sessions.
How you get it
When the file is ready, Bugroo emails the owner who asked, with the download path and the date the file is deleted. Use that path while you are signed in, or read the status above and download with ?download=true. The file is kept for 28 days, then deleted.
Export tag values or logs as CSV
This is the Sentry-compatible export. It writes a CSV file, and it covers two things: the values of one tag on one issue, and logs. It is not a dump of all events.
| Call | Who may call it | It answers |
|---|---|---|
POST /api/0/organizations/{org}/data-export/ | A token or session with the event:read, event:write or event:admin scope. | The export, with its id and a status. 201 when it is new, 200 when the same export is already running. |
GET /api/0/organizations/{org}/data-export/{export_id}/ | The same scopes. You must be able to reach every project the export reads. | The export and its status. Add ?download=true to stream the CSV once the status is VALID. |
The body of the POST needs two fields.
query_type:Issues-by-Tag,DiscoverorLogs.query_info: an object. ForIssues-by-Tagit names theproject, the issue asgroupand the tagkey. ForDiscoverandLogsit reads logs:field(up to 20 names),query, optionalprojectids (or-1for all you can reach), a time range asstatsPeriodorstartandend, and optionalsortoftimestampor-timestamp.Discoverneeds at least one field and aquery, which may be an empty string, and it is read as logs.
You may add limit, a whole number of at least 1, and an environment in the query string. As with the organization export, the file is kept for 28 days and the person who asked gets an email when it is ready.
Remove one end user's data
An organization admin can ask Bugroo to remove one end user's events. The end user is the user on your events (id, email, username or IP address), not a Bugroo account.
| Call | Who may call it | It answers |
|---|---|---|
POST /api/0/organizations/{org}/bugroo/data-removals/ | The org:admin scope, from a person or an organization token that holds it. A member is refused. | Starts a removal. 202 with id, status, createdAt and scope. |
GET /api/0/organizations/{org}/bugroo/data-removals/ | The org:admin scope. | Your removals, newest first, up to 100. |
GET /api/0/organizations/{org}/bugroo/data-removals/{id}/ | The org:admin scope. | One removal. Another organization's id answers 404. |
The body names exactly one of id, email, username or ip_address. It may add projects, a list of project slugs or ids in the organization; the default is every project. Asking again for the same person and the same scope while a removal is open returns the same id and does not use up a request. Each organization may start 10 removals an hour.
Statuses
| Status | Meaning |
|---|---|
queued | Accepted, nothing removed yet. |
removing | The live store is being cleared, in bounded rounds. |
pending in long-term storage | The live store is done. The long-term delete runs in the daily job, so this stays until that job confirms. |
complete | Every part that applies is confirmed. |
failed | A part gave up. The answer carries a reason. |
The detailed answer adds parts.liveStore and parts.longTermStorage (each with its own state and detail), eventsRemoved and notRemoved. A removal usually reads pending in long-term storage until the next daily run.
What is removed
- The user's events in each project in scope, and their payloads. When a payload shares a stored object with other events, the object is rewritten without the removed events.
- Attachments stored under the removed events.
- The user's row in the issue user list, with the issue's user count and event count recomputed from what remains, and the tag value counts of the removed events.
- The user's rows in the user impact records, and the user count there.
- In long-term storage, the user's rows in the events table.
- Feedback and user reports that carry the user's email (email removal) or name (username removal), or that name a removed event or were taken during a removed replay, with their attachments.
- Replays that carry the user's id, username or email, with their segments, recordings and click records.
- Performance transactions for the user: the index rows are deleted and each stored body is overwritten with an empty one.
An issue left with no events is deleted. An issue that still has other users' events stays.
What stays, and why
Each line is also returned in notRemoved with every answer.
- Rolled-up counts, such as the hourly counts and the event and day totals behind user impact. They are numbers with no user, address or text in them, and they feed quotas and charts. Subtracting from them would make quotas wrong without removing anything that identifies a person.
- First seen and last seen on tag values that other people's events also count. The row holds a time and a count, with no user, event id or text, and it belongs to the other users who still use that value.
- Performance transaction bodies the sampler did not keep. Nothing points at them, so a removal cannot find them. They are removed after 30 days.
- Performance spans in long-term storage. They have no user column, so they cannot be matched.
- A person who appears under several identifiers is removed once per identifier you ask for.
IP addresses and project subsets
Events keep no key for an IP address, so an ip_address removal reads each payload and compares a hash of the address. It is slower, it looks only at events and the feedback and attachments linked to them, and its long-term storage part reads not applicable. A removal limited to some projects also has that part not applicable, because the long-term delete matches an organization, not a project. Send no projects to reach it.
How the identifier is kept
The request stores a hash of the identifier, never the value. The key that finds the user's events is held in plain text only while the removal is open, then cleared when it settles. The identifier appears in no log line and no answer. A hash of a short value, such as a short username, can be guessed by someone with database access, so the hash is not an anonymous record.
Move a project to another organization
An organization admin asks to move a project, and an owner of the other organization accepts. Accepting needs a signed-in browser session that has been verified recently, and so does asking when you ask with a session.
| Call | Who may call it | It answers |
|---|---|---|
POST /api/0/projects/{org}/{project}/transfer/ | The org:admin scope, as a person: an organization token is refused. A session must have been verified recently. Three requests an hour. | 204. Bugroo emails the new owner a link that works once and expires in 2 days. A newer request replaces an older one. |
GET /api/0/accept-transfer/?data={token} | A browser session, verified recently, of the person the link was sent to. | The project, and the organizations that person owns. |
POST /api/0/accept-transfer/ | The same. | 204 when the project has moved. |
The request body is {"email": "..."}: the email address of an owner of another organization. If no other active organization has an owner with that address, the answer is 404. To accept, the new owner sends data (the token from the link) and organization (the slug of an organization they own, other than the one the project is leaving).
What moves with it
- The project keeps its id, its DSN keys and its issues. Its slug stays unless the new organization already has it, in which case a short suffix is added.
- Rules, metric alerts, monitors and uptime checks keep their configuration and move with it. A monitor whose slug the new organization already has is removed. An alert rule owner who is not in the new organization is cleared.
What is dropped
- The project's links to the old organization's teams, releases and status pages.
- Code mappings and CODEOWNERS files built on them, and issue links to GitHub and to issue trackers.
- Public share links for the project's issues. The new organization can share again.
Both organizations' audit logs record the move.
Close your account
You can close your own account. This is a signed-in browser session only, and the session must have been verified recently; a token is refused.
| Call | Who may call it | It answers |
|---|---|---|
DELETE /api/0/users/{user_id}/ | Your own account, signed in with a browser session. user_id is me or your own id. | 204, and your session cookies are cleared. |
The body must have organizations, a list of organization slugs, which may be empty. Each listed organization that you own is scheduled for deletion. If you are the only owner of an organization and you did not list it, the request stops with 400 and names those organizations, so nothing is deleted that you did not name. Either list each one or add another owner first. A slug of an organization you do not own is ignored. A hardDelete request is refused with 403.
What closing does
- You leave every organization, and your team memberships go. Organizations that stay get a record that you left.
- Your API tokens and OAuth refresh tokens are revoked, and every session you had, on every browser, ends.
- The account is made inactive.
- Your notification settings and options are deleted, and so is the record of reports you were sent.
The code makes the account inactive and does not delete the user record. A record of the closing is kept in the account's audit log.