# How to share your collections

Vector AI is focused on ensuring that data remains secured even when sharing.&#x20;

You can securely share data with other accounts/users using the following endpoint:

<https://vectorai-development-api.azurewebsites.net/project/copy_collection_from_another_user>

<br>

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

```python
import requests
response = requests.post(
    url="https://vectorai-development-api.azurewebsites.net/project/copy_collection_from_another_user",
    json={
        "collection_name": "string",
        "username": "string",
        "api_key": "string",
        "source_collection_name": "string",
        "source_username": "string",
        "source_api_key": "string"
        })
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
let request = await fetch("https://vectorai-development-api.azurewebsites.net/project/copy_collection_from_another_user", 
      {
            "method": "POST",
            "headers": {
                  "Content-Type": "application/json"
            },
            "body": JSON.stringify({
              "username": "string",
              "api_key": "string",
              "collection_name": "string",
              "original_collection_name": "string",
              "collection_schema": { },
              "rename_fields": { },
              "remove_fields": [ ]
            })
      }
)
let json = await request.json()
```

Ensure that you are using write API keys for both usernames and collections.
{% 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/400-how-to-share-your-collections.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.
