Logo
Anvil API Documentation
Back
How can I use the from file upload API in Python?
python
Copy
import requests

url = 'https://graphql.useanvil.com'
files = {'file': open('yourfile.txt', 'rb')}  # Replace with your file

response = requests.post(url, files=files)
print(response.json())

ENDPOINTS