vk
Call the VK API with curl + jq. The token is injected as $VK_ACCESS_TOKEN
and is passed in the Authorization: Bearer header. Every VK API call also
requires the v (API version) query parameter — use v=5.199. Base URL:
https://api.vk.com/method/<method>.
VK always returns HTTP 200; success is {"response": ...} and failure is
{"error":{"error_code":<n>,"error_msg":"<detail>"}} — always check for .error
and show error_msg verbatim. Common codes: 5 = auth failed (token wrong or
revoked → user must re-connect the VK connector), 214 = access to adding post
denied (the token lacks the wall right — a community access key with wall is
required), 15/203 = access denied to that owner.
Step 1 — identify who you can post as
A community access key posts on the community wall: owner_id must be the
negative community id and you pass from_group=1. Resolve the community id
from the token: