- 🐶 OnlySocial API Walk through
- Only Social
- Accounts
- Media
- Tags
- Posts
List media files
GET
https://app.onlysocial.io/os/api/{workspaceUuid}/media
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
workspaceUuid
string
required
Example:
<workspaceUuid>
Query Params
page
integer
optional
Example:
1
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://app.onlysocial.io/os/api/<workspaceUuid>/media?page=1'
Responses
🟢200Success
application/json
Body
object {0}
Example
{
"data": [
{
"id": "2",
"uuid": "161b8c2d-c424-3a6a-b554-be277418ff08",
"name": "tea-reduced-file-size.mp4",
"mime_type": "video/mp4",
"type": "video",
"url": "https://app.onlysocial.io/storage/2576cb55-ab0f-3708-9388-6d03290fcb3f/uploads/03-2024/9LD3AR2JF6MHl79rG7qWxGdEiqzneaOxMcnuw1M7.mp4",
"thumb_url": "https://app.onlysocial.io/storage/2576cb55-ab0f-3708-9388-6d03290fcb3f/uploads/03-2024/9LD3AR2JF6MHl79rG7qWxGdEiqzneaOxMcnuw1M7-thumb.jpg",
"is_video": true,
"created_at": "2024-03-29 15:33:32"
},
{
"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"
}
],
"links": {
"first": "https://app.onlysocial.io/os/api/2576cb55-ab0f-3708-9388-6d03290fcb3f/media?page=1",
"last": "https://app.onlysocial.io/os/api/2576cb55-ab0f-3708-9388-6d03290fcb3f/media?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https://app.onlysocial.io/os/api/2576cb55-ab0f-3708-9388-6d03290fcb3f/media?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "https://app.onlysocial.io/os/api/2576cb55-ab0f-3708-9388-6d03290fcb3f/media",
"per_page": 20,
"to": 2,
"total": 2
}
}
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
Modified at 2024-06-28 11:36:52