# Authentication

For Security reasons we don't allow long term tokens so the only allowed method consists on the Cloud Plans Portal Login and then obtaining a \<up to> 30 minutes token (the session max time).

{% hint style="info" %}
It is not possible to have long term API Keys in the Public distribution. If you need it, use the contact Support zone to ask for a Private deployment (there are some personalizations such as long term tokens disassociated.
{% endhint %}

* Login in&#x20;
* Go to the up Nav Bar and look for the "user" icon

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

* Once clicked, you should get an \<API Key> option. Click on it.
* Copy the API Key provided in the alert message and proceed with your operations over the API.


---

# 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://docs.cloudplans.io/api-reference/authentication.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.
