Connect quickstart: a test customer and a test post
This guide takes you from a sandbox key to a published test post for one customer. Everything runs in the sandbox: the account that connects is a test account, and the post is simulated. Nothing reaches a real social account.
Using a coding agent?
Give it this prompt. It reads the markdown version of this page.
Before you start
- Access to the Connect console. Connect is in a private beta, see Overview.
- A sandbox key. Create it in the console under API keys, after you confirmed your email address. Sandbox keys start with
omsk_org_test_.
Keep the key on your server, in an environment variable:
Terminal
1. Create a customer
Create one customer per customer of yours. Use your own id as external_id, so you can name the customer as ext:<your id> from then on.
Terminal
The answer is the customer: { "id": "cust_…", "external_id": "hc-1042", "name": "Harbor Coffee", … }.
Send an Idempotency-Key on every POST to /connect/v1. A retry with the same key returns the first answer, so a dropped connection never creates the customer twice.
2. Create a connect link
Terminal
The answer holds the link: { "id": "cl_…", "url": "https://connect.omnisocials.com/c/…", "expires_at": "…" }. Without expires_in, the link works for one hour.
3. Connect a test account
Open url in your browser. The page says it is the sandbox. Pick Instagram, then Facebook: in the sandbox each one connects a test account at once, without a sign-in.
Press Done. The page sends you to your return_url with the outcome:
Text
The example return URL does not exist, but the address bar shows what your page would receive.
4. List the customer's accounts
Terminal
Each account has platform, username, display_name, picture and status. Both test accounts are active.
5. Send a test post
Posts go to the posting API (/v1) with the customer in the OmniSocials-Customer header:
Terminal
Instagram needs a picture or a video. To post there too, add "instagram" to channels and a public https image in "media_urls".
Take the post's id from the answer and read the post back:
Terminal
status moves from posting to published. The sandbox simulates the publish: no network is called.
Next steps
- Make a post fail on purpose with a test word in the caption.
- Add a webhook endpoint and send it a test event.
- Build the connect button in your product: Customers and connect links.
- Schedule posts, read statistics and answer comments: Posting for a customer.