Skip to main content
Get from an API key to your first scheduled or published post. This quickstart uses the SDK as the main path. The API and CLI expose the same objects, but most integrations should start with the SDK.
Want an agent to handle setup? Agent quickstart

What you will do

  1. Create an API key.
  2. Install the SDK.
  3. Choose a profile key from your own app.
  4. Generate an account connection URL.
  5. Handle the connection return URL.
  6. Use the connected account to publish a post.

1. Create an API key

Open the Kavenio dashboard and create an API key for your workspace.
Keep this key server-side. Do not expose it in browser code, mobile apps, or client-rendered pages.

2. Install the SDK

3. Initialize the client

4. Choose a profile key

Use a stable key from your own app to group connected accounts, posts, media, and queues for a brand, client, product, or workspace area. Pass that key as profileId in Kavenio requests.

5. Create a connect URL

Create a provider authorization URL and send the user to it. This example uses LinkedIn, but the same flow works for other OAuth platforms.
Redirect the user to authorizationUrl. Kavenio handles the OAuth callback, stores the provider credentials, and sends the user back to your returnTo URL when the connection is complete.

Return URL parameters

returnTo is your app URL. After the account is connected, Kavenio redirects the user back to that URL with a GET request. Kavenio appends these query parameters:
  • connect: connected when the connection succeeded.
  • accountId: the Kavenio connected account ID. Store this value.
  • profileId: the profile key the account was attached to.
  • platform: the connected platform, such as linkedin.
Example return URL:
You can also subscribe to the account.connected webhook to receive the connected account data server-to-server. The return URL is best for updating the user’s current browser session; the webhook is best for durable backend processing.

6. Handle the return URL

In your return route, read and store the connected account ID. This is how your app links the Kavenio account to the current user, workspace, or integration record.

7. Publish a post

To publish to every connected LinkedIn account in the profile, omit accountId.
To schedule the post instead, replace publishNow with scheduledFor.

CLI check

The CLI is useful when an AI agent needs to verify the same setup without writing application code.
Create a post from inline fields:

Next steps

  • Install your preferred SDK.
  • Connect more platforms.
  • Add media uploads.
  • Set up webhooks for post and delivery events.