# OpenCTI API reference

> OpenCTI is a threat-intelligence platform that you host yourself. Its API is GraphQL, served at /graphql of your own OpenCTI host (or under the configured base path, such as /opencti/graphql). Analysts use it to read and write reports, indicators and other knowledge objects from scripts. Send POST…

Source: https://osinttools.io/apis/opencti/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/opencti/

- Base URL: https://opencti.example.org
- Authentication: Bearer token in the `Authorization` header. Token created in the OpenCTI profile; the platform is self-hosted.
- Rate limits: Not stated in the docs
- Vendor docs: https://docs.opencti.io/latest/reference/api/

## Overview

OpenCTI is a threat-intelligence platform that you host yourself. Its API is GraphQL, served at `/graphql` of your own OpenCTI host (or under the configured base path, such as `/opencti/graphql`). Analysts use it to read and write reports, indicators and other knowledge objects from scripts.

Send POST requests with a JSON body holding `query` and optional `variables`. Other methods get 405. Authenticate with `Authorization: Bearer <token>`; create a token under Profile, API access. The user role needs the `Allow token usage` capability. Reading knowledge needs `Access knowledge`.

The base URL below is a placeholder: replace it with your own host. Example queries in the docs are `reports(first: 5, orderBy: published, orderMode: desc)` and `report(id: $id)`; introspection is off by default.

## GraphQL

### Run a GraphQL query or mutation against the platform.

`POST /graphql`

- Footprint: passive (the target is not contacted)

The one API endpoint. Example query from the docs: { about { version } } returns the platform version.

Response fields:

- `data` (object): Result of the query, shaped like the query
- `data.about.version` (string): Platform version, for the example query

```bash
curl -X POST 'https://opencti.example.org/graphql' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"query":"{ about { version } }"}'
```

Example response (200):

```json
{
  "data": {
    "about": {
      "version": "1.0.0"
    }
  }
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
