# How to use the api

***

**API Endpoint Structure**

All API endpoints are prefixed with `/v1` to denote the API version. Combine this prefix with the base URL provided to access the endpoints. For example:

* **Base URL**: `https://dugsiapi.tiigsi.io`
* **API Endpoint Prefix**: `/v1`

To construct a full endpoint URL, concatenate the base URL with the API endpoint prefix. For instance, the complete URL for the "Login User" endpoint is:

```
https://dugsiapi.tiigsi.io/v1/auth/login
```

Ensure that all API requests follow this structure for proper access and functionality.

***


---

# 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://dugsi-docs.tiigsi.io/getting-started/how-to-use-the-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.
