cURL
curl --request POST \ --url https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/file \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form content='@example-file' \ --form type=image \ --form access=public
{ "id": 10095, "created_at": "2023-04-19 21:01:32+0000", "name": "file_example_MP3_1MG.mp3", "size": 1087849, "type": "audio", "mime": "audio/mpeg", "access": "public", "path": "/vault/Ramtdv50/3TA6XKsmLe-2BigGnwxSb0v00sI/qSWtbg../file_example_MP3_1MG.mp3" }
Upload files to workspace
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
image
video
audio
public
private
Success!
Was this page helpful?