infipostdocs
Integrations

Connect Channel (OAuth)

GET /social/{integration} — Infipost Public API

GET/public/v1/social/{integration}

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
curl --request GET \
  --url 'https://api.infipost.asia/public/v1/social/{integration}' \
  --header 'Authorization: YOUR_API_KEY'

Authorization

Authorizationstring · headerrequired

Workspace API key or OAuth access token. Send the token directly without a Bearer prefix.

Parameters

integrationstring · pathrequired

The integration identifier (e.g. x, linkedin, facebook, instagram, youtube, tiktok, reddit, etc.)

refreshstring · query

Pass an existing integration ID to refresh its OAuth token instead of creating a new connection

Response

OAuth authorization URL

application/json
{
  "url": "https://twitter.com/i/oauth2/authorize?response_type=code&client_id=..."
}
urlstring

The OAuth authorization URL to redirect the user to

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.