# Basics

{% hint style="info" %}
**2024-03-19.** We are releasing our REST API to our user today. This feature is in beta. Please get in touch at <thomas@less.tech> with any concerns or feedback. While in beta, the API functionality is free to use.
{% endhint %}

### Base URL

There are five endpoints in our new REST API. Each is documented individually below.&#x20;

Your base URL looks like this:

```url
{{SUBDOMAIN}}.less.tech/api/public/
```

You will need to change `{{`SUBDOMAIN`}}` in the endpoint above to your own subdomain. Your subdomain is where you log in to Less. So if you log in at `facebook.less.tech,` your endpoints will be accessible from (**this is your base URL)**:

```
facebook.less.tech/api/public/
```

***

### Authentication

We are using bearer token authentication. You can create your own token on your Less platform by navigating to **View Profile** (bottom, left-hand corner) -> **API Tokens**.

Input this token in your headers in the following way:

```json
{
  'Authorization': 'Bearer {apiToken}'
}
```


---

# 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://resources.less.tech/less-tech/rest-api-beta/basics.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.
