# Getting an API token

<figure><img src="https://2867534495-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbNf270GhCkiDUk1lHetj%2Fuploads%2F1GwY6jO8eXLhRBcLdjny%2FAPI-token-seenode.gif?alt=media&#x26;token=07bda651-698f-4bd2-ad58-2a2c6decb577" alt=""><figcaption></figcaption></figure>

### Introduction

The seenode API allows you to start new deployments programmatically, giving you the flexibility to automate and streamline your deployment process. Whether you’re integrating with a CI/CD pipeline or managing infrastructure at scale, the API makes it easy to launch new deployments.

### Getting an API token

1. Login to -> [https://seenode.com](https://www.seenode.com/)
2. Navigate to API section in your profile settings -> <https://cloud.seenode.com/dashboard/user#api>

<figure><img src="https://2867534495-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbNf270GhCkiDUk1lHetj%2Fuploads%2FRdsaVNTJZm6By4DD7EcW%2FScreenshot%202025-03-14%20at%201.36.11%E2%80%AFPM.png?alt=media&#x26;token=327a1b17-1ef4-461a-9644-7d61d8f89d61" alt=""><figcaption></figcaption></figure>

3. Generate a new secret key

<figure><img src="https://2867534495-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbNf270GhCkiDUk1lHetj%2Fuploads%2FUJMRV0WmLYwlMEWx72Sr%2FScreenshot%202025-03-14%20at%201.38.16%E2%80%AFPM.png?alt=media&#x26;token=51f39d3c-801f-4e54-ad89-db6327f548a2" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2867534495-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbNf270GhCkiDUk1lHetj%2Fuploads%2Fb22qEzLX7SMLnmWgWtvt%2FScreenshot%202025-03-14%20at%201.38.41%E2%80%AFPM.png?alt=media&#x26;token=0aadba69-73ef-4cc0-8395-e13fad4c96c3" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
For security reasons, your API key is only visible at the time it's being generated. Make sure to copy and store it securely because you won't be able to view it again.
{% endhint %}

### Start using API

Now when you have an API key you can try to send a first request our API.

```bash
curl -H "Authorization: Bearer <your_token>" https://api.seenode.com/v1/teams
```

This endpoint returns list of teams you're member in and you should get response like this one:

```json
{
    "teams": [
        {
            "billingThreshold": 200,
            "created": "2023-01-27T17:39:16",
            "freeTrialAvailable": false,
            "freeTrialEnds": null,
            "icon": "1",
            "id": 961013,
            "membersCount": 5,
            "name": "seenode",
            "servicesLimit": 20
        },
        {
            "billingThreshold": 200,
            "created": "2024-07-24T18:28:03",
            "freeTrialAvailable": false,
            "freeTrialEnds": null,
            "icon": "0",
            "id": 966739,
            "membersCount": 1,
            "name": "seenode",
            "servicesLimit": 10
        },
        {
            "billingThreshold": 200,
            "created": "2024-11-23T14:09:51",
            "freeTrialAvailable": false,
            "freeTrialEnds": null,
            "icon": "3",
            "id": 967484,
            "membersCount": 1,
            "name": "seenode",
            "servicesLimit": 10
        }
    ]
}
```


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://seenode.gitbook.io/docs/api/getting-an-api-token.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
