Error codes · Enrolling a key
Invitation already used
Code
key_duplicateStatus409
If this was an orderNever returned when buying
Send it again unchanged?No — change something first
.NET SDK
EnrollmentRefusedExceptionWhat it means
This invitation has already taken a key — for example, the key submission was sent again after its answer was lost. An invitation takes exactly one key, so a newly generated key pair is refused too. On the proof, this code means the proof was already accepted: its answer was lost and the same proof was sent again.
What to do
- On the proof: read the enrolment status before anything else — the key is waiting for Anis staff or already active. Do not ask for a restart.
- On the key submission: read the enrolment status first. To enrol a different key, ask Anis staff to restart the enrolment; it issues a new invitation.
- Next time, save the key submission’s answer (it carries the challenge) before anything else.
Where you can meet it
- POSTSubmit a public key
/v1/enrollments/{invitationId}/keys - POSTProve you hold the key
/v1/enrollments/{invitationId}/proof
Example
The body of the refusal. Its type is the address of this page.
{
"type": "https://developers.anis.ly/errors/key-duplicate",
"title": "Invitation already used",
"status": 409,
"code": "key_duplicate",
"requestId": "01J9R2K8T4V6XQ0M3B7C5D9E1F"
}