Help · Guide
Recover a lost passkey
Use recovery when a person has lost the passkey they sign in to Provenance with. A code goes to an email or phone they confirmed earlier, and after a 24-hour wait they create a new passkey. During the wait, every other device and contact can cancel it.
Before you begin: the person needs a confirmed contact. Without one, recovery isn't possible, and the home says so when they have one passkey and no contact.
- Codeto a confirmed contact
- 24-hour waitanyone can cancel
- New passkey7 days of restrictions
1. Add a contact ahead of time
In Security (/me/security) → Recovery contacts, the person adds an email or a phone in E.164 form, and confirms it with the 6-digit code it receives. A code works for 10 minutes; five wrong codes lock it, and the person asks for a new one. The invite email they proved when they first accepted an invite is already a contact.
2. Ask for a code
From Lost your passkey? on the sign-in screen, the person enters that contact. POST /v1/personal/recoveries sends the code and answers the same way whether or not the contact belongs to anyone:
curl -s -X POST $PROVENANCE_API/v1/personal/recoveries \
-H "Content-Type: application/json" \
-d '{ "contact": "maya@person.example" }'
const res = await fetch(`${process.env.PROVENANCE_API}/v1/personal/recoveries`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ contact: "maya@person.example" }),
});
const started = await res.json();
import os
import httpx
started = httpx.post(f"{os.environ['PROVENANCE_API']}/v1/personal/recoveries", json={"contact": "maya@person.example"}).json()
{
"object": "person_recovery_start",
"status": "code_sent",
"message": "If that contact belongs to a Provenance account, a code is on its way."
}
3. Confirm the code and wait 24 hours
POST /v1/personal/recoveries/verify starts the wait and returns a recovery_token and ready_at, 24 hours later. Right away, every installed home gets a push and every other confirmed contact gets a message: "Someone is recovering your Provenance account. Cancel it."
| Who can cancel | How |
|---|---|
| Any signed-in home | The banner in the home, or POST / |
| Any other contact or installed home | The link in the message, which opens a confirm page and calls POST / |
One cancel ends the recovery for good. The person starts again if it was them.
4. Create a new passkey
After ready_at, POST /v1/personal/recoveries/complete registers a new passkey and signs the person in on that device. Their other passkeys keep working until they remove them.
For the next 7 days:
- limits can't be raised and rules can only get stricter;
- new network permissions can't be granted;
- batch approval is off, so each request is approved on its own.
Everything the person already allowed keeps working.
Errors you might see
| Code | What to do |
|---|---|
person_ | Check the code, or ask for a new one. |
person_ | Ask for a new code. |
person_ | Come back after ready_. |
person_ | The recovery was cancelled, finished or expired. Start a new one. |
person_ | Wait until restricted_, or approve each request on its own. |