# Quotes API

A quotes API is like a treasure chest of inspirational words, allowing you to easily access and integrate quotes into your apps and websites. It's the perfect tool for adding a touch of motivation, wisdom, or humor to your content.

### Base URL

The base URL for the Quotes API is:

```
https://santechapi.vercel.app
```

### Authentication

```
headers : {
"token" : {YOUR API KEY}
}
```

**Endpoint:** `/quotes`&#x20;

#### ***HTTP Method:** GET*

**Example Request:**

```
GET /quotes
```

**Example Response:**

**`200`**

```
[
	{
		"q": "There are no mistakes in life, only lessons.",
		"a": "Robin Sharma",
		"c": "44",
		"h": "<blockquote>&ldquo;There are no mistakes in life, only lessons.&rdquo; &mdash; <footer>Robin Sharma</footer></blockquote>"
	},
	{
		"q": "Truth is like the sun. You can shut it out for a time, but it ain't going away.",
		"a": "Elvis Presley",
		"c": "79",
		"h": "<blockquote>&ldquo;Truth is like the sun. You can shut it out for a time, but it ain't going away.&rdquo; &mdash; <footer>Elvis Presley</footer></blockquote>"
	},
	{
		"q": "Sometimes you have to travel a long way to find what is near.",
		"a": "Paulo Coelho",
		"c": "61",
		"h": "<blockquote>&ldquo;Sometimes you have to travel a long way to find what is near.&rdquo; &mdash; <footer>Paulo Coelho</footer></blockquote>"
	},
	{
		"q": "Elegance does not consist in putting on a new dress.",
		"a": "Coco Chanel",
		"c": "52",
		"h": "<blockquote>&ldquo;Elegance does not consist in putting on a new dress.&rdquo; &mdash; <footer>Coco Chanel</footer></blockquote>"
	}
]
```

The response includes the quote text and the author.

### Error Handling

In case of an error, the API will respond with an appropriate HTTP status code and an error message in the response body.

**Example Error Response:**

**`400`**

```
 { 
        "message": "Unable to fetch"
 }
```

Feel free to explore the Quotes API and retrieve random quotes for inspiration or motivation.

If you have any further questions or need additional assistance, feel free to ask.


---

# 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://santech.gitbook.io/docs/quotes-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.
