# Quick Start

## Get your API keys

Almost all requests don't need an API Key to work, if you need any function that needs it, you can request one from [Any Bot support server](https://discord.gg/5UyuwbNu8j)

## Make your first request

To make your first request, send a request to the `dog` endpoint. This will get a `dog`, which is nice.

## Return Dog

<mark style="color:blue;">`GET`</mark> `https://api.any-bot.xyz/api/v1/dog`

It will return a random photo and a random fact of some dog.

#### Headers

| Name     | Type   | Description            |
| -------- | ------ | ---------------------- |
| API\_KEY | string | You API Key (Optional) |

{% tabs %}
{% tab title="200 Dog successfully returned" %}

```javascript
{
    "message": "OK",
    "image": "http://api.any-bot.tech/img/dog/mydogimage.jpg",
    "fact": "Dogs are the best friends of humans",
    "status": 200
}
```

{% endtab %}
{% endtabs %}

Take a look at how you might call this method using `curl`:

{% tabs %}
{% tab title="JavaScript" %}

```javascript
let xhr = new XMLHttpRequest();

xhr.open("GET", "https://api.any-bot.xyz/api/v1/dog");
xhr.setRequestHeader("API-KEY", "Optional")

xhr.send();

xhr.onload = () => console.log(xhr.responseText);
```

{% endtab %}

{% tab title="Bash" %}

```bash
curl https://api.any-bot.xyz/api/v1/dog
    --header "API-KEY: Optional"  
```

{% endtab %}
{% endtabs %}


---

# 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.api.any-bot.xyz/quick-start.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.
