Socials

Get an OAuth connect URL

Changed on

Returns an OAuth URL to connect a social account on the given platform. Activates the account on first connect; requires an active subscription. A platform can hold several accounts: without account_id the URL adds another one and counts toward the plan's channel limit. To repair an account that needs reconnecting, pass its account_id: the URL re-authorizes that account in place, it keeps its id and scheduled posts, and signing in as a different account is refused.

post/socials/connect

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Headers

Idempotency-Key, string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

object required
platform, 'twitter' | 'linkedin' | 'instagram' | 'facebook' | 'youtube' | 'tiktok' | 'pinterest' | 'threads' | 'reddit' | 'bluesky' | 'googlebusiness' required
redirect_url, string required

URL to redirect to after connection

login_method, 'instagram_login' | 'facebook_login'

Instagram only; ignored on every other platform. instagram_login (the default) authorizes the Instagram professional account directly. facebook_login authorizes the Facebook Page linked to that account instead, and every call then runs through the Page. Use it when Instagram's own dialog will not render a consent screen for the account, or when the seller manages Instagram through a Page.

account_id, string

Reconnect this connected account (sacct_ prefix id) instead of adding a new one. It must be on platform. Omit it to connect another account.

Response

Connect URL

object required
url, string required

Changes

    • info

      added the new optional request property account_id

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    5 more changes in this revision