Skip to content

List Units

Endpoint used to list the school units of your institution, with all their data and settings. Search specifically by unit name, contract number, or URL slug.

Warning: This endpoint will only work correctly if the domain of your institution is manually provided in the URL. Otherwise, the endpoint may fail or return a validation error.

Terminal window
curl --request GET \
--url 'https://{your-institution-domain}/api/v1/schools?page=1&perPage=20' \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"id": 1,
"name": "<string>",
"urlSlug": "<string>",
"contractNumber": "<string>",
"tags": [],
"taxId": "<string>",
"group": [{ "id": 1, "name": "<string>" }],
"subgroups": [],
"specialties": [],
"colorScheme": {
"primary": "<string>",
"secondary": "<string>",
"buttonText": "<string>"
},
"social": {},
"location": {
"street": "<string>",
"number": "<string>",
"additionalDetails": "<string>",
"district": "<string>",
"city": "<string>",
"state": "<string>",
"zipCode": "<string>"
},
"features": {
"enableTeacherRegistration": true,
"enableStudentRegistration": true,
"enableGoogleLogin": false,
"enableLoginByDocument": false,
"enableLoginByEmail": true,
"enableForum": true,
"enableViewCounter": true,
"enableRating": true,
"isPartOfProgram": false,
"enableReviews": true,
"showSchoolIconInMenu": true,
"showIconDetails": true,
"replicateInstitutionMenuLinks": false,
"displaySchoolAccessButton": true
},
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"meta": {
"total": 100,
"per_page": "20",
"current_page": 1,
"last_page": 5,
"first_page_url": "<string>",
"last_page_url": "<string>",
"next_page_url": "<string>",
"prev_page_url": null,
"from": 1,
"to": 20
}
}

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
namestringFilter units by name.No
contractNumberstringFilter units by contract number.No
urlSlugstringFilter units by URL slug.No
pagestringPage number of unit records to display.No
perPagestringNumber of records to display per page. Maximum allowed: 100.No

KeyTypeDescription
dataarrayList of educational units.
data.idnumberUnique identifier of the unit.
data.namestringName of the unit.
data.urlSlugstringURL slug of the unit.
data.contractNumberstringContract number associated with the unit.
data.tagsarrayTags associated with the unit.
data.taxIdstringTax identification number (may be null).
data.grouparrayList of groups associated with the unit.
data.subgroupsarrayList of subgroups associated with the unit (empty if none).
data.specialtiesarrayList of specialties associated with the unit (empty if none).
data.colorSchemeobjectColor scheme configuration.
data.colorScheme.primarystringPrimary color code.
data.colorScheme.secondarystringSecondary color code.
data.colorScheme.buttonTextstringButton text color code.
data.socialobjectSocial media information (may be null).
data.locationobjectLocation details of the unit.
data.location.streetstringStreet name.
data.location.numberstringStreet number.
data.location.additionalDetailsstringAdditional location details.
data.location.districtstringNeighborhood name.
data.location.citystringCity name.
data.location.statestringState abbreviation.
data.location.zipCodestringZIP code.
data.featuresobjectFeatures enabled for the unit.
data.features.enableTeacherRegistrationbooleanWhether teacher registration is enabled.
data.features.enableStudentRegistrationbooleanWhether student registration is enabled.
data.features.enableGoogleLoginbooleanWhether Google login is enabled.
data.features.enableLoginByDocumentbooleanWhether document login is enabled.
data.features.enableLoginByEmailbooleanWhether email login is enabled.
data.features.enableForumbooleanWhether the forum is enabled.
data.features.enableViewCounterbooleanWhether the view counter is enabled.
data.features.enableRatingbooleanWhether rating is enabled.
data.features.isPartOfProgrambooleanWhether the unit is part of a program.
data.features.enableReviewsbooleanWhether reviews are enabled.
data.features.showSchoolIconInMenubooleanWhether the school icon is shown in the menu.
data.features.showIconDetailsbooleanWhether icon details are shown.
data.features.replicateInstitutionMenuLinksbooleanWhether institution menu links are replicated.
data.features.displaySchoolAccessButtonbooleanWhether the school access button is displayed.
data.createdAtstringDate and time the unit was created.
data.updatedAtstringDate and time the unit was last updated.
metaobjectPagination metadata.
meta.totalnumberTotal number of records.
meta.per_pagestringNumber of records per page.
meta.current_pagenumberCurrent page number.
meta.last_pagenumberLast page number.
meta.first_page_urlstringURL of the first page.
meta.last_page_urlstringURL of the last page.
meta.next_page_urlstringURL of the next page (may be null).
meta.prev_page_urlstringURL of the previous page (may be null).
meta.fromnumberFirst record number on the current page.
meta.tonumberLast record number on the current page.

To access this endpoint, it is necessary to send a valid access token through the authorization header (Authorization) of the request. Additionally, the API is protected by other security measures to safeguard user data.