> For the complete documentation index, see [llms.txt](https://seenode.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://seenode.gitbook.io/docs/api/getting-an-api-token.md).

# Getting an API token

<figure><img src="/files/aDigf8ua4qgIf5mQ8Sin" 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="/files/uDQP9HUgzzQYNfOCu1w6" alt=""><figcaption></figcaption></figure>

3. Generate a new secret key

<figure><img src="/files/B55lAA2UtxtNkXRWcTTl" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/1sgLwPYHonVP5cNT2Hon" 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
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 dynamically by asking a question.

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

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
