Every API call must carry a Bearer token:
A token is tied to two identities: The API returns only what that user is allowed to see — project and document roles apply to API calls exactly as they do in the app.

Getting a token

Create an app in My apps, then sign people in with the OAuth 2.0 authorization code flow with PKCE: Sign in with Ed Controls describes the endpoints, scopes and refresh. The quickstart walks through it with curl.

Token lifetime

The access token is a JWT with an expires_in. Cache it and reuse it across calls — don’t request a new one per API call. Refresh it before it expires, or when a call returns 401. A 503 is different: the API could not reach the service that validates tokens, so retry the call with backoff and keep the token.

Use a service account

Because the token inherits the user’s permissions, we strongly recommend creating a dedicated Ed Controls user per integration (for example api-erp-sync@yourcompany.com) instead of using someone’s personal account:
  • Permissions are explicit: give the service account exactly the project roles the integration needs, nothing more.
  • The integration doesn’t break when an employee leaves or changes their password.
  • Actions performed by the integration are clearly attributable in timelines and audit trails.
Create the user in the Ed Controls app like any other user and invite it to the relevant projects with the appropriate role. Then sign in through your app once as that user and keep the refresh token: see long-running integrations.

Password grant (existing integrations)

Integrations that were set up before My apps may have credentials we issued by hand. Those use the OAuth 2.0 password grant against the API’s own token endpoint, and keep working. New integrations use an app from My apps instead; the password grant is not available to those apps.

Getting a token

POST https://web.edcontrols.com/api/v1/oauth/token with a form-encoded body:
The access_token is an opaque string — pass it verbatim as your Bearer token. The response carries no expires_in field.

Token lifetime

Cache the token and reuse it across calls — don’t request a new one per API call. When a call returns 401, get a new token — either by refreshing (below) or by re-running the password grant above.

Refreshing a token

The token response includes a refresh_token. Exchange it for a new access_token without re-sending the user’s credentials:
The response has the same shape as the password grant. For 2FA-enabled users the refreshed token keeps the access granted during MFA validation, so refreshing does not force the MFA step again.

Common errors

Always send the token in the Authorization header. Do not put tokens in URLs or query strings — URLs end up in logs and proxies.