Connections API
Use connections:read to list SNS connections. Copy the returned connection_id into the detail request or a publishing request. Connect or reauthorize accounts in the Web app.
curl --fail-with-body --get 'https://api.ankk.app/v1/brand/connections' \ --data-urlencode 'sns_type=instagram' \ -H "Authorization: Bearer $ANKK_API_KEY"
curl --fail-with-body "https://api.ankk.app/v1/brand/connections/$CONNECTION_ID" \ -H "Authorization: Bearer $ANKK_API_KEY"Inspect status, is_locked, publish_availability, publish_recovery, and operations. Use the operation’s executable and action fields when deciding the next step. This response is not proof that a future publish will succeed; inspect the accepted job’s final result.