Guides
Manage Resources
Learn how to create and view resources.
Types
Resources are essentially files stored on the server and are used in almost all requests. They can be of 5 types:
- Text: A text file resource of extension
txt
. - Image: An image file of extension
jpg
,jpeg
orpng
. - Audio: An audio file of extension
mp3
,wav
. - Video: A video file of extension
mp4
. - Csv: A csv file of extension
csv
.
If you need other file types, please contact us.
Prerequisites
- You have an API key. If not, you can get one by contacting us.
- You have python installed on your machine along with the
requests
library.
Upload resources
For files smaller than 5MB, you can directly upload the file using the API as follows. For larger files, follow the Large Resources guide.
Creating a text resource
Python
Creating an image resource
Python
Creating an audio resource
Python
Creating a video resource
Python
Creating a csv resource
Python
List resources
You can list all resources owned by you using the following code snippet.
Python
Was this page helpful?