Skip to main content
POST
/
api
/
v1
/
search
/
graph
Typescript (SDK)
import { ConductoroneSDKTypescript } from "conductorone-sdk-typescript";

const conductoroneSDKTypescript = new ConductoroneSDKTypescript({
  security: {
    bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
    oauth: "<YOUR_OAUTH_HERE>",
  },
});

async function run() {
  const result = await conductoroneSDKTypescript.appEntitlementSearch.searchGraph();

  console.log(result);
}

run();
{
  "edges": [
    {
      "hiddenChildren": 123,
      "isTruncated": true,
      "sourceId": "<string>",
      "targetId": "<string>"
    }
  ],
  "hasMore": true,
  "nodes": [
    {
      "appId": "<string>",
      "displayName": "<string>",
      "id": "<string>",
      "resourceTypeId": "<string>"
    }
  ],
  "pageToken": "<string>",
  "pathsReturned": 123,
  "truncatedNodeIds": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Authorization
string
header
required

This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.

Body

application/json

SearchGraph request. Builds a filtered access graph starting from a root entity. Exactly one of user_id, app_id, or resource_id must be set. Server validates this constraint and returns InvalidArgument if violated.

appId
string | null

The appId field.

appIds
string[] | null

Filters — all optional, applied at every traversal hop

entitlementIds
string[] | null

The entitlementIds field.

entitlementNameQuery
string | null

The entitlementNameQuery field.

maxDepth
integer<int32> | null

Traversal controls

maxFanOut
integer<int32> | null

The maxFanOut field.

pageSize
integer<int32> | null

The pageSize field.

pageToken
string | null

The pageToken field.

resourceId
string | null

The resourceId field.

resourceIds
string[] | null

The resourceIds field.

resourceNameQuery
string | null

The resourceNameQuery field.

resourceTypeIds
string[] | null

The resourceTypeIds field.

userId
string | null

Root entity — exactly one must be set

Response

200 - application/json

SearchGraph response. Contains a subgraph of nodes and edges.

SearchGraph response. Contains a subgraph of nodes and edges.

edges
Graph Edge · object[] | null

The edges field.

hasMore
boolean | null

The hasMore field.

nodes
Graph Node · object[] | null

The nodes field.

pageToken
string | null

The pageToken field.

pathsReturned
integer<int32> | null

The pathsReturned field.

truncatedNodeIds
string[] | null

The truncatedNodeIds field.