cURL
curl --request POST \ --url https://api.bundle.social/api/v1/upload/ \ --header 'Content-Type: multipart/form-data' \ --header 'x-api-key: <api-key>' \ --form 'teamId=<string>' \ --form file=@example-file
{ "id": "<string>", "teamId": "<string>", "organizationId": "<string>", "expiresAt": "2023-11-07T05:31:56Z", "iconUrl": "<string>", "thumbnailUrl": "<string>", "url": "<string>", "iconPath": "<string>", "thumbnailPath": "<string>", "path": "<string>", "type": "image", "width": 123, "height": 123, "fileSize": 123, "videoLength": 123, "mime": "<string>", "ext": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" }
Upload a file. This is the only endpoint that uses multipart/form-data.
Body
200
image
video
Was this page helpful?