Media
Upload a media file
Upload a new media file
Request
- Method: POST
- URL:
https://app.socialk.it/core/api/<workspaceUuid>/media - Authorization:
Bearer <token> - Content-Type:
multipart/form-data
Body
Form data with the following fields:
| Key | Type | Required | Description |
|---|---|---|---|
file | binary | Yes | File binary |
alt_text | string | No | Alt text |
Response
{
"id": "1",
"uuid": "511b8c2d-c424-3a6a-a154-be271418ff01",
"name": "blue.png",
"mime_type": "image/png",
"type": "image",
"url": "https://app.socialk.it/storage/2576cb55-ab0f-3708-9388-6d03290fcb3f/uploads/03-2024/HsqEvFqHQYEU14DARrqULDnvoh7GMYopQGqYGhoi.png",
"thumb_url": "https://app.socialk.it/storage/2576cb55-ab0f-3708-9388-6d03290fcb3f/uploads/03-2024/HsqEvFqHQYEU14DARrqULDnvoh7GMYopQGqYGhoi-thumb.png",
"is_video": false,
"created_at": "2024-03-29 15:33:23"
}