> For the complete documentation index, see [llms.txt](https://intuitem.gitbook.io/ciso-assistant/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://intuitem.gitbook.io/ciso-assistant/api-documentation/api.md).

# Overview

CISO Assistant exposes a REST API that mirrors the platform's object model. The same API powers the web frontend, the CLI, the MCP server, and every external integration. Anything you can do in the UI, you can do over HTTP.

## Authentication

The API uses token-based authentication. To call any endpoint:

1. **Create a Personal Access Token (PAT)** from your user profile in the application.
2. **Add the token to the `Authorization` header** of every request:

   ```
   Authorization: Token <your_token>
   ```

Example with curl:

```sh
curl --request GET \
  --url https://your-instance/api/assets/ \
  --header 'Authorization: Token a6a120f...'
```

Notes:

* Always include the trailing slash on endpoints (`/api/assets/`, not `/api/assets`).
* Your endpoint URL is your instance URL with `/api/` appended (assuming default proxy settings).
* API access is IP-restricted: the calling machine must be on the [Allowed IPs whitelist](/ciso-assistant/configuration/settings/infra-config-allowed-ip.md) (**Settings → Infrastructure**). On SaaS the allowlist is self-service and API access is closed until you add your caller IPs; on-premises, enable the allowlist with `ENABLE_INFRA_CONFIG_MANAGEMENT=True` or handle IP filtering in your own infrastructure.

## Browsing the schema

Two ways to read the API surface:

* [**API reference**](/ciso-assistant/api-documentation/api-reference.md) — every endpoint, generated from the latest release, with the conventions for pagination, filters and sparse fields.
* **On your instance, in debug mode** — matches the exact version you run. Set `DJANGO_DEBUG=True`, start the backend, then browse:
  * Swagger UI: `http://127.0.0.1:8000/api/schema/swagger/`
  * ReDoc: `http://127.0.0.1:8000/api/schema/redoc/`

## Related

* [Allowed IP whitelist](/ciso-assistant/configuration/settings/infra-config-allowed-ip.md) — open API access to your callers
* [Philosophy → Open by default, extensible by design](/ciso-assistant/introduction/philosophy.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://intuitem.gitbook.io/ciso-assistant/api-documentation/api.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
