Skip to content
OSINTtools.io

OpenCTI API

Open-source platform for organising cyber threat intelligence as a STIX 2.1 knowledge graph.

Base URL
https://opencti.example.org
Sign-in
Bearer token
Format
GraphQL
Endpoints
1

Compiled by OSINTtools.io editors from docs.opencti.io · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

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.

Quick start

  1. Get a key

    Create an account with OpenCTI and copy your bearer token. Where to get it

  2. Make your first request

    Run a GraphQL query or mutation against the platform.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

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

    A 200 response looks like this.

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

Authentication

Send your token in the Authorization header as Bearer YOUR_TOKEN.

Token created in the OpenCTI profile; the platform is self-hosted.

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Not stated in the docs

GraphQL

  • Passive: the target is not contacted

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

Request body (JSON) · 2Show

querystringalways present

The GraphQL query or mutation

variablesobject

Variables for the query

Response fields · 2Show

dataobject

Result of the query, shaped like the query

versionstring

Platform version, for the example query

curl -X POST 'https://opencti.example.org/graphql' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"query":"{ about { version } }"}'
Replace YOUR_API_KEY with your key
Response
{
  "data": {
    "about": {
      "version": "1.0.0"
    }
  }
}