Schools
Required scopes
This endpoint requires the following scopes:
- : Read schools
Authorizations
OAuth2clientCredentialsRequiredToken URL:
OAuth 2.0 Client Credentials. Exchange your client_id/client_secret at the token URL for a short-lived Bearer token, then call the API with it.
Path parameters
district_idintegerRequired
Query parameters
filter[nces_school_id]stringOptional
sortstringOptional
Comma-separated; prefix with - for descending. Allowed: name, created_at.
page[number]integerOptional
page[size]integer · max: 100Optional
Responses
200
schools listed
application/json
metaobjectOptional
linksobjectOptional
401
missing or invalid token
application/json
404
district_id is not the caller district
application/json
422
invalid pagination parameter
application/json
get/api/v2/districts/{district_id}/schools
GET /api/v2/districts/{district_id}/schools HTTP/1.1
Host: api.masteryconnect.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"data": [
{
"id": "text",
"type": "text",
"attributes": {},
"relationships": {}
}
],
"meta": {},
"links": {}
}Required scopes
This endpoint requires the following scopes:
- : Read schools
Authorizations
OAuth2clientCredentialsRequiredToken URL:
OAuth 2.0 Client Credentials. Exchange your client_id/client_secret at the token URL for a short-lived Bearer token, then call the API with it.
Path parameters
district_idintegerRequired
idintegerRequired
Responses
200
school found
application/json
dataobjectOptional
404
school not in the caller district
application/json
get/api/v2/districts/{district_id}/schools/{id}
GET /api/v2/districts/{district_id}/schools/{id} HTTP/1.1
Host: api.masteryconnect.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"data": {}
}Last updated
Was this helpful?