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
        • Update a Media
      • Tags
        • List Tags
        • Get a tag
        • Create a tag
        • Delete a tag
        • Update a tag
      • Posts
        • List posts
        • Get a post
        • Create a post
        • Delete a post
        • Delete multiple post
        • Schedule a post
        • Add a post to Queue
        • Update a post
        • Approve a Post
      • Groups
        • Create a group
        • Update a group
        • Delete a Group
      • Users
        • List users
        • Create a user
        • Bulk delete users
        • Get user info
        • Update a user
        • Delete a user
      • Receipts
        • List receipts
        • Create a receipt
        • Bulk delete receipts
        • Update a receipt
        • Delete a receipt
      • Workspaces
        • List workspaces
        • Create a workspace
        • Bulk delete workspaces
        • Update a workspace
        • Delete a workspace
      • WorkspaceUsers
        • Attach user to workspace
        • Update workspace user role/ownership
        • Detach user from workspace
      • WorkspaceSubscriptions
        • Create a workspace subscription
        • Update workspace subscription
        • Delete workspace subscription
        • Create a new workspace subscription (custom logic)
        • Change workspace subscription plan
        • Cancel workspace subscription
        • Resume paused workspace subscription
        • Add generic subscription to workspace
        • Remove generic subscription from workspace
    • Schemas
      • Sample Schemas
        • Pet
        • Category
        • Tag
      • UserStore
      • UserUpdate
      • ReceiptStore
      • ReceiptUpdate
      • WorkspaceStore
      • WorkspaceUpdate
      • WorkspaceUserAttach
      • WorkspaceUserUpdate
      • WorkspaceSubscriptionStore
      • WorkspaceSubscriptionUpdate

    🐶 OnlySocial API Walk through

    Authentication#

    API endpoints are protected, and therefore require that you authenticate using an access token.

    Generate a token#

    1.
    Navigate to your OnlySocial dashboard.
    2.
    Click on Access Tokens from user menu.
    3.
    Click on Create.
    4.
    Give it a name, then click on Create.
    5.
    Copy your token.

    Screenshots
    image.png
    image.png

    image.png

    image.png



    Using Your Token#

    You can authenticate by adding an Authorization header to all your HTTP calls. The Authorization header is formatted as such:
    Authorization: Bearer <token> (replace <token> with your token previously generated).
    The url for API endpoints within OnlySocial is as follows:
    https://app.onlysocial.io/os/api/*
    Example:
    Modified at 2024-06-29 16:02:03
    Next
    List Accounts
    Built with