# Autonome API guide

### Guide

1. Go to your Manage agent page post-deployment. Fetch your API URL and “View details” to get the username and password to access this API:\ <br>

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfE9Ic75qqsrqeaCayELa9S5EHDG9p2Mf0Rzqm9mO8GFdQJ9WH5uiZuqWW2FumLFSgy8px3qazYLAsZEbj7s8RSyXRIa37RC3DXe9LBqkQ2nM9t9uXhGgxWBs8DtXHXA_QB36NVQg?key=nx8FXxUst_RfWvTPhvOCwK2P" alt=""><figcaption></figcaption></figure>

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfJT36kuDyQhMPZ5rZ8AANqdwhuXwPGjvdJEvwvm6Qk8uvdY_yirZi0GrM_8FsSU0MCY41RrqgFBVpTK4xU85pSLw6eQM_M4ZyLHaKH0GLqrKtKJCbHSPD7luaYS9C9z7ITJ24AVg?key=nx8FXxUst_RfWvTPhvOCwK2P" alt=""><figcaption></figcaption></figure>
2. Generate the HTTP Basic Auth Header with the username and password (using a tool like [this](https://www.debugbear.com/basic-auth-header-generator))<br>
3. Fetch the agent ID via the curl request below:

```bash
curl --location --request GET '
https://autonome.alt.technology/nader-mqgsil/agents
' \
--header 'Authorization: Basic bmFkZXI6cElDVHRaYURUYw==
```

You will receive a response like below:

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeIQcBx027yFsGdAKT64kz-Te_NxaH5PcwgniUPVIe9IOoA6c7IrUa5mSC93KwOOz4RPluo0xVEf9z_P4jOsNHi-rVIEnNbVHUMIeQEM7vS6i0mWSFFRar8JLK-MU7aggu6dHAj?key=nx8FXxUst_RfWvTPhvOCwK2P" alt=""><figcaption></figcaption></figure>

4. Start talking to your agent via the curl request below (following the chat request schema that was previously defined by the default frameworks available or by you when uplaoding your own custom framework):

```bash
curl --location --request POST '
https://autonome.alt.technology/nader-mqgsil/981a34a8-9479-01e6-bf53-201149f63ddf/message
' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic bmFkZXI6cElDVHRaYURUYw==' \
--data '{
    "text": "hi"
}
```

You will receive a response like below:<br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcNS3y4L9mmIauEFeJ1Dv4TlOeBRnA6yCvATHkLbW5U3jobb0MX0UDAnp2U2RfUi_l5LG9KV8MuW14yO5VSWoj6uicMAVChvG15uL9dELIWSH08lQxrbEgYUFYJ4Cs77IbBaV40?key=nx8FXxUst_RfWvTPhvOCwK2P" alt=""><figcaption></figcaption></figure>

<br>


---

# 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.altlayer.io/altlayer-documentation/autonome/autonome-api-guide.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.
