@social-media-scheduler/sdk is the server-side TypeScript SDK for platforms
that want to offer social account connection and post scheduling to their own
customers. Social media studio hosts the OAuth flow and publishing infrastructure while your
application keeps ownership of its customer experience.
The Embedded Platform is currently in limited availability, and hosted account
connection currently supports Threads. Contact Social media studio to have a partner project
and API key provisioned.
SDK versus CLI
The packages are independent. Installing the SDK does not install the
so-me
command, and the CLI does not expose the partner SDK.
Requirements
- Node.js 20 or newer
- A Social media studio partner project
- A test or live partner API key
- Every application origin that may receive an OAuth return, registered on the partner project
Install
Initialize the client
https://api.so-me.studio. You can provide
baseUrl for a self-hosted or local environment and customize the 30-second
request timeout:
End-to-end flow
- Upsert an end user using the stable customer ID from your database.
- Create a short-lived connect session and send its
connectUrlto the customer’s browser. - After OAuth completes, retrieve the session or list the customer’s social connections.
- Create an immediate or scheduled post using a returned connection ID.
- Receive publishing results through signed webhooks.
Connect accounts
Create end users and run the hosted OAuth flow.
Publish posts
Publish immediately, schedule posts, and upload media.
Receive webhooks
Verify signed delivery payloads and handle retries safely.
Secure the integration
Protect partner keys and handle API failures.