Want an agent to handle setup? Agent quickstart
What you will do
- Create an API key.
- Install the SDK.
- Choose a profile key from your own app.
- Generate an account connection URL.
- Handle the connection return URL.
- 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.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 asprofileId 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.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:connectedwhen 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 aslinkedin.
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
accountId.
publishNow with scheduledFor.
CLI check
The CLI is useful when an AI agent needs to verify the same setup without writing application code.Next steps
- Install your preferred SDK.
- Connect more platforms.
- Add media uploads.
- Set up webhooks for post and delivery events.