# Sdl API

> Sdl API is an open-source agent skill for security. Lets an agent query the SentinelOne data lake and manage its config files over the SDL API. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/Sentinel-One/ai-siem/tree/main/plugins/s1-secops-skills/skills/sdl-api
- **Repository:** https://github.com/sentinel-one/ai-siem
- **GitHub stars:** 105
- **License:** AGPL-3.0
- **Skill name:** sdl-api
- **Collection:** https://github.com/Sentinel-One/ai-siem
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-03

## About

This skill gives an AI coding agent working knowledge of the SentinelOne Singularity Data Lake API, covering both log queries and the configuration files that define parsers, dashboards, lookups and datatables on a tenant. It points the agent to the MCP tools for running PowerQuery and reading or writing config files, and steers it toward the GraphQL file surface because the older REST listing is incomplete for dashboards.

The skill's main value is in the guardrails it encodes. It explains how dashboards are addressed by their udoId rather than by name, why a name-based write to a dashboard creates a duplicate, and how expectedVersion protects against conflicting edits. It also covers the deprecated V1 query methods and the move to the LRQ endpoint, plus notes on rate limits and read-only mode.

It expects a SentinelOne console URL and API token configured on the user's machine, along with the s1-secops-mcp server or the bundled Python client and CLI for hosts that can reach the tenant. It also documents raw log ingestion through a write key and HEC, including the dataSource fields needed for detections to evaluate the data.

## When your agent uses it

> Use whenever the user wants to read data and manage configuration through the SentinelOne Singularity Data Lake (SDL) API: run queries or manage configuration files (parsers, dashboards, alerts, lookups, datatables) on a Scalyr/SDL/XDR tenant. Trigger on "SDL", "SDL API", "Singularity Data Lake", "Scalyr", "DataSet", or any "*.sentinelone.net/sdl/api/*" URL, and on the method names "query", "powerQuery", "facetQuery", "timeseriesQuery", "numericQuery", "configFiles", "configFile", "addConfigFile", "deleteConfigFile", "getFile", "putFile", "listFiles". Also trigger on "udoId", "config file", "/sdl/v2/graphql", or a console display string of the form "/dashboards/id/{number}/{name}". Also trigger on tasks like "run a powerQuery", "list configuration files", "edit my parser via API", "deploy a dashboard JSON", "compute the rate of failures over time", or anything involving SDL Bearer-token auth or the S1-Scope header. Uses the s1-secops-mcp sdl_* tools; host-only Python client.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/Sentinel-One/ai-siem/tree/HEAD/plugins/s1-secops-skills/skills/sdl-api)
- [Network calls found in its scripts](https://github.com/Sentinel-One/ai-siem/tree/HEAD/plugins/s1-secops-skills/skills/sdl-api)
- [License: AGPL-3.0](https://github.com/Sentinel-One/ai-siem/tree/HEAD/plugins/s1-secops-skills/skills/sdl-api)

## Features

- **Config file management:** Reads, creates, updates and deletes parsers, dashboards, lookups and datatables through the GraphQL file surface.
- **PowerQuery execution:** Runs PowerQuery and log searches against the data lake through the LRQ endpoint.
- **Dashboard udoId handling:** Explains how to address dashboards by udoId to avoid creating duplicate files.
- **Schema discovery:** Samples live events from each data source to learn the fields it actually carries.
- **Safe write workflow:** Requires reading the current version first and confirming before deletes or overwrites.
- **Log ingestion via HEC:** Documents posting flat-key events to the collector with the required dataSource attributes.

## Good for

- Export the current parser and dashboard files from a SentinelOne tenant
- Run a PowerQuery that counts failed requests by status over the last day
- Promote a tested parser from a staging scope to production
- Discover the field names available in a SentinelOne data source
- Inject synthetic events to test a detection rule

## Install

### Claude Code

This skill ships in the `s1-secops-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add Sentinel-One/ai-siem
/plugin install s1-secops-skills@sentinelone
```

Or copy only this skill to `~/.claude/skills/sdl-api`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Sentinel-One/ai-siem.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/sdl-api &&
cp -R "$tmp/plugins/s1-secops-skills/skills/sdl-api" ~/.claude/skills/sdl-api &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/sdl-api` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/sdl-api` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Sentinel-One/ai-siem.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/sdl-api &&
cp -R "$tmp/plugins/s1-secops-skills/skills/sdl-api" ~/.agents/skills/sdl-api &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/sdl-api` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/sdl-api` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Sentinel-One/ai-siem.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/sdl-api &&
cp -R "$tmp/plugins/s1-secops-skills/skills/sdl-api" ~/.cursor/skills/sdl-api &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/sdl-api` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/Sentinel-One/ai-siem.git --path plugins/s1-secops-skills/skills/sdl-api
```

Or copy the folder to `~/.gemini/skills/sdl-api` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/sdl-api`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Sentinel-One/ai-siem.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/sdl-api &&
cp -R "$tmp/plugins/s1-secops-skills/skills/sdl-api" ~/.copilot/skills/sdl-api &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/sdl-api` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/Sentinel-One/ai-siem.git
```

Then copy `ai-siem/plugins/s1-secops-skills/skills/sdl-api` into your agent's skills folder as `sdl-api`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What credentials does Sdl API need?

A console URL and console API token, stored in environment variables or the OS keychain. An S1_SCOPE value is needed when the token spans several sites or accounts.

### Why not use the REST file listing?

The skill notes that the REST listing omits udoId-addressed dashboard files, so it recommends the GraphQL surface to check whether a file exists.

### Are the query methods still supported?

The V1 query methods are marked deprecated and sunset on 2027-02-15; the skill directs queries through the LRQ-based powerquery_run tool.

### Does Sdl API write changes without asking?

The skill requires reading the current version first and getting explicit confirmation before deletes or overwrites, and the MCP server is read-only by default.

### How do I install Sdl API in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/sdl-api to use it in all your projects, or to .claude/skills/sdl-api in one project. Or install the s1-secops-skills plugin, which includes it: /plugin marketplace add Sentinel-One/ai-siem, then /plugin install s1-secops-skills@sentinelone.

### Does Sdl API run scripts?

Yes. It runs Python scripts. Its scripts contain network calls. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Sdl API?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Sdl API?

The closest alternatives to Sdl API are Sdl dashboard, Sdl solutions, Mgmt console API, Sdl log parser and Powerquery.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Sdl dashboard](https://ai-powered.com/skills/sdl-dashboard): Sdl dashboard is an open-source agent skill for analytics and data.
- [Sdl solutions](https://ai-powered.com/skills/sdl-solutions): Sdl solutions is an open-source agent skill for security.
- [Mgmt console API](https://ai-powered.com/skills/mgmt-console-api): Mgmt console API is an open-source agent skill for security.
- [Sdl log parser](https://ai-powered.com/skills/sdl-log-parser): Sdl log parser is an open-source agent skill for files and documents.
- [Powerquery](https://ai-powered.com/skills/powerquery): Powerquery is an open-source agent skill for security.
- [Hyperautomation](https://ai-powered.com/skills/hyperautomation): Hyperautomation is an open-source agent skill for security.
- [Soc investigator](https://ai-powered.com/skills/soc-investigator): Soc investigator is an open-source agent skill for security.
- [API security](https://ai-powered.com/skills/api-security): API security is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/sdl-api
