---
updatedAt: 2026-10-10T18:55:05.000Z
agentTools:
  projectIndex: https://docs.superwise.ai/llms.txt
---

# REST API

Authenticate, make a first call, and find the endpoints for each SUPERWISE object, from Sentinels to agents, guardrails, datasets, and dashboards

The SUPERWISE® REST API automates SUPERWISE Sentinel and the SUPERWISE Agentic Management Platform (AMP) over HTTPS. Exchange a client ID and secret for a bearer token, then call `https://api.superwise.ai/v1/...` with that token in the `Authorization` header. Every object you manage in the SUPERWISE app, from a Sentinel to an agent or a dashboard, has endpoints here.

## Authenticate

All SUPERWISE® endpoints are HTTPS only and need a bearer token. Each token is a JWT, valid for 24 hours.

1. Create a client ID and secret key. See [Generate tokens](https://docs.superwise.ai/docs/generate-tokens).
2. Exchange them for a token:

```bash
curl -s -X POST https://authentication.superwise.ai/identity/resources/auth/v1/api-token \
  -H "Content-Type: application/json" \
  -d '{"clientId": "<CLIENT_ID>", "secret": "<SECRET_KEY>"}'
```

The token is in the `accessToken` field of the response. The Python SDK does this exchange for you and refreshes the token, so you only need it for direct HTTP calls. See [SDK](https://docs.superwise.ai/docs/sdk).

## Example: read a Sentinel's guardrail metrics

List your Sentinels, then read the guardrail metrics of one of them.

```bash
TOKEN="<ACCESS_TOKEN>"

# 1. List Sentinels. Each item in "items" carries its id, status and last heartbeat.
curl -s "https://api.superwise.ai/v1/sentinels?page=1&size=20" \
  -H "Authorization: Bearer $TOKEN"

# 2. Read the guardrail metrics of one Sentinel.
curl -s https://api.superwise.ai/v1/sentinels/<SENTINEL_ID>/guardrails/metrics \
  -H "Authorization: Bearer $TOKEN"
```

List calls are paged: use `page` and `size`, and read `total` and `pages` in the response.

## Main objects and their endpoints

Each object has an overview in the API reference that lists every call it takes.

| Object                                        | What it is                                                                                         | Common calls                                                                                                                                                    |
| --------------------------------------------- | -------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Sentinels](https://docs.superwise.ai/reference/sentinels)             | A running SUPERWISE Sentinel AI gateway, on a PC or in your network, and the guardrails it applies | [List sentinels](https://docs.superwise.ai/reference/get_sentinels), [Get a sentinel](https://docs.superwise.ai/reference/get_sentinel_by_id), [Get guardrail metrics](https://docs.superwise.ai/reference/get_sentinel_guardrail_metrics) |
| [Guardrails](https://docs.superwise.ai/reference/guardrails)           | Rules that check prompts and responses before they go further                                      | [List guardrails](https://docs.superwise.ai/reference/get_guardrails), [Run guardrules](https://docs.superwise.ai/reference/guardrail_run)                                                                        |
| [Agents](https://docs.superwise.ai/reference/agents)                   | An AI application built in SUPERWISE or registered from Flowise, with versions you publish         | [List agents](https://docs.superwise.ai/reference/get_agents), [Ask an agent](https://docs.superwise.ai/reference/ask_ask_post), [Unarchive an agent](https://docs.superwise.ai/reference/unarchive_agent)                                 |
| [Model providers](https://docs.superwise.ai/reference/model-providers) | The connection to a model service such as OpenAI, Anthropic, Google AI, or Vertex AI               | [List model providers](https://docs.superwise.ai/reference/get_model_providers), [Get a model provider](https://docs.superwise.ai/reference/get_model_provider_by_id)                                             |
| [MCP tools](https://docs.superwise.ai/reference/mcp-tools)             | A registered Model Context Protocol server whose tools agents can call                             | [List MCP tools](https://docs.superwise.ai/reference/list_mcps), [Test MCP connectivity](https://docs.superwise.ai/reference/test_mcp_connectivity)                                                               |
| [Datasets](https://docs.superwise.ai/reference/dataset)                | Records described by a schema, for analysis and monitoring                                         | [List datasets](https://docs.superwise.ai/reference/get_datasets), [Log a record](https://docs.superwise.ai/reference/log_v1_datasets__dataset_id__log_post)                                                      |
| [Dashboards](https://docs.superwise.ai/reference/dashboards)           | Saved queries and their widgets                                                                    | [List dashboards](https://docs.superwise.ai/reference/get_dashboards), [Search dashboards](https://docs.superwise.ai/reference/search_dashboards)                                                                 |

The [full API reference](/reference) also covers policies, sources, destinations, knowledge, and tags, and lets you try each call with your token.

**Get Sentinel:** [Create a free SUPERWISE® account](https://authentication.superwise.ai/oauth/account/sign-up?utm_source=docs\&utm_medium=referral\&utm_campaign=docs-rest-api) to get a client ID and secret.

## See also

* [Generate tokens](https://docs.superwise.ai/docs/generate-tokens): create the client ID and secret.
* [SDK](https://docs.superwise.ai/docs/sdk): the same objects from Python.
* [Gateway reference](https://docs.superwise.ai/docs/gateway-reference): the Sentinel gateway's own routes and CLI commands, which are separate from this API.