# How To Use CrownSIS Api

CrownSIS is built with APIs. The system allows Superadministrators to access this feature to retrieve data from the system via JSON payload.  


  


To access the API, navigate to**Main Menu >> Tools >> API**  


  


To start using the API, you have to generate an API key. Before you do that, click on the API Docs link to download and read how to use the API.

  


![](https://help.opensis.com/galleryDocuments/edbsna151093f9df0622e2206683a096c23f73889eab99f33fbb76b7f06eb94c1378556b46599b72d8a0bd77cc9a978ba5c6e?inline=true)

  


Click on the **Generate New API Key** and give it a title and click **Generate**.  


  


![](https://help.opensis.com/galleryDocuments/edbsnf6357620d97ac77b41cf1000d7314b67de04ea35ffe0c951b44662eaac10a0bf2845a658926ed352c8ab4653d9cbef6c?inline=true)  


  


Once generated, this Key value will be needed to access the APIs. You can generate multiple tokens and they will all be valid for accessing APIs.**__**

Check access of APIs by clicking the gear button and if access is turned off then turn-on access and update it.

![](https://help.opensis.com/galleryDocuments/edbsn358a2c72bc7b7978eddcc08d6ab18c369227038af8f6ffa0b26a17513c26c9da095da936672cfe6f21c56766b314c060?inline=true)  


![](https://help.opensis.com/galleryDocuments/edbsn90d1d301376e8a56969db7d2ffd7469134986ae8cd64280f3808f8c532fa11f73a02115971a027bd17855503e24eeab1?inline=true)  


You can test the APIs via [PostMan](https://www.postman.com).

**For School Details, do this:**

Your_opensis_URL/api/getSchoolDetails/academicYear/{ academicYear }

_Example:_

If API Key = TwP3Falr28vDS6cX8R8wCqCheopNzW4psUO9ibQaR/nsxCWlgpMvoQTfQmoTh78UfD

academicYear =2021

**Then URL will be**  


Your_opensis_URL/api/getSchoolDetails/academicYear/2021

  


Go to header section and write X-API-KEY and paste the value of API Key  


![](https://help.opensis.com/galleryDocuments/edbsnf6357620d97ac77b41cf1000d7314b6709514c63c6c7917c3b1968ea5cff150771a108003509c14c2a4bcb1643093a3a?inline=true)

**Screen Shots of JSON data returned to the browser:**

![](https://help.opensis.com/galleryDocuments/edbsn57a04d887bd12468f6220161172c59958c11a30c8a8e3db558e32c66e680a0057b3282e4c23c821e9e61b7ddbf2012e5?inline=true)