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.
What to do
- Ask Anis staff to restart the enrolment; it issues a new invitation. A new key pair on the same invitation is refused the same way.
- 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
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"
}