# About the AI API

{% hint style="warning" %}
The Laws.Africa AI API is in preview. Expect changes to the functionality.
{% endhint %}

## Overview

The Laws.Africa Artificial Intelligence (AI) API makes it easy to integrate Laws.Africa's digital legal information into your AI application.

## Endpoint

The latest version of the API is version 1. It is available at the endpoint:

```javascript
https://api.laws.africa/ai/v1/
```

## OpenAPI Schema

The API is described using the Open API format.

* Download the OpenAPI Schema from <https://api.laws.africa/ai/v1/schema>
* API documentation in Swagger format: <https://api.laws.africa/ai/v1/schema/swagger-ui>
* API documentation in Redoc format: <https://api.laws.africa/ai/v1/schema/redoc>


---

# 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/about-the-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.
