***

title: create
slug: /reference/python/rest/datasphere/create
description: Upload a new document.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

[ref-datasphere]: /docs/server-sdks/reference/python/rest/datasphere

Upload a new document to the [Datasphere][ref-datasphere].

<EndpointSchemaSnippet endpoint="POST /api/datasphere/documents" />

## **Response Example**

<EndpointResponseSnippet endpoint="POST /api/datasphere/documents" />

## **Example**

```python {9}
from signalwire.rest import RestClient

client = RestClient(
    project="your-project-id",
    token="your-api-token",
    host="your-space.signalwire.com",
)

doc = client.datasphere.documents.create(
    url="https://filesamples.com/samples/document/txt/sample3.txt",
    tags=["support", "demo"],
)
print("Document ID:", doc.get("id"))
```