> 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
        }
    ]
}
```
