# How to request a read API key

If you are looking to provide a **read-only** API key, then Vector AI has an endpoint to allow users to simply get one.&#x20;

You simply need the following endpoint: `/project/request_read_api_key`&#x20;

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

```python
import requests 
response = requests.post("https://vectorai-development-api.azurewebsites.net/project/request_read_api_key",
    json={
        "username": "string",
        "api_key": "string",
        "read_username": "string"
    })
response.json()
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
let request = await fetch("https://vectorai-development-api.azurewebsites.net/project/request_read_api_key", {
      "method": "POST",
      "headers": {
            "Content-Type": "application/json"
      },
      "body": JSON.stringify({
        "username": "string",
        "api_key": "string",
        "read_username": "string"
      })
})

let json = await request.json()
```

{% 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://learn.getvectorai.com/vector-search/managing-vector-ai/how-to-request-a-read-api-key.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.
