# AI API Reference

- [About the AI API](https://developers.laws.africa/ai-api/about-the-api.md): About the Laws.Africa Artificial Intelligence (AI) API.
- [Authentication](https://developers.laws.africa/ai-api/authentication.md)
- [Knowledge Bases](https://developers.laws.africa/ai-api/knowledge-bases.md): Use knowledge bases to find legal information related to a query.
- [Types of Knowledge Bases](https://developers.laws.africa/ai-api/knowledge-bases/types-of-knowledge-bases.md)
- [Using a Knowledge Base](https://developers.laws.africa/ai-api/knowledge-bases/using-a-knowledge-base.md): How to make use of Knowledge Base information
- [List Knowledge Bases](https://developers.laws.africa/ai-api/knowledge-bases/list-knowledge-bases.md): List available Knowledge Bases
- [Get a Knowledge Base](https://developers.laws.africa/ai-api/knowledge-bases/get-a-knowledge-base.md)
- [Query a Knowledge Base](https://developers.laws.africa/ai-api/knowledge-bases/query-a-knowledge-base.md): Query a Knowledge Base for matching results.


---

# 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://developers.laws.africa/ai-api.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.
