> For the complete documentation index, see [llms.txt](https://documentation.atempo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.atempo.com/lina-7.4/lina-7.4-en/administration-guide/appendix-advanced-operations/appendix-b-rest-api-integration.md). Agents can also search and read this documentation through its [MCP server](https://documentation.atempo.com/~gitbook/mcp).

# Appendix B: REST API Integration

This topic describes the REST (Representational State Transfer) API provided by Atempo, which you can use to perform certain Lina operations in your production environment.

The information in this topic is intended for developers who are familiar with REST APIs.

## Overview

Lina objects and functions are exposed through a complete REST API. This API can be used to build custom interfaces or automate operations.

## REST API URL

* Atempo's Lina REST API is available over HTTP and/or HTTPS, depending on your configuration.
* For security reasons, it is recommended to use the REST API over HTTPS.

## Accessing API documentation using a hyperlink

\> Open a web browser and go to <kbd>https\://\<your\_server\_name>:8181/api/</kbd> where <kbd>\<your\_server\_name></kbd> is your server's network name and <kbd>8181</kbd> is the port used to access the administration interface.

## Accessing API documentation via the Lina Administration Console

1. Log in to the Lina Administration Console.
2. In the top-right corner of the window, click your user initials, then **Help and resources > Documentation.**

On the documentation home page, you will find a list of API documentation.

## Adding an API key

An API key is a string used as a password to securely run or write scripts in the command prompt. This type of key is associated with a single user. You can add API keys from a user's details or from the API Keys view.

**To create an API key:**

1. **Log in** to the Lina Administration Console.
2. Select the tenant for which you want to create the key.
3. Click the Server tab in the side menu, then:\
   • If you want to create a key from the API keys list: go to API Keys, click , then select a user for the key.\
   You can use the description to differentiate a key from other keys.\
   • If you want to create a key for an existing user: go to Users, open the user's details, then click the API Keys section.
4. Set an **expiration date** for the new API key:
   * **Unlimited**: the token has no expiration date.
   * **Limited with a date**: the token has an expiration date and time.
   * **Limited with a validity period**: the token can be valid for one day, one week, one month, 3 months, 6 months, or one year.
5. Confirm that you want to generate the API key.

If you create a key from the API keys list, you can also copy the key to the clipboard after generating it.

Metadata, such as the key's creation date, is displayed as a column (API keys list) or a tile (user details). You can copy an API key by clicking the icon next to the key.

In the user details, you can sort keys by creation date, last used, and expiration date. By default, expired keys are hidden from the list, but you can display them using the Show expired keys option. It is also possible to delete each key by clicking the trash icon next to the icon, or to delete all expired keys at once (Delete expired keys button).

<figure><img src="https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-893a5166094ac7d1f3b3e63a07ec332a0e37d7d1%2Fapi.png?alt=media" alt=""><figcaption><p><strong>Image</strong>: Example of an API key in a user details</p></figcaption></figure>

## Using an API key

**To use a key**

1. Log in to the Lina Administration Console.
2. Go to Server > API Keys.
3. In the **API Keys** list, copy the key using the ![](https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-81fe159dbaca6c28ab7fda6116829d4114b1ecf2%2Fimage%20\(13\).png?alt=media) icon to the right of the key.

You can paste the key into the Lina Administration Console or into a command prompt.

You can use one of the following methods in the command prompt:

* **Query parameter:** add the `api_key` query parameter after the endpoint URL. For example:

```bash
curl -k "https://Lina_server:8181/ADE/info.json?api_key=<your_API_key>"
```

* **HTTP header:** When sending a request to the API, add the following header:
  * Header name: `api_key`.
  * Value: `<your_API_key>`.

Here is a typical example of a cURL request including an API key (CLI mode):

```bash
curl -k "https://Lina_server:8181/ADE/info.json" -H "X-API-KEY:<your_API_key>"
```


---

# 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://documentation.atempo.com/lina-7.4/lina-7.4-en/administration-guide/appendix-advanced-operations/appendix-b-rest-api-integration.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.
