Skip to main content
The Scout API uses the OAuth 2.0 client credentials grant. Each integration gets one API client — a client_id and client_secret with a set of scopes that decide which endpoints it may call. You exchange the credentials for a short-lived bearer token, then send that token on every request.
1

Get your credentials

Scout issues one API client per integration and district. Contact your Scout representative to request one, and tell us which data your integration needs so we grant only those scopes. The client_secret is shown once when the client is created or its secret is rotated — store it like a password.
2

Request an access token

POST to /oauth/token with grant_type=client_credentials. Pass the credentials with HTTP Basic auth (recommended) or as client_id / client_secret form fields. The examples read them from CLIENT_ID and CLIENT_SECRET environment variables, which keeps the secret out of your shell history.
3

Call the API

Send the token in the Authorization header.
Access tokens expire after 1 hour (expires_in: 3600) — request a new one when yours expires. Every request re-checks your API client, so revoking it or removing a scope takes effect immediately, even for tokens that haven’t expired yet.

Token endpoints

POST /oauth/token is the token endpoint for every integration. OneRoster clients that expect the IMS-standard URLs can use /ims/oneroster/v1p1/token or /ims/oneroster/v1p2/token instead — they are aliases and behave identically.

Scopes

A token carries the scopes granted to your API client. Calling an endpoint outside them returns 403.

Requesting scopes

The scope form field is optional.
  • Omit it to receive every scope your API client has. This is the OneRoster 1.1 behavior.
  • Send a space-separated list to narrow the token. Entries can be the scope names above or the IMS OneRoster aliases below. The token gets only the requested scopes your client actually has; unrecognized entries are ignored. If nothing requested is granted, the exchange fails with invalid_scope.
When you send scope, the response includes a scope field listing what was granted. An alias is echoed back as-is if your client holds everything it covers; otherwise the granted scope names are listed.

IMS OneRoster scope aliases

Each alias is accepted as a bare name (OneRoster 1.1 style) or as the full URI with the https://purl.imsglobal.org/spec/or/v1p2/scope/ prefix (OneRoster 1.2 style).

Errors

The token endpoint returns OAuth 2.0 error bodies:
Other endpoints return: On a 401, request a new token. On a 403, check whether your token’s requested scope includes the endpoint’s scope. If your API client already has it, request a new token with that scope or omit scope to receive all granted scopes. Otherwise, ask your Scout contact to grant the missing scope.