# Introduction to REST API

**Get familiar with REST APIs on Langstack. By the end of this section, you will acquire a deeper understanding of REST APIs, their creation, and their deletion.**

## What is Langstack API?

<figure><img src="https://media.langstack.com/documentation/media/images/code/training_manual/chapter_4/ch4apimenu.png" alt=""><figcaption></figcaption></figure>

* The API template is used to build an API (an application programming interface endpoint) to perform business user-defined logic.
* An API must have a base URL. A base URL is a text that is at the beginning of the URL, which consists of&#x20;
  * the customer URL
  * The text dataapi
  * Group name for the API&#x20;
  * API name
  * Path parameters&#x20;

<figure><img src="https://media.langstack.com/documentation/media/images/code/training_manual/chapter_4/ch4partsofurl.png" alt=""><figcaption></figcaption></figure>

* An API receives and processes web requests and returns response data to the requester. Any API request must end up with a response; failing to respond for any reason will make this request invalid.
* Different operations can be executed through APIs. For example, users can:
  * Save data to and retrieve it from Entities,
  * Send data to and receive data from connected sources,
  * Combine and transform data from multiple sources and return everything as a single response.
* API documentation is automatically generated. Users can share documentation internally or make it publicly available on the Internet.
* An API can be used in multiple API gateways; however, one API gateway can use only one API at a time.


---

# 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.langstack.com/welcome/get-started/learn-langstack/introduction-to-rest-api.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.
