API reference · Enrolment

Read an invitation

GET/v1/enrollments/{invitationId}

The invitation’s state and when it expires. Authorised with the enrolment token, not a signature.

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

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.EnrollmentState
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

EnrollmentState

FieldTypeNotes
invitationIdUUIDThe invitation.
applicationIdUUIDThe application being enrolled.
statestringpendingInvitation, pendingPublicKey, pendingProof, pendingApproval, active or unavailable.
expiresAtstring (date-time)When the invitation expires — about a day after it is issued, by default.