access_token, but the token starts unelevated — it authenticates the user
yet does not carry their access until an SMS code has been verified. Calls that
require the user’s role will be rejected until you complete the MFA step below.
Most server-to-server integrations use a dedicated service account without
2FA, in which case you can skip this page entirely — the password-grant token
is immediately usable. Only follow these steps if your account has 2FA enabled.
1. Request an SMS code
Callsend_mfa with the unelevated access token as a Bearer token. Ed Controls
sends a verification code to the phone number on the account.
verifyUrl — it contains the messageId you verify against.
The phoneNumber is masked for display only.
2. Verify the code and elevate the token
GET the verifyUrl with the SMS code, and pass the same access token as
the MFA verification token in the auth-mfa-token header:
202:
3. Refreshing keeps the elevation
Once a 2FA token has been elevated, refreshing it returns a newaccess_token that keeps the elevation — you do not repeat the
MFA step on every refresh. The elevation lasts for the lifetime of the refresh
token (or until the underlying role is changed in Ed Controls).