Concept

APIs and integration options

The ways code reaches OpenCTI, from the GraphQL API to live streams, feeds, connectors and MCP, what each one is for, how they authenticate, and which to choose.

OpenCTIOpenAEVFor developers, SOC managers and platform engineers

OpenCTI offers several ways in for code, and they do not do the same job. The GraphQL API reads and writes anything, at the pace of your script. Live streams push every change to a consumer as it happens. CSV feeds and TAXII collections hand a filtered list to tools that poll. Connectors are programs that run beside the platform. This page explains what each way is for, what they share, and how to pick one for an integration, such as sending Velvet Harbor indicators to a SIEM or importing a hotel-sector feed.

YOUR CODEOPENCTISTORAGEScript or appcurl, Python, TypeScriptConnectorPython clientStream consumerSIEM, EDR, SOARFeed readerFirewall, TAXII clientGraphQL API/graphqlLive streams/streamCSV and TAXII feeds/feeds, /taxii2Knowledge baseFiltered by user rights
  1. Script or app → GraphQL API: queries and mutations
  2. Connector → GraphQL API: queries and mutations
  3. GraphQL API ↔ Knowledge base: reads and writes
  4. Knowledge base → Live streams: every change
  5. Knowledge base → CSV and TAXII feeds: on request
  6. Live streams → Stream consumer: pushes events
  7. CSV and TAXII feeds → Feed reader: downloaded
Code reaches OpenCTI through the GraphQL API to read and write, and through live streams and feeds to receive what changes

Choose a way in

You want toUseEndpointPage
Query or change knowledge from a script, an app or a notebookGraphQL API/graphqlQuery OpenCTI with GraphQL
Do the same from Python, with helpers per entity typePython client (pycti), on top of the GraphQL API/graphqlPython client
Keep a SIEM, an EDR, a SOAR or another platform in step with the knowledge base, deletions includedLive stream/stream/{id}Data streaming
Give a device a list it downloads on a scheduleCSV feed/feeds/{id}Share knowledge with your security tools
Serve a tool that speaks Trusted Automated Exchange of Intelligence Information (TAXII) 2.1TAXII collection/taxii2/root/collections/{id}/objects/Share knowledge with your security tools
Let a partner push STIX objects into OpenCTITAXII push/taxii2/root/collections/{id}/objects/ (POST)Let partners push intelligence to you
Import, enrich or export data continuously, as a component of the platformConnectorQueues and /graphqlConnectors
Let an AI assistant or an AI agent query OpenCTIModel Context Protocol (MCP) server of XTM One/mcp/opencti on XTM OneMCP servers
Script OpenAEV scenarios, simulations and resultsOpenAEV REST API/apiREST API

When a ready-made integration exists, start there: the connector catalog lists the connectors of the XTM Hub, among them stream connectors for the main SIEMs and EDRs.

Pull, listen or push

The ways in differ in who drives the exchange, and so in what the other side has to do.

  • You pull, with the GraphQL API. Your code asks, the platform answers, page by page. Nothing tells your code that something changed: to follow changes, it polls with a date filter, or it listens to a stream instead. Use it for reads on demand, writes, and anything a stream or a feed does not cover.
  • You listen, with a live stream. The platform sends each creation, update, deletion and merge within seconds, with the objects each one depends on. Your consumer keeps its position and resumes after a cut. Use it when a copy of the knowledge must stay in step, removals included, such as indicators an EDR blocks.
  • The tool pulls, with a feed. A CSV feed or a TAXII collection is computed at each request from its filters. The tool learns nothing about removals beyond what disappears from the list. Use it for devices that only download.
  • A partner pushes, with TAXII push. OpenCTI receives STIX bundles from a client and imports them.

A connector can combine these: a stream connector listens to a live stream and writes to a SIEM; an import connector reads a feed and sends STIX bundles to OpenCTI through its queues.

What every way shares

One identity per integration. Every request runs as a user: its markings, its organizations and its confidence level decide what it reads and what it may write, and its name shows in the history of what it changes. Give each integration its own user: see Create accounts for integrations explains, rather than a person's account.

The same credentials. The GraphQL API, live streams, CSV feeds and TAXII collections accept:

CredentialHeaderCapability the user needs
API tokenAuthorization: Bearer followed by the tokenAllow token usage
Login and passwordAuthorization: Basic followed by login:password in Base64Allow basic auth usage

Both capabilities sit under API usage with authorization header in the role editor. A user creates tokens in the API access card of their profile, with a duration from 30 days to unlimited: see Get an API token. On top of that, feeds and live streams need Access data sharing, and a feed or a live stream made public needs no credential at all.

The same filters. List queries, feeds, live streams, triggers and playbooks select objects with the same filter group format. See Filters.

The same data model. What goes out is STIX 2.1, with the OpenCTI properties in an extension; what the API returns follows the same types. The data model reference lists the entity types and their attributes.

Limits to plan for

LimitDefaultWhere it is set
Items in one page of a GraphQL list500 when first is left out, 5,000 at mostelasticsearch:default_pagination_result, elasticsearch:max_pagination_result
Requests per client, by address and user agent10,000 a second, then HTTP 429app:rate_protection:max_requests, app:rate_protection:time_window
Size of one JSON request body: GraphQL, TAXII, REST50 MBapp:max_payload_body_size
Events a live stream consumer can resume fromThe last 2,000,000 events of the platformredis:trimming
Objects in one answer of a CSV feed5,000data_sharing:max_csv_feed_result
Objects in one page of a TAXII collection500app:data_sharing:taxii:max_pagination_result

New in 7.261119 A platform that turns on the secure HTTP defaults (app:http:secure_by_default set to true) applies stricter limits to the keys it leaves unset: 30,000 requests a minute per client, and 10 MB per request body. Ask the platform engineer which values your platform runs with before you size a bulk import. See Rate limiting.

A platform engineer changes them in the configuration: see the configuration reference.

What's next

NextQuery OpenCTI with GraphQL
Develop
Integrations, APIs, MCP and contributing.

Published

Overview