Media API
Upload, retrieve, and delete media files programmatically using the Datasquirel API.Overview
The Media API lets you manage files stored in your Datasquirel media storage. Use it to upload files from your application, retrieve file metadata, and delete files that are no longer needed.
npm install @moduletrace/datasquirel
GET
Retrieve media file metadata or a list of files.POST
Upload a new media file.DELETE
Delete a media file.Authentication
All media API requests require a Full Access API key. Read-only keys cannot upload or delete media.
Include your key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Or pass it as apiKey in the npm package function call.