Skip to main content
POST
/
storage
/
uploads
/
{filename}
python
from notte_sdk import NotteClient

client = NotteClient()
storage = client.FileStorage()

with open("file.txt", "w") as f:
    _ = f.write("hello notte storage test!")

# Upload a file
success = storage.upload("file.txt")
{
  "success": true
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

x-notte-request-origin
string | null
x-notte-sdk-version
string | null

Body

multipart/form-data
file
file
required

Response

Successful Response

success
boolean
required

Whether the upload was successful