> For the complete documentation index, see [llms.txt](https://docs.sealights.io/knowledgebase/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sealights.io/knowledgebase/setup-and-configuration/integrations/rest-apis/sl-public-api/get-started.md). Agents can also search and read this documentation through its [MCP server](https://docs.sealights.io/knowledgebase/~gitbook/mcp).

# Get started

Make your first SeaLights API call in under five minutes.

## Base URL

All API requests are made to your tenant's domain:

```
https://<your-tenant>.sealights.co
```

Replace `<your-tenant>` with your SeaLights subdomain. You can find this in your browser's address bar when logged in to the SeaLights UI.

## Quick-start checklist

### 1. Get a token

Two token types exist. For most endpoints you need an **API Token**:

1. In the SeaLights UI, click the gear icon → **Settings**
2. In the left sidebar: **Integration → API Tokens**
3. Click **Create token**, give it a name, copy the value

Keep it somewhere safe — it is shown only once. See [Authorization](https://docs.sealights.io/knowledgebase/setup-and-configuration/integrations/rest-apis/sl-public-api/authorization.md) for details on when to use an Agent Token instead.

### 2. Make a test call

Verify your token and domain work with this read-only call:

```bash
curl -X GET "https://<your-tenant>.sealights.co/sl-api/v1/apps" \
  -H "Authorization: Bearer <your-api-token>" \
  -H "Content-Type: application/json"
```

A `200 OK` response with a `{ "data": [...] }` body confirms you are set up correctly.

### 3. Browse the reference

All endpoints are listed alphabetically in the [API reference](https://docs.sealights.io/knowledgebase/setup-and-configuration/integrations/rest-apis/sl-public-api/api-reference.md). Use Ctrl/Cmd + F in your browser to jump to a specific path or keyword.

## Request format

All requests must include:

| Header          | Value                                         |
| --------------- | --------------------------------------------- |
| `Authorization` | `Bearer <your-token>`                         |
| `Content-Type`  | `application/json` (for requests with a body) |
| `Accept`        | `application/json`                            |

Path parameters use `:paramName` notation in the reference (e.g. `:appName`, `:bsid`). Replace them with your actual values — do not include the colon.

## What's next

* [Authorization](https://docs.sealights.io/knowledgebase/setup-and-configuration/integrations/rest-apis/sl-public-api/authorization.md) — understand token types and scopes
* [Request and response format](https://github.com/Sealights/gitbook.setupandconfiguration/tree/master/integrations/rest-apis/request-response-format.md) — envelopes, status codes, pagination, rate limits
* [API reference](https://docs.sealights.io/knowledgebase/setup-and-configuration/integrations/rest-apis/sl-public-api/api-reference.md) — every endpoint, alphabetically


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.sealights.io/knowledgebase/setup-and-configuration/integrations/rest-apis/sl-public-api/get-started.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
