API reference · Enrolment

Read enrolment status

GET/v1/enrollments/{invitationId}/status

Where the key stands: waiting for proof, waiting for Anis staff, active, or no longer available.

PermissionNone
AuthenticationEnrolment token
Staff-set limits it counts towardNone
.NET SDKenrollment.GetStatusAsync()

Parameters

NameInTypeNotes
invitationIdrequiredpathUUIDA UUID, lower-case with hyphens.

Request

Authorised with Authorization: Enrollment <token>; not signed.

Headers: Accept-Language (optional). The SDKs set all of them for you.

Body: none.

Responses

StatusMeaningBody
200Success.EnrollmentStatus
401Refused: not authenticated.Problem
404Refused: not found, or not yours.Problem
429Refused: a limit was reached.Problem
503No decision: a dependency was unavailable.Problem

Every answer is signed by Anis; the SDKs check it before you see it.

Refusals

Every refusal is a signed problem. Branch on its code; each links to what it means and what to do.

ErrorCodeStatus
Invitation invalidinvitation_invalid401
Not foundresource_not_found404
Rate limitedrate_limited429
Service unavailabledependency_unavailable503
Request timeoutrequest_timeout504
Internal errorinternal_error500

Types

EnrollmentStatus

FieldTypeNotes
keyIdUUIDYour key id.
challengeGenerationintegerThe current challenge generation.
proofStatestringpending, accepted or failed — a proof that did not verify or came too late. After five failed proofs, ask Anis staff to restart the enrolment.
approvalStatestringpending while Anis staff have not confirmed the key, approved once it is active, notApplicable otherwise.
statestringpendingProof, pendingApproval, active — the key signs requests — or unavailable (revoked, expired or replaced).
expiresAtstring (date-time)When the current step expires.