# Getting Started

Now, you can access and interact with your xNomad agent through the xNomad agent API.&#x20;

| PARAM       | VALUE                                                           |
| ----------- | --------------------------------------------------------------- |
| base\_url\* | `https://core.xnomad.fun`                                       |
| api\_key    | [Apply for an API Key](/xnomad.fun/agent-api/get-an-api-key.md) |

&#x20;       To support compatibility, you may also use `https://core.xnomad.fun/v1`. The `v1` path refers to the API version, not the model version.

### Invoke the Chat API

Once you have your API key, you can begin making your first Agent request using standard OpenAI completion API methods. Below is a simple example using `curl` for non-streamed output.

<pre class="language-bash"><code class="lang-bash"><strong>curl -X POST https://core.xnomad.fun/v1/chat/completions \
</strong>  -H "Content-Type: application/json" \
  -H "Authorization: Bearer &#x3C;Your API Key>" \
  -d '{
        "model": "",
        "messages": [
          {"role": "user", "content": "Hey, who are you and what do you do?"}
        ],
        "temperature": 0,
        "max_tokens": 0,
      }'
</code></pre>


---

# 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.xnomad.ai/xnomad.fun/agent-api/getting-started.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.
