canonical: https://jentic.com/apis/sealgate.ai/sealgate

# SealGate Management API

The SealGate Management API configures and inspects the SealGate security gateway that sits between AI agents and the Model Context Protocol servers they call. It registers and updates those servers, writes CEL-based policy rules that block, tag, or require approval for tool calls, defines roles and changes the role or status of API keys, and approves or denies gated actions waiting in the approval queue. It also lists agent sessions with risk filters, lethal-trifecta event summaries and events, and the audit log of who changed what.

## For AI agents

Manage SealGate gateway policy rules, roles, API keys, approval requests, registered agents, and gateway servers for AI agents, and read sessions, trifecta events, and the audit log.

## Scope

Does not run agents, host language models, or proxy tool calls itself through this API. Use for configuring and auditing the SealGate gateway only.

## Capabilities

- Write CEL-based policy rules with actions such as block, require_approval, mark_private, or add_tag, and review policy overview statistics
- Approve or deny gated tool-call requests from the approval queue, filtered by pending, approved, or denied status
- Register, update, and remove the MCP servers SealGate fronts, including local command-based and remote URL servers
- List agent sessions filtered by user_id, agent_name, status, or risk, sort by tool_call_count or duration_ms, and end a session
- Define roles and change an API key's role or enable and disable the key
- Summarise lethal-trifecta events over 24h, 7d, or 30d windows and page through the individual events
- Search the audit log by actor, action, or resource_type

## Use cases

### AI agent triaging approval requests

A security reviewer wants an assistant to work through the SealGate approval queue with them. Through Jentic the agent searches by intent, gets the SealGate list-approvals operation with its input schema, and fetches pending requests with the bearer key injected at execution time. The reviewer decides, and the agent calls approve or deny with an optional note on each request.

Example prompt: Call GET `/api/v1/approvals` with status 'pending' and per_page 50, summarise each request for the reviewer, then call POST `/api/v1/approvals/{approval_id}/approve` or /deny with a note for each decision

### Policy rules as code

A team keeps its gateway rules in a repository and applies them on merge. SealGate's policy endpoint accepts a name and rule_id plus a cel_expression, a pre or post phase, a priority, and actions such as block or require_approval, and the overview endpoint reports how the rule set is performing.

Example prompt: Call POST `/api/v1/policies` with name 'Require approval for writes', rule_id 'writes-approval', phase 'pre', and an action_type of require_approval, then call GET `/api/v1/policies/overview`

### Session risk review

An engineer investigating odd agent behaviour needs the sessions behind it. SealGate lists agent sessions with filters for user_id, agent_name, status, and risk, sorts by tool_call_count or duration_ms, returns one session's detail, and can end a session that should stop.

Example prompt: Call GET `/api/v1/sessions` with risk 'high' and sort_by 'tool_call_count', open the top result with GET `/api/v1/sessions/{session_id}`, and end it with POST `/api/v1/sessions/{session_id}/end` if it is still active

### Weekly security reporting

A weekly report needs counts and evidence rather than screenshots. SealGate summarises lethal-trifecta events for a 24h, 7d, or 30d time_period, pages the events between created_after and created_before, and searches the audit log by actor, action, or resource_type.

Example prompt: Call GET `/api/v1/observability/trifecta` with time_period '7d' and GET `/api/v1/observability/audit-log` with resource_type 'policy', then compile a weekly summary

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| GET | `/api/v1/approvals` | List approval requests |
| POST | `/api/v1/approvals/{approval_id}/approve` | Approve a gated action |
| POST | `/api/v1/policies` | Create a policy rule |
| GET | `/api/v1/sessions` | List agent sessions |
| POST | `/api/v1/servers` | Register a gateway server |
| PATCH | `/api/v1/api-keys/{api_key_param}/status` | Enable or disable an API key |
| GET | `/api/v1/observability/trifecta` | Trifecta event summary |
| GET | `/api/v1/observability/audit-log` | List audit log entries |

## Key resources

- **Servers** — List, register, fetch, update, and delete the tool servers SealGate fronts, by name
- **Policies** — CEL-based rules with phase, priority, scopes, and actions, plus overview statistics
- **Approvals** — Gated action requests with approve and deny operations
- **Sessions** — Agent sessions with filtering, detail, and an end operation
- **Access control and API keys** — Roles, role definitions, summary counts, and API key role and status changes
- **Agents** — Registered agents with type and archive filters
- **Observability** — Lethal-trifecta summaries and events, and the audit log

## AI readiness

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

- **Score:** 68 / 100
- **Maturity:** AI-Aware
- **Dimensions:**
  - Foundational Compliance: 85 / 100
  - Developer Experience & Jentic Compatibility: 62 / 100
  - AI-Readiness & Agent Experience: 54 / 100
  - Agent Usability: 94 / 100
  - Security: 60 / 100
  - AI Discoverability: 77 / 100
- **View full report:** https://jentic.com/apis/sealgate.ai/sealgate/scorecard
- **How the score is calculated:** https://docs.jentic.com/reference/api-readiness-framework/overview/
- **More about the dimensions:** https://docs.jentic.com/reference/api-readiness-framework/specification/#dimensional-model-overview

### Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

- **Score your own API:** https://jentic.com/scorecard.md
- **Scoring CLI agent skill:** https://github.com/jentic/jentic-api-scorecard/blob/main/skills/jentic-api-scorecard/SKILL.md

```sh
npx @jentic/api-scorecard-cli score <openapi-url>
```

## Why Jentic

- **Setup:** Wiring SealGate by hand means sending a bearer API key on every call except the health check, picking the dashboard host, and learning which operations need the admin role. Through Jentic you install once, import SealGate from the API Directory, store the key once, and your agent calls it.
- **Permission scoping:** SealGate puts resource ids in the URL path, such as `/api/v1/approvals/{approval_id}/approve` and `/api/v1/servers/{name}`, so a rule can pin your agent to one approval or one server. You choose the operations it may call, so destructive ones like deleting a policy rule or disabling an API key are not included unless you add them.
- **Credential handling:** Your SealGate API key is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'list pending approvals' or 'create a policy rule', and Jentic returns the matching SealGate operation with its input schema so the agent sends the right fields.

## Related APIs

- **Lakera** — Prompt injection and content screening for LLM applications
- **Okta** — Identity provider for users, groups, and SSO
- **Splunk** — Log search and security analytics

## FAQ

### What authentication does the SealGate Management API use?

Per its OpenAPI spec, the SealGate Management API uses HTTP bearer authentication with a SealGate API key from the dashboard, sent as the Authorization header. Every operation requires it except GET `/api/v1/health`, which is open. A key whose role lacks permission gets a 403. Through Jentic the key is held by your own Jentic One instance and injected per call.

### Can I approve or deny gated actions with the SealGate Management API?

Yes. GET `/api/v1/approvals` lists requests and filters by status such as pending. POST `/api/v1/approvals/{approval_id}/approve` and POST `/api/v1/approvals/{approval_id}/deny` resolve one request and accept an optional note. Users see their own requests while admins and owners see their domain.

### What are the rate limits for the SealGate Management API?

The OpenAPI spec does not specify rate limits; check https://sealgate.ai for current limits.

### Is there a SealGate MCP server?

SealGate is itself a gateway that fronts MCP servers for AI clients. To manage SealGate from your agent you don't need an MCP server: Jentic connects the Management API directly from the API Directory. Import it, store your SealGate API key once, and your agent calls the admin operations it needs on demand.

### How do I list pending approvals through Jentic?

Search Jentic for 'list pending approval requests', load the GET `/api/v1/approvals` operation, and execute it with status set to pending. Each request carries an approval_id you can pass to the approve or deny operation. To run it on your own infrastructure, install Jentic One from its GitHub repo.

### Can I limit what my agent is allowed to do with the SealGate Management API?

Yes. For example, write a rule that allows GET `/api/v1/sessions`, GET `/api/v1/observability/trifecta`, and GET `/api/v1/observability/audit-log` only, and a reporting agent can read activity and events but cannot change policies, keys, or approvals. Every call it makes is logged.
