# Consent and withdrawal

> What a candidate agrees to before a scan, what B55 records, and how withdrawing deletes their data and tells you.

Source: https://docs.b55.online/consent

In live mode a candidate consents, per job, before anything is collected. The scan upload is refused until they have (`409 consent_required`).

## Consent

On the apply page the candidate signs in with GitHub and sees, in plain words:

- which company is asking, and for which role
- exactly what is shared and what never leaves their laptop
- how long the data is kept: raw scan 30 days, report 180 days by default
- whether the hiring team's B55 AI is on for this account. It is **off by default**. When it is on, anonymised parts of the report (never code) may go to OpenAI
- that they are 18 or older
- that they can withdraw at any time

B55 keeps a **consent record** for each agreement: the exact notice text and version they saw, what was shared, and when. After they consent, the candidate gets a **receipt email** with a one-click withdraw link and a link to their own page, `/me`. Email is in test mode for now, so receipts reach only the project owner's address until a sending domain is set up.

## Withdrawal

A candidate can withdraw at any time from:

- the apply page
- their `/me` page, for any job they applied to
- the withdraw link in their receipt email

Withdrawing:

1. deletes their report, their raw scan and their personal fields (name, email, GitHub login);
2. marks the candidate **withdrawn** on your job, with no report and no identity;
3. sends your endpoints a `consent.revoked` [webhook](/webhooks#events), carrying ids only;
4. makes `GET /v0/reports/{report_id}` for their old report return `404`.

It cannot be undone. The candidate has to apply and consent again to be reassessed.

## What you should do on `consent.revoked`

Delete any copy of the report you made on your side, in your ATS or database. B55 can delete only what it holds.

## Retention

Raw scan data is deleted after 30 days and reports after 180 days, unless the account shortened the period. The full list is on [Privacy & consent](/privacy#retention).
