Skip to main content

Integrations

Agency Dashboard > Integrations holds the credentials for connecting your own system, such as a CRM or a client portal, to your agency. The menu item appears when your whitelabel plan includes at least one of these: Each section says Included or Not in your plan. To get one your plan does not include, move to a bigger whitelabel plan.

Create your credentials

Click Create credentials. The page shows:
  • your Partner key, which identifies your agency;
  • an API key for the Partner API, sent as the X-API-KEY header;
  • an SSO secret for signing single sign-on requests;
  • the Base URL and Sign-in endpoint to call.
The Integrations page with the Partner API and single sign-on credentials
The API key and SSO secret stay on this page for you and for team members whose role may manage API keys. Treat them like passwords: keep them in your secret manager and never share a screen that shows them. If one leaks, click Replace the API key or Replace the SSO secret: after you confirm, the old one stops working at once, so update your system straight after.

Limits on who and where

Click Save after changing them.

How to call them

The calls work as described in the Partner tab, with the credentials you created here instead of ones from OnlySocial, and the base URL shown on the Integrations page:
  • Partner API overview: create customers, find them and issue their workspace API keys.
  • Single sign-on: sign a short-lived JWT with your SSO secret, post it with your partner key, and open the link you get back. Customers land on your domain.
  • Client Connect API: create hosted connect and reconnect links. The pages your customers see carry your brand.
Customers you create through the Partner API are your sub-accounts, on your plans, like any other. To manage sub-accounts, plans and webhooks from your own code with one key, use the Agency API instead. If the single sign-on section says it is not switched on for this service yet, contact OnlySocial support.

Webhooks

Webhooks tell your own system what happens to your customers, as it happens. Set them up in Agency Dashboard > Webhooks.
1

Add an endpoint

Click New endpoint, give it a Name, enter your Endpoint URL (https://), and tick the Events you want.
2

Copy the signing secret

After you save, the signing secret is shown once. Copy it and keep it with your receiver.
3

Send a test

Click Send test to send a sample event, and check Recent deliveries to see what your endpoint answered.
Two webhook endpoints and their recent deliveries, with one failed attempt retried

Events

The two workspace.no_… events are useful for onboarding: they tell you about a customer who has not connected an account a day after signing up, or has not posted a day after connecting their first one.

What a delivery looks like

Each delivery is a JSON POST:
With these headers: Always check the signature before you trust a delivery: compute the HMAC of the raw request body with your secret and compare it with the header.

Failed deliveries

Your endpoint should answer with a 2xx status within 8 seconds. A delivery that fails is tried up to three times in all, a few minutes apart. Redirects are not followed, so give the final address. Recent deliveries shows each attempt. To pause an endpoint, Edit it and switch it off. Rotate secret replaces the signing secret: the old one stops working at once. Remove deletes the endpoint.