Post to OK (Odnoklassniki) groups from your code: webhook vs OK API
One POST with JSON — and the post is in your OK group. Crosslybot handles signing, tokens and media uploads.
How to set up
Create an incoming webhook
Create an incoming webhook in the Crosslybot app. The Bearer token is shown only once — save it in your environment variables.
Connect an OK group
In the Odnoklassniki section, sign in to your account and select the group, then add it as a target of a project with a webhook source.
Send a POST
Send a POST to the webhook URL with the headers Authorization: Bearer <token>, Content-Type: application/json and, optionally, Idempotency-Key. In the body — text and, if needed, media[] with https links to photos and videos.
Test in the sandbox
A request to the sandbox validates the payload without publishing — handy for tests and CI.
Features
No signing or sessions
Instead of signing every request and renewing OK tokens and sessions — a single Crosslybot Bearer token.
Video by link
Pass an https link to a video up to 1 GB — the bot uploads it to OK itself.
All platforms at once
Add Telegram, VK and Max to the project — the same request publishes the post there too.
Safe retries
Idempotency-Key protects against duplicates if a request is sent again.
FAQ
Which plans include the incoming webhook?
The incoming webhook is available on Pro plans and above. The sandbox for testing requests is available on all plans.
What is supported in OK?
Text, links, photos and videos. OK doesn't accept audio and files — they are skipped for this target. Buttons become a link in the text or are removed, depending on the target settings.
Can I publish to several groups?
Yes, add several OK groups as project targets — one request publishes the post to all of them.
Do I need to register an app in OK?
No. You connect your OK account in Crosslybot, and publishing is done by the service's already registered app.
Is there MCP for AI agents?
Yes, the Crosslybot MCP server lets AI agents (Claude Desktop, Cursor and others) publish posts with commands, including to OK groups.
Publishing to an OK (Odnoklassniki) group directly through the OK API means registering an app, signing every request, keeping track of tokens and uploading photos and videos separately. Crosslybot reduces this to a single HTTP request: you send JSON to a webhook, and the service publishes the post in the group on its behalf.
The same request can publish the post to Telegram, VK and Max at once if they are added to the project. Format details are in the Webhook API description and REST API.
Ready to try?
Connect the bot in 2 minutes. Free plan — no cards, no signup.