# Kralis API DOCS

School Management System

## Kralis API Base URL

> Endpoint References in the Data Model Tenets, Rest API and GraphQL API Docs are relative to the base URL.

* API: [**api.kralis.app**](http://api.kralis.app)

## Kralis REST API

> The REST API is a collection of endpoints that can be used to interact with the Kralis API. The API is built using the Django Rest Framework. The documentation is available at `/schema/swagger` or `/schema/redoc`. Kralis Middleware uses the REST API to interact with the Kralis System for actions like `/auth/login/`.

## Kralis GraphQL API

> The GraphQL API is a collection of types, queries and mutations that can be used to interact with the Kralis API. The API is built using the Graphene-Django. The documentation is available via the Graphiql API Interface at `/graphiql`. Kralis Web is powered by schools' GraphQL APIs, we recommend working with the GraphQL API as it provides a comprehensive set of utility mutations for performing essential actions and flexible queries that let users fetch exactly the data they need.

## Kralis Web

> Kralis Web is a web application that provides a common interface for interacting with Kralis Middleware and all schools' Kralis Systems. The web app is built using Nextjs and communicates with the Kralis API using GraphQL.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.kralis.app/readme.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
