{ "opencollection": "1.0.0", "info": { "name": "Loops OpenAPI Spec API key Uploads API", "version": "1.8.0" }, "items": [ { "info": { "name": "Uploads", "type": "folder" }, "items": [ { "info": { "name": "Create an upload", "type": "http" }, "http": { "method": "POST", "url": "https://app.loops.so/api/v1/uploads", "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Request a pre-signed URL to upload an image asset. Upload the file with an HTTP `PUT` to the returned `presignedUrl` (sending the same `Content-Type` and `Content-Length`), then call `/uploads/{id}/complete` to finalize the asset." }, { "info": { "name": "Complete an upload", "type": "http" }, "http": { "method": "POST", "url": "https://app.loops.so/api/v1/uploads/:id/complete", "params": [ { "name": "id", "value": "", "type": "path", "description": "The `emailAssetId` returned when the upload was created." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Finalize an asset after the file has been uploaded to the pre-signed URL. Returns the public URL of the uploaded asset." } ] } ], "bundled": true }