OpenCTI icon

OpenCTI

Interact with the OpenCTI Cyber Threat Intelligence platform

Actions149

Relationship → Search

AI-generated

Summary

Search relationships using entity IDs, relationship type, search term, and a result limit.

Inputs

  • fromOrToId — Filter by entity appearing on either side of the relationship
  • fromId — From Entity ID
  • relationship_type — Comma-separated relationship types (e.g. uses,targets)
  • search — Search term to match against relationship attributes
  • toId — To Entity ID
  • limit — Maximum number of results to return (1‑500)

Output shape

a list of relationship objects

Returns up to the configured limit; may return fewer matches or none.

Examples

Example 1: Search for relationships where either endpoint is entity 123 and the relationship type is 'uses'.

fromOrToId=123&relationship_type=uses&limit=50

Example 2: Search all relationships containing the word 'malware' and limit results to 20.

search=malware&limit=20

Links

Discussion