Request
Provide your bearer token in the Authorization
 header when making requests to protected resources. Example:Authorization: Bearer ********************
 Body Params  application/json
{
    "file": "string",
    "alt_text": "string"
}
Request Code Samples
curl --location --request POST 'https://app.onlysocial.io/os/api/<workspaceUuid>/media/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "file": "string",
    "alt_text": "string"
}'
Responses
application/json {
    "id": "1",
    "uuid": "511b8c2d-c424-3a6a-a154-be271418ff01",
    "name": "blue.png",
    "mime_type": "image/png",
    "type": "image",
    "url": "https://app.onlysocial.io/storage/2576cb55-ab0f-3708-9388-6d03290fcb3f/uploads/03-2024/HsqEvFqHQYEU14DARrqULDnvoh7GMYopQGqYGhoi.png",
    "thumb_url": "https://app.onlysocial.io/storage/2576cb55-ab0f-3708-9388-6d03290fcb3f/uploads/03-2024/HsqEvFqHQYEU14DARrqULDnvoh7GMYopQGqYGhoi-thumb.png",
    "is_video": false,
    "created_at": "2024-03-29 15:33:23"
}
Modified at 2025-07-08 08:03:21