OnlySocial
  1. Posts
OnlySocial
  • 🐶 OnlySocial API Walk through
  • Only Social
    • Accounts
      • List Accounts
      • Get an account
    • Media
      • List media files
      • Get a media file
      • Upload a media file
      • Delete a media file
    • Tags
      • List Tags
      • Get a tag
      • Create a tag
      • Delete a tag
      • Update a tag
    • Posts
      • List posts
        GET
      • Get a post
        GET
      • Create a post
        POST
      • Delete a post
        DELETE
      • Delete multiple post
        DELETE
      • Schedule a post
        POST
      • Add a post to Queue
        POST
      • Update a post
        PUT
  1. Posts

Get a post

GET
https://app.onlysocial.io/os/api/{workspaceUuid}/posts/{postUuid}

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:
<workspcaeUuid>
postUuid
string 
required
Example:
{postUuid}

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 -g --request GET 'https://app.onlysocial.io/os/api/<workspcaeUuid>/posts/{postUuid}'

Responses

🟢200Success
application/json
Body
object {0}
Example
{
    "id": 1,
    "uuid": "b1b06706-ef95-42b7-8ac8-d648dc9a9d65",
    "status": "published",
    "accounts": [
        {
            "id": 2,
            "uuid": "cfbdc3eb-22cb-4d15-b2a0-63d5fcd5bd92",
            "name": "Yusuf Taiwo",
            "username": "ytm2014",
            "image": null,
            "provider": "linkedin",
            "data": null,
            "authorized": true,
            "created_at": "2024-03-29 09:49:22",
            "external_url": "https://linkedin.com/feed/update/urn:li:share:43536647554322",
            "errors": []
        },
        {
            "id": 1,
            "uuid": "85347d5e-9724-4cb6-b91c-82d6d6d4e992",
            "name": "Onlysocial",
            "username": "onlysocial",
            "image": "https://onlysocial.io/avatar/onlysocial.jpg",
            "provider": "facebook_page",
            "data": {
                "suffix": {
                    "value": "Page",
                    "edited": false
                }
            },
            "authorized": true,
            "created_at": "2024-03-27 11:30:45",
            "external_url": "https://facebook.com/3432042343434323/7179414779038416896",
            "errors": []
        }
    ],
    "versions": [
        {
            "account_id": 0,
            "is_original": true,
            "content": [
                {
                    "body": "<div>OnlySocial offers an all-in-one social marketing solution for all your needs. Organize your social media content, streamline conversations using chatbots, establish a profitable online store, create an eye-catching link in the bio page.</div>",
                    "media": [
                        {
                            "id": "2",
                            "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"
                        }
                    ],
                    "url": ""
                }
            ],
            "options": {
                "tiktok": {
                    "privacy_level": {
                        "account-0": null
                    },
                    "allow_comments": {
                        "account-0": false
                    },
                    "allow_duet": {
                        "account-0": false
                    },
                    "allow_stitch": {
                        "account-0": false
                    },
                    "content_disclosure": {
                        "account-0": false
                    },
                    "brand_organic_toggle": {
                        "account-0": false
                    },
                    "brand_content_toggle": {
                        "account-0": false
                    }
                },
                "youtube": {
                    "title": null,
                    "status": "public"
                },
                "linkedin": {
                    "visibility": "PUBLIC"
                },
                "mastodon": {
                    "sensitive": false
                },
                "instagram": {
                    "type": "post"
                },
                "pinterest": {
                    "title": null,
                    "link": null,
                    "boards": {
                        "account-0": null
                    }
                },
                "facebook_page": {
                    "type": "post"
                }
            }
        }
    ],
    "tags": [
        {
            "id": 1,
            "uuid": "2323e1eb-b3a6-4183-990d-4d5afea04835",
            "name": "motivation",
            "hex_color": "#60a5fa"
        }
    ],
    "user": {
        "name": "Dima Botezatu"
    },
    "scheduled_at": "2024-03-29 09:50:56",
    "published_at": "2024-03-29 09:51:10",
    "created_at": "2024-03-29 09:50:46",
    "trashed": false
}
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
Modified at 2024-06-29 11:10:33
Previous
List posts
Next
Create a post
Built with