Connect Channel (OAuth)
GET /social/{integration} — Infipost Public API
Generate an OAuth authorization URL for a given integration. Use this to connect a new social media channel. Only OAuth-based integrations are supported (integrations that require an external URL, such as Mastodon, are not available via this endpoint).
curl --request GET \
--url 'https://api.infipost.asia/public/v1/social/{integration}' \
--header 'Authorization: YOUR_API_KEY'Authorization
Authorizationstring · headerrequiredWorkspace API key or OAuth access token. Send the token directly without a Bearer prefix.
Parameters
integrationstring · pathrequiredThe integration identifier (e.g. x, linkedin, facebook, instagram, youtube, tiktok, reddit, etc.)
refreshstring · queryPass an existing integration ID to refresh its OAuth token instead of creating a new connection
Response
OAuth authorization URL
{
"url": "https://twitter.com/i/oauth2/authorize?response_type=code&client_id=..."
}urlstringThe OAuth authorization URL to redirect the user to
Integration not allowed or requires an external URL
The returned URL is the platform's own authorization page, so it suits connecting an account you are signed in to yourself. To hand the step to someone else, use Connect Channel (Link), which first shows them a Infipost page explaining what they are connecting.